Title: spl_autoload_register() error
Last modified: January 30, 2022

---

# spl_autoload_register() error

 *  [ckheaton](https://wordpress.org/support/users/ckheaton/)
 * (@ckheaton)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/spl_autoload_register-error/)
 * Upon install, I get this notice:
 * Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register()
   will always throw in /wp-content/plugins/buddycommerce/buddycommerce.php on line
   52
 * I am running on PHP8.

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

 *  Plugin Author [BuddyDev](https://wordpress.org/support/users/buddydev/)
 * (@buddydev)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/spl_autoload_register-error/#post-15322057)
 * Hi,
    Thank you for using the plugin.
 * This is intentional. PHP should not throw any notice on this as the second parameter.
   They have a default value of it to throw and that’s what we want.
 * [https://www.php.net/manual/en/function.spl-autoload-register.php](https://www.php.net/manual/en/function.spl-autoload-register.php)
 * Are you using any static analyzer? If not, Please share details about PHP8(complete
   version) as well as your OS name and version and we can troubleshoot it.
 * Regards
    BuddyDev Team
 *  [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/spl_autoload_register-error/#post-15826487)
 * [@buddydev](https://wordpress.org/support/users/buddydev/) I came to report the
   same thing. I’m seeing it in Query Monitor, not PHP logs after updating to PHP
   8.
 * It’s just a harmless PHP notice (not an error or even a warning). I suppose you
   may want to keep the 2nd parameter for PHP 7 compact.
 *  Plugin Author [BuddyDev](https://wordpress.org/support/users/buddydev/)
 * (@buddydev)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/spl_autoload_register-error/#post-15826499)
 * Hi [@jb510](https://wordpress.org/support/users/jb510/)
    Thank you.
 * I am sorry, we did not update it earlier. We will push a new release by Monday
   with this fix as well as some other minor changes.
 * Thank you
    BuddyDev Team

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

The topic ‘spl_autoload_register() error’ is closed to new replies.

 * ![](https://ps.w.org/buddycommerce/assets/icon-256x256.png?rev=2078975)
 * [BuddyCommerce: WooCommerce and BuddyPress Integration](https://wordpress.org/plugins/buddycommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddycommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddycommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/buddycommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddycommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddycommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [BuddyDev](https://wordpress.org/support/users/buddydev/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/spl_autoload_register-error/#post-15826499)
 * Status: not resolved