• Hi there,

    We recently started getting a critical error when visiting a particular page managed by the Woocommerce Follow Ups plugin.

    I’ve included the error code below:

    2023-02-15T17:04:53+00:00 CRITICAL Uncaught Error: Call to undefined function wc_get_notices() in /nas/content/live/rslspeakers/wp-content/plugins/minmax-quantity-for-woocommerce/main.php:721
    Stack trace:
    #0 /nas/content/live/rslspeakers/wp-includes/class-wp-hook.php(308): BeRocket_MM_Quantity->new_calculate_total(Object(WC_Cart))
    #1 /nas/content/live/rslspeakers/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #2 /nas/content/live/rslspeakers/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /nas/content/live/rslspeakers/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1403): do_action('woocommerce_aft...', Object(WC_Cart))
    #4 /nas/content/live/rslspeakers/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(212): WC_Cart->calculate_totals()
    #5 /nas/content/live/rslspeakers/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php(274): WC_Cart_Session->get_cart_from_session()
    #6 /nas/content/live/rslspeakers/wp-content/plugins/woocommerce-follow-up-emails/includes/addons/class- in /nas/content/live/rslspeakers/wp-content/plugins/minmax-quantity-for-woocommerce/main.php on line 721

    Let me know if anything further is needed.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    Please provide url to the plugin.

    Error message is not full. From this part “/plugins/woocommerce-follow-up-emails/includes/addons/class-” we can see that the issue is comming from the addon of that plugin. Did you check what addon it is and if you need it?

    Regards,
    Dmytro

    Thread Starter nickiova

    (@nickiova)

    Hi @dholovnia,

    Sure thing.

    Other plugin that seems to be conflicting: https://woocommerce.com/products/follow-up-emails/

    Based on the addon classes available and where the error occurs, I believe it might be the following: woocommerce-follow-up-emails/includes/addons/class-fue-addon-woocommerce-reports.php

    This function is used on the website so it would be ideal to keep it.

    Let me know if you need anything further.

    Thanks,

    Thread Starter nickiova

    (@nickiova)

    @dholovnia – I did reach out to the Woocommerce Follow Up plugin support and they provided me the following:

    I think it may actually be referencing this file: includes/addons/class-fue-addon-woocommerce.php

    And my suspicion is the Min/Max plugin is trying to get cart notices when it shouldn’t be in the backend.

    They asked where the issues specifically occurs: Issue occurs on individual Customer Data reports by Follow Up Emails plugin which they responded:

    I don’t think I can narrow this down further and I believe this will need to be fixed in BeRocket’s plugin. But, the template for that page is this file: woocommerce-follow-up-emails/templates/reports/user_view.php

    I found that the error seems to occur on customers / Users with older order details and not for newer customers. They provided the following:

    Gotcha! So, this will still need to be fixed by BeRocket, but given that info, I suspect this is an issue with how they’re pulling carts with legacy classes. I’m guessing they’re trying to pull a cart from a session that no longer exists here: #5 /nas/content/live/rslspeakers/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php(274): WC_Cart_Session->get_cart_from_session()

    I’m not a developer and I can’t say if that’s the case for sure, but there may need to be a check to ensure the function wc_get_notices() exists for carts that are passed to function they’re using here: https://plugins.trac.www.ads-software.com/browser/minmax-quantity-for-woocommerce/trunk/main.php#L711

    Let me know if I can provide anything further.

    Thanks.

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi,

    Thank you for the detailed info on the issue. Our developer will check how this can be fixed. I’ll keep you posted.

    Regards,
    Dmytro

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error with Woocommerce Follow up page’ is closed to new replies.