• There is an PHP error in plugins/wp-advanced-math-captcha/includes/class-core.php on Line 775

    Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null

    which orrurs when Math_Captcha()->cookie_session->session_ids['multi'] is empty.

    I locally fixed it by checking the array first:

    if(is_array(Math_Captcha()->cookie_session->session_ids['multi'])){
    …
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Cool. No fatal error anymore in debug.log …
    Thanks for this!!

    Just wanted to add, that for PHP 8.1… another change is nescessary:
    wp-math-captcha.php, line 86: change ‘private function __wakeup() {}’ to ‘public function __wakeup() {}’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Error in includes/class-core.php:775 PHP 8.1’ is closed to new replies.