Hello @juancruz0033,
Thanks for using the Yoast SEO plugin. I experienced the 502 errors on some of the sitemaps. Can you ask that the WordPress memory limit be increased? You can configure this in your wp-config.php.
define(‘WP_MEMORY_LIMIT’, ‘256M’);
In your PHP.ini, you can increase the server memory to:
memory_limit = 512M
Hi @maybellyne I asked the hosting support to help with this and they changed both settings but we’re still facing the same issue.
Thank you for the feedback, @juancruz0033.
The server error logs usually provide more details about the issue. If you have access to your server error log, note the date and time before generating the error again. Then, immediately check your server error log for any errors during that period. If you don’t have access to your server error log, please ask your hosting provider to look for you.
If you or your web host cannot pinpoint the cause, please provide us with a copy of the server error log for further investigation. As server logs can cover a significant amount of time, please limit the error log to a few minutes before and after the behavior was reproduced.
If the server error log does not contain any errors at the time of the issue, please enable advanced WordPress debugging with the code here. This code requires that you change line 84 to point to a path on your server. Your web host can provide you with a secure path to save the error.log file.
Hi @maybellyne I wanted to give my latest update on the issue: it appears that it was resolved. The web host support identified the cache settings as the possible root cause for the 502 errors. Apparently, it was disabled or it was being refreshed too often. They changed these settings and now it’s working correctly.
Thanks for your support!