• Resolved bluenet

    (@bluenet)


    After activation, I received the fatal error listed below. Based on my current system version(s) listed below, can you provide insight into why the plugin is throwing the undefined method error?

    HubSpot for WooCommerce Version 1.06
    WC Version: 3.5.7
    PHP Version: 7.1.33
    WP Version: 5.1.1

    [19-Dec-2020 20:51:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WooCommerce::is_rest_api_request() in /wp-content/plugins/makewebbetter-hubspot-for-woocommerce/public/class-hubwoo-public.php:324

    Stack trace:
    #0 /wp-includes/class-wp-hook.php(286): Hubwoo_Public->hubwoo_abncart_start_session(”)
    #1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /wp-settings.php(505): do_action(‘init’)
    #4 /wp-config.php(166): require_once(‘/home/…’)
    #5 /wp-load.php(37): require_once(‘/home/…’)
    #6 /wp-login.php(12): require(‘/home/…’)
    #7 {main} thrown in /wp-content/plugins/makewebbetter-hubspot-for-woocommerce/public/class-hubwoo-public.php on line 324

    Thanks in advance for your help and suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MakeWebBetter

    (@makewebbetter)

    Hello @bluenet ,

    Thank you for using our integration!

    The function “is_rest_api_request()” is defined in the latest versions of WooCommerce and this function is used in our plugin for the security purposes of clients. So, you would need to update your WooCommerce version to the latest one.

    This will surely fix this issue. Please let us know if you have any other problems.

    Thread Starter bluenet

    (@bluenet)

    Thanks for the reply. I’ll try and update our WooCommerce version.

    NOTE: The plugin docs suggest a minimum WC version of 3.0… so I thought I was good there (WC requires at least: 3.0)

    Plugin Author MakeWebBetter

    (@makewebbetter)

    Hello @bluenet ,

    Thanks for connecting with us.
    Your issue will be resolved after updating to the latest WooCommerce Version.

    Even if you have issues then you can comment us here anytime

    Thanks

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

The topic ‘Fatal Error After Activation: WooCommerce::is_rest_api_request()’ is closed to new replies.