• Resolved sabuki

    (@sabuki)


    Good morning. I have been looking at the possibility of using this plugin but on activating it causes me a fatal error in each product page. In addition to the error, no product image is displayed and variations and the different selectors of the variations of each product.

    Now plugin is inactive.

    when I activate the plugin the error that appears on each product page is as follows;

    Fatal error: Uncaught Error: Call to a member function get_price() on boolean in /home/mihijafe/public_html/wp-content/plugins/woocommerce-google-dynamic-retargeting-tag/wgdr.php:473 Stack trace: #0 /home/mihijafe/public_html/wp-includes/class-wp-hook.php(298): WGDR->google_dynamic_retargeting_code(”) #1 /home/mihijafe/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/mihijafe/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/mihijafe/public_html/wp-includes/general-template.php(2605): do_action(‘wp_footer’) #4 /home/mihijafe/public_html/wp-content/themes/genesis/footer.php(30): wp_footer() #5 /home/mihijafe/public_html/wp-includes/template.php(688): require_once(‘/home/mihijafe/…’) #6 /home/mihijafe/public_html/wp-includes/template.php(647): load_template(‘/home/mihijafe/…’, true) #7 /home/mihijafe/public_html/wp-includes/general-template.php(84): locate_template(Array, true) #8 /home/mihijafe/public_html/wp-content/themes/genesis/lib/framework.php in /home/mihijafe/public_html/wp-content/plugins/woocommerce-google-dynamic-retargeting-tag/wgdr.php on line 473

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author alekv

    (@alekv)

    Hi @sabuki

    What versions of WordPress, WooCommerce and PHP do you use?

    Thread Starter sabuki

    (@sabuki)

    Wordpress: 4.8.1
    Woocommerce: 3.1.2
    PHP: 7.1.8

    Plugin Author alekv

    (@alekv)

    Hello @sabuki

    I’ve spent some time pinpointing the issue. It looks like your shop has a non standard implementation for the product pages (or this particular product page). I assume this is some custom coding conflict, or a plugin conflict, or a theme conflict. Probably it has to do with the requirement to show the drop down options for variations.

    Some technical details: Our plugin uses the page ID to request the details, such as price, from the database. The page ID on a standard shop is equals the product ID. In that case our plugin works perfectly fine. In your case the product page ID is not equals to the product ID. So the request to the database for the price fails and throws that error you posted. There is no way for us to know what the corresponding product ID is without knowing in what way your shop has been customized.

    Therefore we unfortunately can’t give you support for our free plugin as our plugin is designed to work with standard WooCommerce implementations.

    We probably could find a way to fix your issue. But it would also be a custom solution for your shop specifically for which we would have to charge you. If you are still interested having that done by us please send a request to [email protected]

    Plugin Author alekv

    (@alekv)

    Hello @sabuki

    I am getting more similar reports right now. So the issue is systematic and I guess WooCommerce changed the way it handles product IDs. I’ll debug this and update the plugin asap.

    Plugin Author alekv

    (@alekv)

    @sabuki

    I’ve updated the plugin so that it catches this fatal error and writes deubug information into the debug.log

    You will not see that fatal error anymore, so you can keep using the plugin.

    But the remarketing will not work for this specific product until I have more information. If you want me to dig deeper please send a request to [email protected]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘to activate this plugin causes fatal error in my web’ is closed to new replies.