• Resolved mookie4a4

    (@mookie4a4)


    [Mon Sep 04 14:35:55.543210 2017] [:error] [pid 29800] [client *.*.*.*:51480] PHP Fatal error: Uncaught Error: Call to undefined method WC_Product_Variation::get_name() in /wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-wc-enhanced-ecommerce-google-analytics-integration.php:405\nStack trace:\n#0 /wp-includes/class-wp-hook.php(298): WC_Enhanced_Ecommerce_Google_Analytics->ecommerce_tracking_code(12406)\n#1 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#2 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /wp-content/plugins/woocommerce/templates/checkout/thankyou.php(65): do_action(‘woocommerce_tha…’, 12406)\n#4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(203): include(‘/var/www/wordpr…’)\n#5 /wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(212): wc_get_template(‘checkout/thanky…’, Array)\n#6 /wp-content/plugins/woocommerce/includes/shortcodes/cl in /wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-wc-enhanced-ecommerce-google-analytics-integration.php on line 405, referer: /checkout/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mookie4a4

    (@mookie4a4)

    Line 405 should probably be:
    esc_js($_product->get_title())
    not
    esc_js($_product->get_name())

    Plugin Author Conversios

    (@tatvic)

    Hi,

    Thank you for your suggestion!

    We are on it & get back to you soon!

    Thanks & Regards!

    Plugin Author Conversios

    (@tatvic)

    Hi,

    It is fixed now. Kindly update the plugin with the new version!

    Regards!

    Thread Starter mookie4a4

    (@mookie4a4)

    Thanks! ??

    jeroenjeroenjeroen888

    (@jeroenjeroenjeroen888)

    Hi,

    We got a similar problem. After checkout we get this message:

    Notice: Undefined variable: code in /nas/content/live/websitename/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-wc-enhanced-ecommerce-google-analytics-integration.php on line 426

    I updated to version: 1.2.0.

    What should I do to fix this?

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