• Resolved sarahweb

    (@sarahweb)


    Getting lots of errors in my logs – from Mailchimp plugin..

    [25-Sep-2020 11:30:33 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_parent_id() on bool in /mysite/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-cart-update.php:222
    Stack trace:
    #0 /mysite/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-cart-update.php(139): MailChimp_WooCommerce_Cart_Update->transformLineItem(‘674de95eb12d074…’, Array)
    #1 /mysite/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-cart-update.php(72): MailChimp_WooCommerce_Cart_Update->process()
    #2 /mysite/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php(903): MailChimp_WooCommerce_Cart_Update->handle()
    #3 /mysite/wp-includes/class-wp-hook.php(287): MailChimp_Service->mailchimp_process_single_job(’43a58ebc0cb6b70…’)
    #4 /mysite/wp-includes/class-wp-hook.php(311): WP_Hook->appl in /mysite/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-cart-update.php on line 222

    Any ideas?

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support khungate

    (@khungate)

    Hi @sarahweb, Sorry to hear you’re having issues with the plugin, we definitely want to try to help out. Just to get a handle on the situation you’re experiencing, could you provide a few more pieces of information to help us understand the issue?
    – What plugin version are you using?
    – What version of PHP are you using?
    – Are there any fatal errors in WooCommerce? (WooCommerce -> Status -> Logs)
    – If you have a large number of plugins being used, you may need to bump up your memory limit on your server (1GB for example) to accommodate the initial sync.
    – If you haven’t already, please browse through our wiki to find documentation on the most common issues and how to resolve them: https://github.com/mailchimp/mc-woocommerce/wiki

    Thanks in advance for these details. I’ll keep an eye out for your reply.

    I think I have the same issue, when I updated to version 2.4.7 I got this error but when I downgraded it to 2.4.6 I still get the same error…

    this is the link for my error screenshot:
    https://www.mrfilament.com/wp-content/uploads/2020/09/mailchimp-error.jpg

    Thread Starter sarahweb

    (@sarahweb)

    Thanks for the reply khungate here are our answers

    – What plugin version are you using? 2.4.6
    – What version of PHP are you using? 7.3.2.2
    – Are there any fatal errors in WooCommerce? Yes but just the errors for your plugin that I copied above
    – If you have a large number of plugins being used, you may need to bump up your memory limit on your server (1GB for example) to accommodate the initial sync. – already bumped up a month or so ago – we have had your plugin for ages so its not a new sync or anything

    thanks
    Sarah

    Plugin Author ryanhungate

    (@ryanhungate)

    @sarahweb this is a little odd because we’re on a line of code where the cart has a “variant id” but it’s not being loaded properly?

    
    $product = wc_get_product($variant_id); // this is where the problem is
    $product_id = $product->get_parent_id(); // this should be there.
    

    I think that in this case we can roll out a patch for it but there’s no guarantee on the next release schedule. If you need a patch I can write up what you need but I would really like to see what the “item” is that’s causing this trouble. Is it by chance a “free item”?

    Thread Starter sarahweb

    (@sarahweb)

    It could be a free item – we have a number of free gifts items – so could easily be that – happy to wait for a patch hopefully not too long though as fatal errors do slow things down – thank you though for looking into things!

    Plugin Author ryanhungate

    (@ryanhungate)

    @sarahweb have you upgraded to version 2.4.7 yet? That should have resolved the issue here. Please let us know if that’s still happening.

    Thread Starter sarahweb

    (@sarahweb)

    I have just checked and we are on latest version and I have not had that error since 9 Oct – so hopefully will corrected! – thank you

    Thread Starter sarahweb

    (@sarahweb)

    Hmm actually I am still getting an error but its linked to Rank Math SEO and Mailchimp – error says:

    [22-Oct-2020 04:25:41 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Unidentified action 55713 in /xxxxxxxxxx/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:458
    Stack trace:
    #0 /xxxxxxxxxx/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php(117): ActionScheduler_DBStore->cancel_action(‘55713’)
    #1 /xxxxxxxxxx/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(134): as_unschedule_action(‘MailChimp_WooCo…’, Array, ‘mc-woocommerce’)
    #2 /xxxxxxxxxx/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(197): mailchimp_as_push(Object(MailChimp_WooCommerce_Cart_Update), 0)
    #3 /xxxxxxxxxx/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php(246): mailchimp_handle_or_queue(Object(MailChimp_WooCommerce_Cart_Update))
    #4 /xxxxxxxxxx/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-wooco in /xxxxxxxxxx/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 458

    I have sent this to Rank Math – but in case its actually more your side?

    Sorry do you want a new topic started?

    Thread Starter sarahweb

    (@sarahweb)

    Sorry another update Rank Math replied with this fix
    https://rankmath.com/kb/fatal-error-after-1-0-49-update/
    However might be worth you looking at it incase its your action scheduler issue that caused it ?

    Plugin Author ryanhungate

    (@ryanhungate)

    @sarahweb ok that’s good news on both fronts – but I did need to point out that these are 2 completely different issues. The one you originally posted about was related to the cart post, and the product parent was not present which was causing a fatal error. That was our fix in the plugin.

    The Action Scheduler issue is another common one, and yes that article is very good for anyone experiencing this issue. Thanks for the link. I would bet that this solution might even scale out to a lot of other people that are seeing this Unidentified action fatal error. Thanks for sharing ??

    Thread Starter sarahweb

    (@sarahweb)

    yes 100% two issues and but all now sorted – so thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_parent_id()’ is closed to new replies.