• Resolved embercide

    (@embercide)


    Seeing this in logs:

    2021-03-17T00:52:34+00:00 CRITICAL Uncaught Error: Call to a member function get_sku() on bool in /home/mysite.com/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php:115
    Stack trace:
    #0 /home/mysite.com/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php(41): WGACT\Classes\Pixels\Pixel_Manager->inject_head_pixels()
    #1 /home/mysite.com/public_html/wp-includes/class-wp-hook.php(292): WGACT\Classes\Pixels\Pixel_Manager->WGACT\Classes\Pixels\{closure}()
    #2 /home/mysite.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #3 /home/mysite.com/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #4 /home/mysite.com/public_html/wp-includes/general-template.php(3009): do_action()
    #5 /home/mysite.com/public_html/ in /home/mysite.com/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php on line 115
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alekv

    (@alekv)

    Hi @embercide

    Thanks for reporting this. The problem was reported before and appears to only affect misconfigured variable products.

    One user reported to have fixed it like this:

    I’ve deleted one too many attribute. Reinserted the attribute and everything works fine now.

    I tried to reproduce this error in our development environment, but I couldn’t, which is why I can’t fix this, unless I get access to an installation where this error appears.

    If you’re willing to give me access to your install, I’ll debug this and will build a workaround into the plugin. Send me an email with WordPress admin and FTP access to support@wolfundbaer.ch if you want to help.

    Thread Starter embercide

    (@embercide)

    Hi @alekv

    Unfortunately I can’t provide access to our site due to customer confidentiality.
    Happy to follow your instruction to identify if it is related to variable products.

    Plugin Author alekv

    (@alekv)

    I released a new version (1.8.21) that contains a fallback when it encounters a misconfigured variation.

    Let me know if that works now for you.

    Plugin Author alekv

    (@alekv)

    I’m closing this thread as I’ve got confirmation that the issue is resolved with the newest version of the plugin.

    Feel free to add another response to this thread in case it doesn’t work for you.

    hi, i have the last version 1.8.21 but we have this fatal error

    [22-Mar-2021 10:12:53 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/web/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-google-pixel-manager.php:236
    Stack trace:
    #0 /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/web/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-google-pixel-manager.php(222): WGACT\Classes\Pixels\Google_Pixel_Manager->eec_get_visible_products(Array)
    #1 /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/web/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-google-pixel-manager.php(89): WGACT\Classes\Pixels\Google_Pixel_Manager->inject_data_layer_product()
    #2 /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/web/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php(71): WGACT\Classes\Pixels\Google_Pixel_Manager->inject_everywhere()
    #3 /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/ in /home/clients/abbc6b8e6659c2c904f2f6597ff17c45/web/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/class-google-pixel-manager.php on line 236

    Plugin Author alekv

    (@alekv)

    Hi @fulviods

    That must be misconfigured variable product.

    In any case, I’ve added a fallback to the code which will be released with the next version end of this week.

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

The topic ‘PHP Fatal errors’ is closed to new replies.