Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

Error 500: Yoast and Woocommerce #17246

Closed StijnCompaboxBV closed 3 years ago

StijnCompaboxBV commented 3 years ago

Please give us a description of what happened.

Error 500 is returned when using Yoast with Woocommerce.

I used the "Health Check & Troubleshooting" plugin to disable all plugins and themes.

when I activate Yoast, no problem. when I activate Woocommerce, no problem. when I activate both Yoast and Woocommerce, an error 500 is often returned. Sometimes the error 500 happens every now and then, other times it happens continuously and wordpress becomes unusable.

I'm overseeing multiple websites, all hosted at a single hosting provider. Every website where Yoast and Woocommerce are both activated, these error 500's occur. All these websites are completely different builds.

error log example (error 500):

*[Mon Jul 12 15:13:24.657766 2021] [fcgid:warn] [pid 10615:tid 140559582721792] (104)Connection reset by peer: [client ###:###] mod_fcgid: error reading data from FastCGI server, referer: https://opumus.nl/wp-admin/post.php?post=8&action=edit
[Mon Jul 12 15:13:24.657827 2021] [core:error] [pid 10615:tid 140559582721792] [client ###:###] End of script output before headers: admin-ajax.php, referer: https://opumus.nl/wp-admin/post.php?post=8&action=edit

error 500 messages: image image

Please describe what you expected to happen and why.

No error 500? :)

How can we reproduce this behavior?

  1. Plain wordpress installation (5.7.2)
  2. Activate Yoast and Woocommerce plugins
  3. Try to load or update a page or post. (in fact it appears almost anything that needs to connect to the server will do) Wether or not the error occurs can be very irregular.

Technical info

Used versions

Edit: removed private info (IP addresses)

Djennez commented 3 years ago

@StijnCompaboxBV can you provide more information?

Djennez commented 3 years ago

Tried to reproduce this locally with the provided information, but was unable to get to the same conclusion. We're really going to need more information here to make this a viable bugreport.

StijnCompaboxBV commented 3 years ago

Hi Djennez,

Thanks for the quick reply.

wordpress debug.log: [13-Jul-2021 14:40:39 UTC] PHP Deprecated: Required parameter $args follows optional parameter $depth in /var/www/vhosts/opumus.nl/httpdocs/wp-content/themes/salient/nectar/helpers/nav-menus.php on line 137 [13-Jul-2021 14:40:39 UTC] PHP Deprecated: Required parameter $args follows optional parameter $depth in /var/www/vhosts/opumus.nl/httpdocs/wp-content/themes/salient/nectar/helpers/nav-menus.php on line 399

error log generated by hosting provider (95% of the file is something like below): [Tue Jul 13 16:40:31.196048 2021] [fcgid:warn] [pid 30278:tid 140559482009344] (32)Broken pipe: [client 95.99.29.163:55762] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://opumus.nl/wp-admin/edit.php?post_type=product [Tue Jul 13 16:41:14.858867 2021] [core:error] [pid 30278:tid 140559523972864] [client 95.99.29.163:56398] End of script output before headers: admin-ajax.php, referer: https://opumus.nl/wp-admin/edit.php?post_type=product [Tue Jul 13 16:41:15.939812 2021] [fcgid:warn] [pid 30148:tid 140559641470720] (104)Connection reset by peer: [client 95.99.29.163:56224] mod_fcgid: error reading data from FastCGI server, referer: https://opumus.nl/wp-admin/post.php?post=2044&action=edit [Tue Jul 13 16:41:21.510368 2021] [fcgid:warn] [pid 30278:tid 140559591114496] [client 95.99.29.163:55970] mod_fcgid: read data timeout in 45 seconds, referer: https://opumus.nl/wp-admin/post.php?post=2047&action=edit [Tue Jul 13 16:41:21.510414 2021] [core:error] [pid 30278:tid 140559591114496] [client 95.99.29.163:55970] End of script output before headers: admin-ajax.php, referer: https://opumus.nl/wp-admin/post.php?post=2047&action=edit

error log in browser: Deprecated: Required parameter $args follows optional parameter $depth in /var/www/vhosts/opumus.nl/httpdocs/wp-content/themes/salient/nectar/helpers/nav-menus.php on line 137 Deprecated: Required parameter $args follows optional parameter $depth in /var/www/vhosts/opumus.nl/httpdocs/wp-content/themes/salient/nectar/helpers/nav-menus.php on line 399

I previously used some plugins for debugging, but not anymore. If more information is needed, I think i could use some instructions.

Djennez commented 3 years ago

The deprecated warnings are not part of your problem I suspect. The core:error and the timeout message are likely related, but they don't provide any information. You'll need to get callstacks from the PHP error logs at the moment that you can replicate the 500 errors. The way to get to these differ per host.

StijnCompaboxBV commented 3 years ago

Is this of any use? image

Djennez commented 3 years ago

That looks more like it originates in WooCommerce, so I'd suggest contacting them about this particular error.

StijnCompaboxBV commented 3 years ago

Yes that's what i thought after seeing this. Thank you very much for your help

StijnCompaboxBV commented 3 years ago

If I do find some information that is relevant to you, i will let you know

neway commented 3 years ago

Hi folks, I have come across a 500 error that is only present when I have Yoast enabled and I use quick view on a PLP - very easily repeatable. Recipe is: latest versions of Flatsome theme, WooThumbs for WooCommerce by Iconic plugin & Yoast. Enable all three and a 500 error is thrown when visiting the following URL: /wp-admin/admin-ajax.php Stack trace here: [Mon Jul 26 16:59:33.455105 2021] [php7:error] [pid 7864:tid 2108] [client 127.0.0.1:50183] PHP Fatal error: Uncaught Error: Call to a member function is_on_sale() on null in C:\xampp\apache\htdocs\wordpress-shelley\wp-content\themes\flatsome\woocommerce\single-product\sale-flash.php:25\nStack trace:\n#0 C:\xampp\apache\htdocs\wordpress-shelley\wp-content\plugins\woocommerce\includes\wc-core-functions.php(345): include()\n#1 C:\xampp\apache\htdocs\wordpress-shelley\wp-content\plugins\woocommerce\includes\wc-template-functions.php(1609): wc_get_template('single-product/...')\n#2 C:\xampp\apache\htdocs\wordpress-shelley\wp-includes\class-wp-hook.php(292): woocommerce_show_product_sale_flash('')\n#3 C:\xampp\apache\htdocs\wordpress-shelley\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)\n#4 C:\xampp\apache\htdocs\wordpress-shelley\wp-includes\plugin.php(484): WP_Hook->do_action(Array)\n#5 C:\xampp\apache\htdocs\wordpress-shelley\wp-content\themes\flatsome\woocommerce\content-single-product-lightbox.php(49): do_action('woocommerce_bef...')\n#6 C:\xampp\apache\htdocs\wordpress-shelley\wp-content\plugins\w in C:\xampp\apache\htdocs\wordpress-shelley\wp-content\themes\flatsome\woocommerce\single-product\sale-flash.php on line 25, referer: https://local.shelleylouisedesign.co.uk/product/stainless-steel-wax-warmer-oil-burner/

djmalibiran commented 2 years ago

I'm currently using the latest versions of these plugins and still getting this issue.

danielbenjamins commented 2 years ago

October 2022 and it still seems an issue, WooCommerce v7.0.0 and Yoast SEO v19.8.

With Yoast SEO enabled the products overview (../wp-admin/edit.php?post_type=product) shows an Error 500. With Yoast SEO disabled, everything works without any issues.