Title: PHP Fatal Error when enabling FedEx
Last modified: June 3, 2020

---

# PHP Fatal Error when enabling FedEx

 *  Resolved [amitramani](https://wordpress.org/support/users/amitramani/)
 * (@amitramani)
 * [6 years ago](https://wordpress.org/support/topic/php-fatal-error-when-enabling-fedex/)
 * I just installed this plugin on my site. As soon as I enable the “Method Enable
   Checkbox : Enable Fedex Global Shipping Method”, I receive a fatal PHP Error.
 * Any ideas?
    All the plugins (including Woocommerce) have been updated to the 
   latest versions. Here is the error:
 *     ```
       PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in public/wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/jeremy-dunn/php-fedex-api-wrapper/src/FedEx/AbstractComplexType.php:160
       Stack trace:
       #0 /public/wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/jeremy-dunn/php-fedex-api-wrapper/src/FedEx/RateService/Request.php(32): FedExVendor\FedEx\AbstractComplexType->populateFromStdClass(Object(stdClass))
       #1 /public/wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/fedex-shipping-service/src/FedexShippingService/FedexApi/ConnectionChecker.php(108): FedExVendor\FedEx\RateService\Request->getGetRatesReply(Object(FedExVendor\FedEx\RateService\ComplexType\RateRequest))
       #2 /public/wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/fedex-shipping-service/src/FedexShippingService/FedexShippingService.php(241): FedExVendor\WPDesk" while reading response header from upstream, client:  request: 
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-when-enabling-fedex%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years ago](https://wordpress.org/support/topic/php-fatal-error-when-enabling-fedex/#post-12936561)
 * Hello [@amitramani](https://wordpress.org/support/users/amitramani/),
 * Probably there is some problem with PHP configuration on your hosting’s setting.
   Please make sure that this function works: [https://www.php.net/manual/en/reflectionfunctionabstract.getdoccomment.php](https://www.php.net/manual/en/reflectionfunctionabstract.getdoccomment.php)
 * These settings are connected with optimization settings. Can you ask your hosting
   to disable settings that are making that function not working?
 * Best regards,
    Marta
 *  Plugin Support [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-when-enabling-fedex/#post-13088893)
 * As we haven’t got any replies, I’m marking this topic as resolved for now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal Error when enabling FedEx’ is closed to new replies.

 * ![](https://ps.w.org/flexible-shipping-fedex/assets/icon.svg?rev=2738067)
 * [Shipping Live Rates for FedEx for WooCommerce](https://wordpress.org/plugins/flexible-shipping-fedex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-shipping-fedex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-shipping-fedex/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-shipping-fedex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-shipping-fedex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-shipping-fedex/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [FEDEX](https://wordpress.org/support/topic-tag/fedex/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-when-enabling-fedex/#post-13088893)
 * Status: resolved