Home › Forums › WoodMart support forum › Yoast SEO problem / › Reply To: Yoast SEO problem /
Makyvape
Rafael replied
Mar 21, 0:15
Hi Mario,
Thanks for your patience while we looked into this issue. We’ve been troubleshooting this and we want to update you with our findings.
First, we want to explain what the issue is: the Yoast SEO plugin uses the WordPress REST API to get information about the content on your site during the SEO data optimization process. The Yoast SEO plugin is running into an error when it tries to analyze some of the content in your site using the /wp-json/yoast/v1/link-indexing/posts API endpoint.
The exact error is a 500 server error : Uncaught Error: Call to undefined function wc_print_notices(). Please find the attached debug.log file for further details.
The error occurs in several files, depending on the tests we are running, but so far we’ve seen it occur in the following:
in /var/www/html/site/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3831
in /var/www/html/site/public_html/wp-content/plugins/woocommerce/templates/checkout/form-coupon.php:26
The PHP stack trace (which shows the sequence of events that lead to the problem), shows that the errors seem to be related to the WoodMart theme and WooCommerce. To verify, we tested the following themes:
TwentyTwenty
Hello Elementor
Astra
With all plugins running on the site (including WooCommerce) and the above themes active, we were always able to complete the SEO data optimization process. This points to the problem being related to the theme and the calls it makes to the wc_print_notices() function.
We then proceeded to comment out all calls we could find in the Woodmart theme to this funcion. However, the issue persists. Unfortunately, we are not familiar enough with the theme to find out what is causing this.
So far, after this troubleshooting process, we can say that there is some issue between the Woodmart theme and the WooCommerce function wc_print_notices() that is causing the problem.
At this point, we can say that we have exhausted all available options to resolve this issue. Our recommendation is that you reach out to the Woodmart theme support team and provide them with the above information, as they are more familiar with theme and more likely to find what’s causing this problem.
Please let us know if you have any further questions, we’re here to help.
How would you rate my reply?
Satisfaction Rating Icons
Thanks and regards,
Rafael
—
Rafael Marcano
Technical support engineer at Yoast