Home Forums WoodMart support forum Call to undefined function wc_print_notices()

Call to undefined function wc_print_notices()

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #431984

    matteo-8520
    Participant

    Description: an internal server error occurs while browsing the site, when I clear the cache or when I change pages by placing something in the cart. this is what I find in the php error log whenever the error occurs:
    PHP Fatal error: Uncaught Error:

    Call to undefined function wc_print_notices() in /wp-content/plugins/woocommerce/includes/wc-template-functions.php:3805
    Stack trace:#0 /wp-content/themes/woodmart/inc/modules/layouts/elementor/woocommerce/class-notices.php(104): woocommerce_output_all_notices()
    #1 /wp-content/plugins/elementor/includes/base/controls-stack.php(2266): XTS\Modules\Layouts\Notices->render()
    #2 /wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #3 /wp-content/plugins/elementor/includes/base/widget-base.php(673): Elementor\Widget_Base->render_content()
    #4 /wp-content/plugins/elementor/includes/db.php(202): Elementor\Widget_Base->render_plain_content()
    #5 /wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3805

    I can’t figure out what the problem is, I’ve tried disabling all the plugins but nothing the problem remains.

    can someone help me ?

    I think it depends on an outdated template in the theme: woodmart/woocommerce/global/quantity-input.php version 4.0.0 is obsolete. The current version is 7.2.1

    now I made a fix on woocommerce to not perform this function otherwise every time you add something to the cart I get error 500, but the problem is not solved

    thank you very much

    #431993

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #432863

    matteo-8520
    Participant

    I created a staging environment with this account for you :

    please if you disable something let me know so then I can put everything back

    thank you very much

    #432865

    Artem Temos
    Keymaster

    Please, disable all plugins that are not related to our theme temporarily, and let us check this. Also, send us a direct link to the page where we can see the error on your staging website.

    Kind Regards

    #433022

    matteo-8520
    Participant

    you can disable the plugins yourself.

    unfortunately there is no specific page, the error occurs randomly, most of the time it occurs when a user goes to the checkout page. Or when we modify a product. Sometimes when I clear the cache. You check out the checkout page and see if it happens.

    I see that there is this obsolete template, the only error that woocommerce gives me, so I ask you to investigate this template.
    woodmart/woocommerce/global/quantity-input.php versione 4.0.0 is out of date.

    thank you very much

    #433035

    Artem Temos
    Keymaster

    Please, disable plugins by yourself so we don’t break anything.
    Also, we visited most of your website pages but we never saw the error. Here is a screenshot of the checkout page https://gyazo.com/c0a930aa3351c4fabd472adb58203e8a

Viewing 6 posts - 1 through 6 (of 6 total)