• Geepups

    (@geepups)


    Generating New Api Secret causes critical error.
    I am on WP 6.2 Could that be the cause?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there!

    Had the same error because we are running PHP 8 and you need to add (array) :

    }else if(count((array)$get)){

    To avoid the error on this file :

    [08-May-2023 22:21:57 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argume                                                                                                                                                             nt #1 ($value) must be of type Countable|array, null given in /usr/local/lsws/Ex                                                                                                                                                             ample/html/wordpress/wp-content/plugins/custom-wp-rest-api/admin/api_new.php:55
    

    Please fix this great plugin 🙂

    Yes, it seems to have issues with PHP 8.

    Looks like anything within the count(...) function needs to add array count((array)...)

    I’ve already noticed this in /admin/api_new.php and /includes/functions.php.

    Could you fix this?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Generating New Api Secret causes critical error’ is closed to new replies.