• Resolved WebsThatRock

    (@websthatrock)


    Hello, using CLI PHP version PHP 7.3.33 and WooCommerce version 8.22 and tested again on version 8.6.1 when trying to run the CLI I get these error messages. Is this a bug that needs to be reported? Do I need CLI to use version PHP 7.4?
    
    Michael
    
    When testing with WooCommerce 8.22 I get this error.
    
    Parse error: syntax error, unexpected ‘?’, expecting function (T_FUNCTION) or const (T_CONST) in /home/mtgshopp/public_html/wp-content/plugins/wp-all-import-pro/addon-api/classes/helpers.php on line 241Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.[mtgshopp@cloud-9dc319 pub
    
    When testing with WooCommerce 8.6.1 I get this error.
    
    arning: class_implements(): Class Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine does not exist and could not be loaded in /home/mtgshopp/public_html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AbstractInterfaceServiceProvider.php on line 34Parse error: syntax error, unexpected ‘LegacyProxy’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/mtgshopp/public_html/wp-content/plugins/woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php on line 48Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
    
    I just had the host upgrade the PHP to 7.4 for the CLI and it received the same error.
    
    Update: I restored the database and files from March 1st and it worked BUT when I unsuspended the transients and tried importing again I received the same errors. I tried deleting the transients from the plugin, phpmyadmin, and CLI but was not able to do so. Do you think deleting the transients would solve this?
    
    Michael
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello WebsThatRock

    Thank you for contacting WooCommerce support.

    I understand you are getting two different errors on your website.
    One with WooCommerce 8.22 and the other with WooCommerce 8.6.1.

    First of all, I will recommend using the version to the latest version 8.6.1.
    Using the latest version ensures that there are no security or performance-related issues.

    Could you please share the exact steps which led to this error?

    To help you further, I’d like to review your site’s System Status Report.
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Looking forward to your response. ??

    Thread Starter WebsThatRock

    (@websthatrock)

    Problem got solved. It turned out the CLI PHP version was 7.3. I contacted the host and they changed it to 7.4 and with a special CLI command to update to force it to 7.4 it worked. I found out online that since WooCommerce 8.6 this error is caused if the CLI is less than 7.3 even if the website itself is 7.4 or higher.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @websthatrock,

    I’m glad to hear that your issue has been resolved. Indeed, the PHP version compatibility is critical for WooCommerce to function properly.

    Thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Transients preventing CLI upload’ is closed to new replies.