Hello everyone
For about a month now, I often get a 502 Bad Gateway when I’m working in admin, especially with the redirection page after an article has been saved, for example.
Any idea what the problem might be?
Cache
Database connection issue?
Thanks in advance
Hello @OlivierS5
We are missing information to help you resolve this issue 
What is your domain name?
Are you using shared hosting?
On which infrastructure is your offering located?
etc
Astérix
Hello @Asterix
Pouruneviesaine.com
yes, shared but webcloud database
infrastructure = data centre? = eu‑west‑gra
cluster102
Olivier
Hi @OlivierS5
A 502 error means the server received an invalid response from “upstream” (the one that runs the PHP code).
On shared hosting, this is more common due to CPU and memory resource limits, as well as max execution times that tend to be more restrictive.
Here are a couple of tips so we can diagnose the issue:
- Temporarily disable plugins and themes. Deactivate all WordPress plugins one by one, and try saving a post (or performing the task where the site returns the most errors) after each deactivation. If disabling a specific plugin makes the error disappear, you've found the culprit. It may be outdated or consuming too many resources.
- Check the hosting error logs. The logs are your best ally for pinpointing exactly what's failing. Look for entries at the time you received the 502 error. You may see messages like Maximum execution time of 30 seconds exceeded, memory issues, or database connection errors.
Generally, a 502 error is related to script performance.
Let us know how it goes 
Sergio Turpín
Hello @OlivierS5
During the page preparation phase, do you make a call to an external site (call that would take a long time) ?
@sturpin
I checked and I see 301 ... 404 but no 502 ...
let's see if it continues
thanks
Perfect, thanks for confirming. If the 502 hasn’t reappeared and you now see 301/404 (redirects and content not found), it means the server is now responding correctly, although there may be a specific resource that doesn’t load.
Regards.