• Resolved rajgorjaydeep

    (@rajgorjaydeep)


    Hello,

    Upon checking woocommerce logs we found below mentioned error:

    2022-09-12T00:54:54+00:00 CRITICAL Uncaught Error: Call to undefined function wc_print_notices() in /var/www/site/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3785
    Stack trace:
    #0 /var/www/site/public_html/wp-content/themes/custom/functions.php(1373): woocommerce_output_all_notices()
    #1 /var/www/site/public_html/wp-includes/shortcodes.php(356): qc_render_wc_login_form(Array, '', 'qc_wc_login_for...')
    #2 [internal function]: do_shortcode_tag(Array)
    #3 /var/www/site/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(qc_wc_...', 'do_shortcode_ta...', '[qc_wc_login_fo...')
    #4 /var/www/site/public_html/wp-content/themes/custom/functions.php(1403): do_shortcode('[qc_wc_login_fo...')
    #5 /var/www/site/public_html/wp-includes/shortcodes.php(356): qc_login_popup('', '', 'qc_login_popup')
    #6 [internal function]: do_shortcode_tag(Array)
    #7 /var/www/site/public_html/wp-includes/shortcodes.php(228): preg_replace_callba i /var/www/site/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php på rad 3785

    Also, periodically our websites have the 508 resource limit reached error from server. Upon checking the same we found at that specific time RAM and php threads are appx. 100% and so many IO process.

    Can you please check the same and let us know? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @rajgorjaydeep

    Thanks for reaching out!

    I understand that you are receiving the error messages above on your site.

    Can you please check if you have custom codes on your functions.php file? If so, if you could please deactivate these custom codes and see if that works?

    If that did not resolve the issue, this kind of problem is usually caused by a conflict with your theme or with another plugin present on your site. Can you please try to perform a full conflict test and see if that works?

    https://woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter rajgorjaydeep

    (@rajgorjaydeep)

    Hi @xue28

    Thanks for your reply.

    We have custom codes in our functions.php and the same code calls function woocommerce_output_all_notices();. We do not have error on that function but this core woocommerce function uses another function which throws the error.

    Can you please check the same?

    Saif

    (@babylon1999)

    Hi there,

    We have custom codes in our functions.php and the same code calls function woocommerce_output_all_notices();. We do not have error on that function but this core woocommerce function uses another function which throws the error.

    It’s really hard for us to tell here in the forums if that’s the case, but I did some research and seems like this problem is often associated with a plugin conflict.

    Did you follow the conflict test guide shared by xue28?

    If that didn’t show any results, then please attach a copy of your system status report.

    You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.  Once you’ve done that, paste it here in your response.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined function wc_print_notices’ is closed to new replies.