• Resolved fox-didl

    (@fox-didl)


    Got this in woocommerce fatal error log:

    2021-05-15T08:09:04+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on null in /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/trait-product.php:94
    Stack trace:
    #0 /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php(170): WGACT\Classes\Pixels\Pixel_Manager->get_dyn_r_ids(NULL)
    #1 /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php(137): WGACT\Classes\Pixels\Pixel_Manager->get_product_data_layer_script(NULL, false)
    #2 /wp-includes/class-wp-hook.php(292): WGACT\Classes\Pixels\Pixel_Manager->woocommerce_inject_product_data_on_product_page(”)
    #3 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #4 /wp-includes/plugin.php(484): WP_Hook->do_acti in /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/trait-product.php in Zeile 94

    • This topic was modified 4 years, 12 months ago by fox-didl.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author alekv

    (@alekv)

    Hi @fox-didl

    On which version of the plugin?

    Thread Starter fox-didl

    (@fox-didl)

    the latest

    Plugin Author alekv

    (@alekv)

    Ok. Usually this happens if WooCommerce returns a product ID, but under that product ID there is no product in the database.

    Mostly that type of error happens on multilingual shops.

    I already have safeguards for this, but it seems not in all places. I’ve now built more safeguards around the function you reported in my dev environment. Plus, it will log those problematic IDs into the WC log. I’ll publish this next week.

    Plugin Author alekv

    (@alekv)

    @fox-didl

    I identified the condition under which the code throws this error, fixed and published a new version 1.10.4

    Let me know if all is good after installing the new version.

    Thread Starter fox-didl

    (@fox-didl)

    yes, the issue seems to be gone. thanks.

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

The topic ‘CRITICAL Uncaught Error’ is closed to new replies.