A 502 error = one server didn’t get a valid response from another server
Even on localhost, you often have a chain like:
👉 Browser → Web Server (Apache/Nginx) → PHP / App → Database
If something in the middle dies → 💥 502
🔍 Most Common Reasons (Local Setup)
1. 🚫 PHP crashed / not running
- Very common in WordPress setups
- Happens if:
- Fatal error in theme/plugin
- Memory limit exceeded
👉 Fix:
- Restart your server (XAMPP / Local / Docker)
- Check logs:
php_error.log






Reviews
There are no reviews yet.