dnsServercodePHPhourglass_bottomTimeouterrorerrorsettingsserver_configurationlabelCommonwarningModerate

502 Bad Gateway

A 502 Bad Gateway error occurs when one server on the internet acts as a gateway or proxy and receives an invalid response from an upstream server. In WordPress environments, this often happens when NGINX or Apache attempts to communicate with the PHP-FPM process and fails to receive a valid response within the required timeframe.

This communication breakdown disrupts the delivery of your website content to the browser. The error signifies a server-side failure where the backend processing layer stops responding or returns data in a format the gateway server cannot interpret.

Symptoms

[dashicons-warning]
Standard Error Message
The browser displays 502 Bad Gateway or 502 Service Temporarily Overloaded in plain text.
[dashicons-cloud]
Cloudflare Branding
A branded Error 502 screen appears indicating the CDN cannot reach your origin server.
[dashicons-visibility]
Blank White Screen
The server returns no content or text due to a total failure in the communication chain.

Common Causes

PHP-FPM Crashes
The PHP process manager stops responding or hits a timeout limit during intensive script execution.
Server Overload
High traffic spikes exhaust available PHP workers and force the server to reject new requests.
Faulty Code
Poorly coded plugins or themes create infinite loops that break the link between server layers.
Database Failures
Exhausted connection limits or crashed database tables prevent the application from returning data.
Need this fixed right now?

Don't waste your day debugging. Our experts can Fix your issues in under 2 hours.*

Success Rate

100% Guaranteed

Starting from

$35 /hour
99+

Trusted by Business Owners

“I spent 3 days trying to fix the Elementor loading loop. These guys fixed it in 20 minutes. Lifesavers!”

— Sarah J., Web Designer

Related Issues

contact_mail
Contact Form 7: REST API request failed: 503 Service Unavailable
A 503 Service Unavailable response stops Contact Form 7 from sending data...
apiREST APIerror503descriptioncontact-form-7
contact_mail
Contact Form 7: REST API request failed: 429 Too Many Requests

The form tries to send data through the WordPress REST API. The...

apiREST APIerrorerrorsecurityfirewalldescriptioncontact-form-7settingsserver_configuration
contact_mail
Contact Form 7: REST API request failed: 401 Unauthorized

The form tries to send data via the WordPress REST API. The...

apiREST APIadmin_panel_settingspermissionsdescriptioncontact-form-7lock401
contact_mail
Contact Form 7: File upload error: temporary directory missing

The error appears when Contact Form 7 cannot locate a writable temporary...

codePHPcloud_offupload erroradmin_panel_settingspermissionsdescriptiontemporary filedescriptioncontact-form-7
contact_mail
Contact Form 7: Mail (2) sending failed: PHP mail() function disabled

Contact Form 7 reports a failure for Mail (2) when the PHP...

codePHPerrorerrordescriptioncontact-form-7mailMailsettingsserver_configuration
contact_mail
Contact Form 7: Mail (2) sending failed: SSL certificate verification failed

Contact Form 7 reports a failure when trying to send the secondary...

errorerrorlocksslcodecURLdescriptioncontact-form-7