Solved

Why get a constant 502 Bad Gateway error on Wordpress, even after disabling plugins & theme?

Posted on 2016-09-18
3
69 Views
Last Modified: 2016-09-22
Yesterday I was setting up a Wordpress site, when I entered the Wordpress dashboard, it was appearing constantly 502 Bad Gateway errors. Especially when editing/creating pages. I already disabled plugins & theme, but it doesn't work.
0
Comment
Question by:Stevensen Lewis
3 Comments
 
LVL 28

Expert Comment

by:chilternPC
ID: 41803614
the 502 error is due to the server stopping the request because of a timeout
so ...
you have the latest version of WordPress installed and all files uploaded correctly?

it might be the database connection

it could be your internet connection or browser   - try rebooting the router or using a different location
1
 
LVL 2

Accepted Solution

by:
Dillyn Barber earned 500 total points
ID: 41803885
Make sure the WordPress site doesn't have any local links like http://Users/username/Desktop/file.jpg or file://Users/username/Desktop/file.jpg sometimes it can throw that error on Nginx

Are you using a reverse proxy or php-fpm? If so, you’ll need to take a look at your PHP error logs or your Nginx/Apache error logs and find out the exact error.

Also, check out these:
https://www.scalescale.com/tips/nginx/502-bad-gateway-error-using-nginx/
https://wildlyinaccurate.com/solving-502-bad-gateway-with-nginx-php-fpm/
1
 

Author Closing Comment

by:Stevensen Lewis
ID: 41810385
Thanks for your answer! I checked the PHP error logs, and finally fixed it. :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now