• Resolved chucklebum0205

    (@chucklebum0205)


    Hi Simon,

    Me again ?? – i’ve got a serious prob in that the plugin seems to be generating a massive amount of errors in my log file. Specifically this crops up every ten seconds or so – so much so that I had to delete a 6gb log file yesterday!

    Cannot record AddToCart event because the product cannot be determined. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/themes/theretailer/woocommerce/archive-product.php’), get_header, locate_template, load_template, require_once(‘/themes/theretailer/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_print_head_scripts, do_action(‘wp_print_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Frontend_Scripts::localize_printed_scripts, WC_Frontend_Scripts::localize_script, WC_Frontend_Scripts::get_script_data,

    This is the limit of what’s in the log. I’ve had to put a limit into php to stop this from running but it’s only a temp fix. This seems to have been happening before my upgrade to the latest version too. The only reason I discovered it was that my auto updates had started to fail. It was because i ran out of space on my server!

    Is this something that you can look into for me?

    Kind regards

    Brian.

Viewing 6 replies - 16 through 21 (of 21 total)
  • @skyverge

    I’m no longer seeing the AddToCart warning being logged now and the addtocart event is working fine.

    Thanks

    Hey @pvnanini,

    Awesome, thanks so much for checking in and letting me know. Sounds like you’re all set then! ??

    If you run into any further issues, don’t hesitate to let me know, I’d be happy to take another look.

    Cheers,

    Simon.

    Hello Simon,

    I just toggled and saved the debug mode. It is now back to off.

    But still logs:

    05-22-2020 @ 19:36:02 – Cannot record AddToCart event because the product cannot be determined. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/startit/woocommerce.php’), get_header, locate_template, load_template, require_once(‘/themes/startit-child/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_print_head_scripts, do_action(‘wp_print_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Frontend_Scripts::localize_printed_scripts, WC_Frontend_Scripts::localize_script, WC_Frontend_Scripts::get_script_data, apply_filters(‘woocommerce_get_script_data’), WP_Hook->apply_filters, Rtwpvs\Controllers\Hooks::wc_get_script_data, apply_filters(‘woocommerce_add_to_cart_redirect’), WP_Hook->apply_filters, WC_Facebookcommerce_EventsTracker->set_last_product_added_to_cart_upon_redirect

    Hey @kattouf,

    Thanks so much for testing that. Very strange!

    On the plus side, I’ve just seen that the developers have started to implement a patch for this issue, which should remove the log statement and use a fallback instead, to avoid this error being logged repeatedly. It’s currently going through the review process for our developers to make sure it’s working as intended, and then would be included in the next release of the plugin.

    At this stage, it would seem like it is likely to be released with the new major version. I don’t have an expected release date for this at the moment as work is still ongoing, and testing still needs to be completed, though we’re hopeful it will be fairly soon!

    Would you be able to update the plugin once available and confirm this issue has been resolved?

    Cheers!

    Simon.

    i just realized the same issues today:

    05-29-2020 @ 14:18:53 – Cannot record AddToCart event because the product cannot be determined. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/flatsome/page.php’), get_header, locate_template, load_template, require_once(‘/themes/flatsome/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_print_head_scripts, do_action(‘wp_print_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Frontend_Scripts::localize_printed_scripts, WC_Frontend_Scripts::localize_script, WC_Frontend_Scripts::get_script_data, apply_filters(‘woocommerce_add_to_cart_redirect’), WP_Hook->apply_filters, WC_Facebookcommerce_EventsTracker->set_last_product_added_to_cart_upon_redirect

    Hey @desophea,

    Thanks for letting me know! While it’s still possible the error would be caused by a custom theme, there is a case where it can be generated through a WooCommerce call. This particular case is what our developers have fixed and it should be included in the next release of the plugin.

    If you’re still having issues once the next version arrives, could you please let me know so we can look into your store more closely?

    Cheers!

    Simon.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Lots of add to cart events issues in logs’ is closed to new replies.