• Resolved wpacct24

    (@wpacct24)


    When I updated to PHP 7.4 (from 7.3), I got the following error:

    WordPress version 5.9
    Current theme: ****** (version 1.0.0)
    Current plugin: WooCommerce Shipping & Tax (version 1.25.23)
    PHP version 7.4.27
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 47 of the file /var/www/wp-content/plugins/woocommerce-services/classes/wc-api-dev/class-wc-rest-dev-data-continents-controller.php. Error message: Uncaught Error: Cannot call constructor in /var/www/wp-content/plugins/woocommerce-services/classes/wc-api-dev/class-wc-rest-dev-data-continents-controller.php:47
    Stack trace:
    #0 /var/www/wp-content/plugins/woocommerce-services/woocommerce-services.php(972): WC_REST_Dev_Data_Continents_Controller->__construct()
    #1 /var/www/wp-includes/class-wp-hook.php(307): WC_Connect_Loader->wc_api_dev_init(Object(WP_REST_Server))
    #2 /var/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #3 /var/www/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /var/www/wp-includes/rest-api.php(553): do_action('rest_api_init', Object(WP_REST_Server))
    #5 /var/www/wp-content/plugins/disable-json-api/classes/helpers.php(10): rest_get_server()
    #6 /var/www/wp-content/plugins/disable-json-api/classes/helpers.php(36): DRA_Helpers::get_all_rest_routes()
    #7 /var/www/wp-content/plugins/disable-json-api/classes/disable-rest-api.php(323): DRA_Helpers::build_routes_rule(Array)
    #8 /var/www/wp-content/plugins/disable-

    Will you be fixing this issue in your plugin anytime soon?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @wpacct24,

    It looks like there is a conflict with the Disable REST API plugin and WooCommerce Shipping & Tax with PHP 7.4. I’m not able to reproduce this error on any of my test sites unless I have the Disable REST API plugin active too.

    Try disabling it and see if that fixes your problem. Let us know if you have any questions.

    Cheers

    Thread Starter wpacct24

    (@wpacct24)

    Thanks for the prompt reply…yes, I do use that rest api plugin, so I will disable it to see if it works. Is there any plan to update WooCommerce Shipping & Tax so that it can work with Disable REST API activated?

    Thanks.

    Thread Starter wpacct24

    (@wpacct24)

    Yes, deactivating the plugin Disable REST API, enabled WooCommerce Shipping & Tax to work. But I like Disable REST API for additional security against viewing the WP username.

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    I’m glad to hear that disabling it got this fixed for you.

    You’re welcome to open up an issue about this on GitHub. That would let the developers know that this is happening to you.

    https://github.com/Automattic/woocommerce-services/issues/new

    You might also reach out on the Disable REST API support forum and see if they can make any changes on their end too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7.4 Compatibility Issue’ is closed to new replies.