• Resolved ztarven

    (@ztarven)


    WooCommerce is giving me the PHP error below after an update. I’m think it’s WooCommerce because the error goes away when I deactivate it. Any advice on how to fix it is much appreciated!

    php-error: Array ( [type] => 16384 [message] => The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. [file] => /var/www/html2/wp-includes/Requests/src/Autoload.php [line] => 171 )
    
    
Viewing 1 replies (of 1 total)
  • Hi @ztarven

    The error you’re encountering, related to the deprecated “Requests_…” class names in the Request library, is a known issue affecting some installations of WooCommerce.

    To mitigate this issue, try the following steps:

    1. Make sure you are using the latest version of WooCommerce, as the issue may have been addressed in more recent updates.

    2. The deprecated classes notice can be related to an older PHP version. Update your server’s PHP version to 7.4 or later, which are the recommended versions for WordPress and WooCommerce. You can typically update the PHP version through your hosting control panel or by contacting your hosting provider.

    3. Enable WordPress debugging to get more information about the error and share it here, so we can investigate it further.

    Let me know how that goes!

Viewing 1 replies (of 1 total)
  • The topic ‘The PSR-0 `Requests_…` class names in the Request library are deprecated’ is closed to new replies.