• Resolved andresfox86

    (@andresfox86)


    Can you help me, I installed the plugin but when I write the production API keys I get error 500, it already updates the plugin to the latest version, the error doesn’t say much, I don’t know if it is due to a jquery.min version error It’s in the administration panel.

     POST /wp-admin/admin-ajax.php 500 (Internal Server Error)
     wp-admin/admin.php?page=wc- settings&tab=shipping&section=flexible_shipping_fedex
       error ->   jquery.min.js?ver=3.7.1:2 
    -> here ---
          jQuery.ajax({
          url: ajax_url,
          data: ajax_data,
          method: 'POST',
          dataType: 'JSON',
          success: function(data) {
                                                                  jQuery(status_field).html(data.status);
                                                   jQuery(status_field).removeClass('wpdesk_wc_shipping_api_status_ok');
    
                                                error: function(xhr, ajaxOptions, thrownError) {

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @andresfox86,
    Can You please navigate to Woocommerce > Status > Logs and check if there are any additional fatal error messages?

    Regards,
    Wojtek

    Thread Starter andresfox86

    (@andresfox86)

    I have checked and I did not find anything in the wordpress status path, but in server statuses I did find this:

    2024/02/13 20:01:16 [error] 20283#20283: *482873 FastCGI sent in stderr: “PHP message: 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/octolize/php-fedex-api-wrapper/src/FedEx/AbstractComplexType.php:161
    Stack trace: 0 public/wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/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/FedexSender.php(89): 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(132): FedExVendor\WPDesk\FedexShippingService\FedexApi\FedexSender->s” while reading upstream, client request: “GET /wp-content/

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    Thanks for the info.

    The error is caused due to OPcache in the PHP settings of your server. 

    You can either disable OPcache completely or after enabling OPcache, please enable opcache.save_comments as well. If you can’t edit the php.ini file by yourself, please reach out to your hosting provider.

    Please let me know if implementing the above helped. 

    Regards,

    Wojtek

    Thread Starter andresfox86

    (@andresfox86)

    Thanks, I contacted my server provider and they enabled opcache.save_comments and the plugin worked, thank you very much.

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    I’m glad that it helped. I’m marking this topic as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘admin-ajax.php 500 (Internal Server Error)’ is closed to new replies.