502 Bad Gateway errors
-
Issue Summary
- The website frontend (normal pages) is generally loading as expected
- However, dynamic requests via admin-ajax.php and wp-json are intermittently failing with 502 Bad Gateway errors
- In addition, while browsing both the frontend and the admin panel, we are also experiencing intermittent 502 errors, although less frequently
These issues are causing:
- Admin panel instability
- Failures in dynamic functionality
- Intermittent disruption of the user experience
Plugins Involved
Through systematic troubleshooting, we have isolated the issue to your plugin ecosystem:
- The Events Calendar
- The Events Calendar Pro
- Event Tickets
- Event Tickets Plus
When these plugins are disabled, the system becomes stable and the errors no longer occur.
Troubleshooting Performed- Disabled all plugins and re-enabled them one by one on staging
- Identified the above plugins as the source of instability
- Monitored behavior using Query Monitor and server logs
- Increased PHP memory [512 MB & WP_MAX_MEMORY_LIMIT: 1024MB] (improved behavior but did not resolve the issue)
Observed Behavior- High load and failures on dynamic endpoints (admin-ajax.php, REST API)
- Intermittent 502 errors during normal browsing (frontend and admin)
- Increased memory usage and occasional spikes
- Signs of PHP worker exhaustion under load
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.