A 502 means the web server got an invalid response from the PHP backend, usually during heavy load or a script timeout. It is often temporary.
- Wait a minute and refresh — transient 502s often clear on their own.
- Clear your browser and any CDN cache (Cloudflare's Purge Everything) to rule out a cached error page.
- If you run a heavy script or cron, it may be exhausting resources; optimize or stagger it.
- Check cPanel Errors and Resource Usage for limit-reached entries.
- Disable a recently added plugin or module that may be hanging.
If 502s persist across the whole site, it may be a server-level worker issue — open a ticket with the time and URL.