Title: errors in PHP 8
Last modified: February 25, 2021

---

# errors in PHP 8

 *  [JohnRDOrazio](https://wordpress.org/support/users/lwangaman/)
 * (@lwangaman)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/errors-in-php-8/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-in-php-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Mark Waters](https://wordpress.org/support/users/markwaters-1/)
 * (@markwaters-1)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/errors-in-php-8/#post-14199060)
 * I had to remove this plugin completely after I upgraded to PHP 8.0.3
 *  [Elisha_Bentzi](https://wordpress.org/support/users/elisha_bentzi/)
 * (@elisha_bentzi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/errors-in-php-8/#post-14232416)
 * 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 5 years, 2 months ago by [Elisha_Bentzi](https://wordpress.org/support/users/elisha_bentzi/).
 *  [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/errors-in-php-8/#post-14303068)
 * 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.
 *  [herrvigg](https://wordpress.org/support/users/herrvigg/)
 * (@herrvigg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/errors-in-php-8/#post-14330276)
 * 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.

 * ![](https://ps.w.org/goodbye-captcha/assets/icon-256x256.png?rev=1356325)
 * [WPBruiser {no- Captcha anti-Spam}](https://wordpress.org/plugins/goodbye-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/goodbye-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/goodbye-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/goodbye-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/goodbye-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/goodbye-captcha/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [herrvigg](https://wordpress.org/support/users/herrvigg/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/errors-in-php-8/#post-14330276)
 * Status: not resolved