Title: random 500 errors on api-fetch when using wordpress plugins
Last modified: March 23, 2023

---

# random 500 errors on api-fetch when using wordpress plugins

 *  [vincentfarcy](https://wordpress.org/support/users/vincentfarcy/)
 * (@vincentfarcy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/)
 * Hello,
 * I have a problem with a WP site that I was asked to optimize.
 * On the homepage of different plugins (woocommerce, jetpack, matomo) I have random
   500 errors in the console (on api-fetch sometimes all calls drop 500, sometimes
   3/4).
 * I made a clone of the site at the same host (ovh), deactivate all plugins / themes
   but as soon as I reinstall woocommerce, I see 500 errors (less than in prod, 
   1 or 2 out of 19 calls for woocommerce) , and the more plugins I add the more
   500 errors I get.
 * I looked at the memory side and increased WP_MEMORY_LIMIT to 512M.
   phpinfo memory_limit:
   Local Value = 512M / Master Value = 512M
 * There is no change in the .htacces file. The content is basic.
 * I repositioned the file permissions to 664 and 775 for the directories.
 * Anyone have an idea to investigate further?
 * [https://drive.google.com/file/d/1kDGBD6OjyyQQUer9vf3ta_bq8dJrkxAQ/view?usp=share_link](https://drive.google.com/file/d/1kDGBD6OjyyQQUer9vf3ta_bq8dJrkxAQ/view?usp=share_link)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frandom-500-errors-on-api-fetch-when-using-wordpress-plugins%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/#post-16588855)
 * > but as soon as I reinstall woocommerce, I see 500 errors
 * I recommend asking at [https://wordpress.org/support/plugin/woocommerce/#new-post](https://wordpress.org/support/plugin/woocommerce/#new-post)
   so its developers and support community can help you with this.
 *  Thread Starter [vincentfarcy](https://wordpress.org/support/users/vincentfarcy/)
 * (@vincentfarcy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/#post-16588968)
 * Thank you for your reply.
   However, I have the same problem with other plugins(
   jetpack for example), even when woocommerce is disabled
 * [https://drive.google.com/file/d/1OAaovydwDum9kEbSk6qoWXQkPOhO3W5t/view?usp=share_link](https://drive.google.com/file/d/1OAaovydwDum9kEbSk6qoWXQkPOhO3W5t/view?usp=share_link)
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/#post-16588989)
 * > I have the same problem with other plugins (jetpack for example), even when
   > woocommerce is disabled
 * Does the problem go away if you disable **ALL** other plugin’s? If the problem
   goes away, enable them one by one to identify the source of your troubles.
 *  Thread Starter [vincentfarcy](https://wordpress.org/support/users/vincentfarcy/)
 * (@vincentfarcy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/#post-16594445)
 * That’s what I did, but it seems that the problem is not with a specific plugin.
   Errors appear with only a few plugins activated and not always the same.

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

The topic ‘random 500 errors on api-fetch when using wordpress plugins’ is closed
to new replies.

## Tags

 * [error 500](https://wordpress.org/support/topic-tag/error-500/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [vincentfarcy](https://wordpress.org/support/users/vincentfarcy/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/random-500-errors-on-api-fetch-when-using-wordpress-plugins/#post-16594445)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
