• Resolved raha1988ab

    (@raha1988ab)


    Hi

    I got this error when I wan edit my posts!

    Even I downgrade wordpress version from 6.2.2 to 6.0 and woocomerce from 7.8.0 to 7.7.0 but still got that error

    I sent that to my theme support , Woodmart theme and still waiting for theme

    Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3834 Stack trace: #0 /home/cpanel/public_html/wp-includes/class-wp-hook.php(308): woocommerce_output_all_notices(”) #1 /home/cpanel/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #2 /home/cpanel/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/cpanel/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(138): do_action(‘woodmart_before…’) #4 /home/cpanel/public_html/wp-includes/template.php(785): require(‘/home/cpanel/…’) #5 /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home/cpanel/…’, false) #6 /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(598): wc_get_template_part(‘content’, ‘single-product’) #7 /home/cpanel/public_html/wp-includes/shor in /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3834

    What is this and how can I solve that issue?

    • This topic was modified 1 year, 8 months ago by raha1988ab.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hello @raha1988ab

    Based on the error message you provided, it appears that there is a problem with the WooCommerce plugin, specifically with the “wc_print_notices()” function. This function is responsible for displaying notices and messages on your website, and it seems that it’s not being recognized properly.

    To troubleshoot this issue, I recommend you follow these steps:

    1. Ensure that both WordPress and WooCommerce are updated to their latest versions. You mentioned that you downgraded both, but it’s generally best to keep them updated for optimal compatibility and security.
    2. Temporarily deactivate all other plugins except for WooCommerce. This will help you determine if there’s a conflict between WooCommerce and another plugin that’s causing the issue. If the issue is resolved after deactivating other plugins, reactivate them one by one to identify the conflicting plugin.
    3. Switch to a default Storefront theme to see if the issue persists. This will help you determine if the problem is related to your Woodmart theme. If the issue is resolved after switching themes, it’s likely that the problem lies within your theme’s code.
    4. If the issue persists after trying the steps above, it’s possible that there’s a problem with your WooCommerce installation. In this case, you can try reinstalling WooCommerce by following these steps:
      a. Deactivate and delete the WooCommerce plugin from your WordPress dashboard.
      b. Download the latest version of WooCommerce from the WordPress plugin repository or from WooCommerce.com.
      c. Install and activate the plugin on your website.

    Please note that you should create a complete backup of your website before making any changes, such as updating plugins, switching themes, or reinstalling WooCommerce. This will ensure that you can easily restore your site if any issues arise during the troubleshooting process.

    I hope these suggestions help you resolve the issue. If you continue to experience problems, please share your System Status Report, which you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, paste it into your reply here. This will help us investigate further and provide you with a more accurate solution.

    Thanks!

    Thread Starter raha1988ab

    (@raha1988ab)

    Hello @shameemreza

    Thanks for this exellent information

    I changed the theme to storefront and the problem fixe

    I update the woodmart theme , nothing changed .

    I disabeld all plugins exept woocomerce and nothing changed , only when change the theme problem gone , it means there is problem with woodmart

    also I saw these errors in cpanel logs:

    [23-Jun-2023 11:10:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848
    Stack trace:

    0 /home/cpanel/public_html/wp-includes/class-wp-hook.php(308): woocommerce_output_all_notices(”)

    1 /home/cpanel/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)

    2 /home/cpanel/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

    3 /home/cpanel/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(138): do_action(‘woodmart_before…’)

    4 /home/cpanel/public_html/wp-includes/template.php(785): require(‘/home/cpanel/…’)

    5 /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home/cpanel/…’, false)

    6 /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(598): wc_get_template_part(‘content’, ‘single-product’)

    7 /home/cpanel/public_html/wp-includes/shor in /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848

    [23-Jun-2023 11:29:54 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /home/cpanel/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3834

    Thanks a loot

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @raha1988ab

    I’m glad to help you with your issue.

    Since the problem is resolved when you switch to the Storefront theme, it indicates that the issue is indeed related to the Woodmart theme.

    Regarding the errors you’ve found in your cPanel logs, they are related to the “Call to undefined function wc_print_notices()” error. This error occurs when the Woodmart theme tries to call a function that is not properly defined or available in the WooCommerce plugin.

    To resolve this issue, I recommend the following steps:

    1. Ensure that both your Woodmart theme and WooCommerce plugin are updated to their latest versions. Outdated versions may cause compatibility issues and result in errors like the one you’re experiencing.
    2. If updating doesn’t resolve the issue, try contacting the Woodmart theme developers for assistance. They should be able to provide you with a fix or guide you through resolving the issue, as they are more familiar with their theme’s code and functionality.
    3. Alternatively, you can consider using a different theme that is fully compatible with WooCommerce, such as the Storefront theme or another theme from the WooCommerce.com marketplace.

    I hope this helps you in resolving the issue with your Woodmart theme.

    Thanks!

    Thread Starter raha1988ab

    (@raha1988ab)

    Hi @shameemreza

    Thanks a loot for these top informations you gave me , you really solve my problem.

    Infact the reason I purchase from envato is that they give me life time update , but in WooCommerce.com marketplace the just update for a year!

    Btw, thanks a loot agian.

    have a good weekend.

    Hi @raha1988ab ,

    Glad to hear that you have managed to identify the culprit here ??

    Regarding your concern about the update policy, I understand that the lifetime updates offered by Envato is a compelling feature. However, at WooCommerce.com we have a different approach.

    All WooCommerce extensions come with a license key that is valid for one year. The license key gives you access to our WooCommerce support, and any updates to the plugin you purchased.

    Once your subscription expires, you can still use the product on your site for as long as you like but you can no longer access the file for download or receive support or updates for the product.

    You can see the full WooCommerce Support Policy, as well as read over our handy FAQs page for further information.

    Thank you again for your feedback. If you have any other questions or concerns, please don’t hesitate to create a new topic.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined function’ is closed to new replies.