Table of Contents
If you get the Fatal error
If you get the fatal error when using our FedEx plugin, please verify the logs. You can do it by going to WooCommerce→ System→ Logs. Verify if you find any errors. When you find an error as below, in such case, the error is caused due to OPcache in the PHP settings of your server.
2023/05/31 18:18:00 [error] 41517#41517: *5106029 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in /www/necabinetry_543/public/wp-content/plugins/flexible-shipping-fedex-pro/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/AbstractComplexType.php:161We
You can either disable OPcache completely or after enabling OPcache, please enable opcache.save_comments as well. If you can’t edit php.ini file by yourself, please reach out to your hosting provider.