• 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

    (@buddydev)

    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

    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

    @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

    (@buddydev)

    Hi @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.