• Resolved daniel7887

    (@daniel7887)


    Hello team

    I have facing an error with Loco Translate at the moment of load vendor page dashboard in woocommerce. Basically its a fatal error and it says as follo

    loco translate spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw

    1. wp-content/plugins/loco-translate/loco.php:188
    2. spl_autoload_register()
      wp-content/plugins/loco-translate/loco.php:188

    Environment We got

    Php 8.1

    WordPress: Latest so far 6.3

    Divi

    Woocommerce and Dokan Lite and Pro

    Do you know how to fix this?

    Thank you for your valuable help
    Regards


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    The current version of Loco Translate does not specify this deprecated parameter. Are you running an old version?

    The function is registered on line 185 not 188, and you can see no second argument is passed.

    Plugin Author Tim W

    (@timwhitlock)

    I’m marking as resolved as what you’re showing me is not the latest version of Loco Translate. If you have other PHP 8.1 issues with the latest version then please start a new thread.

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

The topic ‘Error with spl_autoload_register(): Argument #2’ is closed to new replies.