Home › Forums › WoodMart support forum › Call to undefined function wc_print_notices()
Call to undefined function wc_print_notices()
- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by
Artem Temos.
-
AuthorPosts
-
December 29, 2022 at 11:36 am #431984
matteo-8520ParticipantDescription: 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 3805I 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
December 29, 2022 at 12:20 pm #431993
Artem TemosKeymasterHello,
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
January 3, 2023 at 5:44 pm #432863
matteo-8520ParticipantI 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
January 3, 2023 at 5:49 pm #432865
Artem TemosKeymasterPlease, 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
January 4, 2023 at 12:32 pm #433022
matteo-8520Participantyou 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
January 4, 2023 at 1:28 pm #433035
Artem TemosKeymasterPlease, 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 -
AuthorPosts
- You must be logged in to create new topics. Login / Register