Hi @chriscarman,
The error logs you’ve shared indicates that the class Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine is not found. This could be due to several reasons such as missing files, incorrect file permissions, or a conflict with another plugin or theme.
Here are a few steps you can take to resolve this issue:
- You mentioned that you’re using PHP 7.4. While this should be compatible, updating to a newer version of PHP (like 8.1.27) might resolve the issue.
- It’s possible that some WooCommerce files are corrupted or missing. Deactivate and delete the WooCommerce plugin, then reinstall it.
- Ensure that the file permissions for your WordPress installation are correct.
In the meantime, you can run a conflict test to help you identify the cause of the issue. More info: https://woo.com/document/how-to-test-for-conflicts/
Let us know how that goes for you.
I’m still having this issue on both of my websites that use the WooCommerce plugin. I did the following on my lower-traffic site and still encountered the same fatal error each time
- Verified that my site is running PHP 8.2
- Deleted the woocommerce plugin folder and installed the latest version from ww.wp.xz.cn
- Disabled every plugin so that WooCommerce was the only active plugin
The only time I could get wp-load.php to work is when WooCommerce is deactivated. When it’s active, I still get this error:
PHP Parse error: syntax error, unexpected ‘LegacyProxy’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/[username]/public_html/wp-content/plugins/woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php on line 48
Line 48 of TransientFilesEngine.php is:
private LegacyProxy $legacy_proxy;
This is the only file I can find in the WooCommerce source code that uses the string LegacyProxy in the private variable declaration. Other files use:
private $proxy;
but even when I remove LegacyProxy from line 48 in TransientFilesEngine.php, it still gives this parse error:
PHP Warning: class_implements(): Class Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine does not exist and could not be loaded in /home/[*username*]/public_html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AbstractInterfaceServiceProvider.php on line 34
At the top of AbstractInterfaceServiceProvider.php, I tried adding this line:
use Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine;
Same error. I also can’t use WP CLI to add a user, because I get the same fatal error. Anything you can do to help would be appreciated!
For anyone who stumbles across this thread in the future, the issue was that I didn’t realize that PHP cli was using 7.3.33. When I ran my custom script by calling php74, there was no conflict with the WooCommerce plugin. Sorry for any confusion this might have caused!
Hi @chriscarman,
I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! 🙂
Should you have further inquiries, kindly create a new topic here.
Thanks!