Title: Transients preventing CLI upload
Last modified: March 12, 2024

---

# Transients preventing CLI upload

 *  Resolved [WebsThatRock](https://wordpress.org/support/users/websthatrock/)
 * (@websthatrock)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/transients-preventing-cli-upload/)
 *     ```wp-block-code
       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)

 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/transients-preventing-cli-upload/#post-17496185)
 * Hello [WebsThatRock](https://wordpress.org/support/users/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](https://gist.github.com)
   
   After that, you can paste the Gist link here in your reply.
 * Looking forward to your response. 🙂
    -  This reply was modified 2 years, 2 months ago by [Zee](https://wordpress.org/support/users/doublezed2/).
 *  Thread Starter [WebsThatRock](https://wordpress.org/support/users/websthatrock/)
 * (@websthatrock)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/transients-preventing-cli-upload/#post-17497817)
 * 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.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/transients-preventing-cli-upload/#post-17499040)
 * Hello [@websthatrock](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [cli](https://wordpress.org/support/topic-tag/cli/)
 * [transients](https://wordpress.org/support/topic-tag/transients/)

 * 3 replies
 * 3 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/transients-preventing-cli-upload/#post-17499040)
 * Status: resolved