• Seems the plugin needs a little updating to be compatible with PHP 8. WordPress has made the move to be compatible with PHP 8, and is encouraging plugin owners to test their plugins against PHP 8. Testing the switch to PHP 8 today on a website I manage produced this error:

    Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /wp-content/plugins/goodbye-captcha/includes/MchGdbcLibAutoloader.php on line 33

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • I had to remove this plugin completely after I upgraded to PHP 8.0.3

    For eliminte the errors in PHP 8.0, i just change one line of code in the plugins folder of wordpress (wp-content/plugins).

    /goodbye-captcha/includes/plugin/MchGdbcBasePublicPlugin.php

    line 44 From this: private function __wakeup()
    line 44 To This: public function __wakeup()

    that work for me.

    • This reply was modified 3 years, 8 months ago by Elisha_Bentzi.

    Yes, I get this:

    PHP Warning: The magic method MchGdbcBasePublicPlugin::__wakeup() must have public visibility in /home/.../public_html/wp-content/plugins/goodbye-captcha/includes/plugin/MchGdbcBasePublicPlugin.php on line 44

    Please fix.

    Weird I don’t have the problem with the wakeup but I have two errors with spl_autoload_register.

    
    Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /var/www/html/wp-content/plugins/goodbye-captcha/includes/MchGdbcLibAutoloader.php on line 33
    
    Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /var/www/html/wp-content/plugins/goodbye-captcha/goodbye-captcha.php on line 134
    

    Fixed by passing true to the second argument ($throw).
    It’s been already 1 month. The plugin authors should release a fix, it does not seem difficult to solve.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘errors in PHP 8’ is closed to new replies.