To resolve a 502 Bad Gateway error on your Elementor Host site, increase the PHP max execution time in the Advanced tab of your dashboard. You should also review site logs for fatal errors, clear the object cache in the Performance settings, and deactivate conflicting plugins to restore server communication.
What causes a 502 Bad Gateway error?
A 502 error on an Elementor Host site typically occurs when the Nginx server does not receive a valid response from the PHP application. Common triggers include:
- PHP Timeouts: Scripts running longer than the allowed execution limit during migrations or imports.
- Memory Exhaustion: Themes or plugins exceeding the allocated PHP memory limit.
- Software Conflicts: Incompatible plugins or themes causing PHP to stop responding.
- Server Load: Temporary traffic spikes that overwhelm available resources.
Increase the PHP execution time
If the error occurs during a large upload or backup, you can temporarily extend the processing window within the Elementor Host infrastructure.
- To increase the execution time, see Temporarily increase the maximum execution time of your Elementor Hosted site.
The execution time limit will increase to 300 seconds for 24 hours. - Retry the action that triggered the error.
How do I review the site’s error logs?
When increasing execution time fails, you must identify the specific file or plugin causing the interruption.
- To review your logs, see How do I review my Elementor Host error logs?
- Look for entries such as:
- Fatal error
- Upstream timed out
- PHP memory exhausted
- Identify whether the error references a specific plugin or file.
Clear the object cache
Stored data can sometimes prevent the server from communicating properly with your site application.
- To clear the object cache, see Object caching.
What should I do if the 502 error continues?
If the steps above do not restore your Elementor Host site, follow these final troubleshooting measures:
- Refresh the page after a few minutes to rule out a temporary issue.
- Deactivate recently installed plugins to check for conflicts.
- Ensure all plugins and themes are updated.