• Resolved Ilari Arovuo

    (@iarovuo)


    Plugin throws error;

    [04-Oct-2020 08:26:14 UTC] PHP Fatal error:  Uncaught Error: Call to a member function is_type() on bool in /public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php:494
    Stack trace:
    #0 /public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(443): WC_Google_Analytics_JS::product_get_variant_line(false)
    #1 /public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(381): WC_Google_Analytics_JS->add_item_enhanced(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order_Item_Product))
    #2 /public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(292): WC_Google_Analytics_JS->add_transaction_enhanced(Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #3 /home/... in /public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php on line 494
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @iarovuo – I’ve been unable to find any other reports or issues relating to this particular error. Have you been able to narrow down where this is coming from?

    If not, are you able to try conflict testing on your site for us?
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thanks!
    – Joey

    Thread Starter Ilari Arovuo

    (@iarovuo)

    Hi @jricketts4

    I can try spending additional time narrowing down the issue, but would be helpful, if I knew which action triggers that part of the code. Can you please suggest action to trigger that part of code execution?

    Thanks,
    Ilari

    • This reply was modified 4 years, 1 month ago by Ilari Arovuo.
    Plugin Support con

    (@conschneider)

    Engineer

    Hi Illari,

    Thanks for taking the time. From the looks of it I would dump: WC_Google_Analytics_JS->add_transaction_enhanced(Object(Automattic\WooCommerce\Admin\Overrides\Order) – namely Object(Automattic\WooCommerce\Admin\Overrides\Order.

    I don’t have a certain test for you or looked at the code yet, but from the looks of it I would place a test order and see if it fires.
    Or take a look at the hook that triggers the callback to understand more of the event that it is linked to.

    Kind regards,

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

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