Link to home
Start Free TrialLog in
Avatar of Tessando
TessandoFlag for United States of America

asked on

Wordpress Dashboard Accessible but Website Doesn't Show-Up

I was using a copy of a Wordpress site as a proof-of-concept for migrating a site at work and I seemed to have botched it up.

I can get to the wp-admin page and successfully sign-in to the Dashboard, but the site itself just spins around and never resolves. I can see all posts and pages, but nothing shows up in a browser.

I've tried swapping out themes, but nothing allows the site to show up.

What is the one thing I should check to make sure that it's configured properly to get my site to show up?
Avatar of David Favor
David Favor
Flag of United States of America image

Post your exact URL + someone may be able to help.

And there's much you can do on your own to debug this, although, unless you do this all day, every day, this may seem daunting.
_______

Enable WP_DEBUG + SAVEQUERIES in your wp-config.php + install the Query Monitor plugin.

Contrary to popular myth, leaving these on has no real effect on a well tuned LAMP Stack.

I host 100s of high speed, WordPress sites + leave both these settings enabled all the time... because... when a problem occurs, debugging requires data + if these aren't enabled, there's no data to assist your debugging.

To use...

1) Check your WP debug log for emitted diagnostics.

For spinning pages, likely this is some custom theme or plugin which is poorly crafted + looping infinitely.

2) Check your Apache access + error log for emitted diagnostics.

Also a simple curl -I -L https://foo.com can tell you if a page is stuck in a slow redirect loop.

This situation occurs when a page serves slow + also ends up in a redirect loop.

Most Distros install Apache with default settings to catch this type of problem.

For custom installs, where Apache lives in /usr/local or /opt, Apache may be configured incorrectly, where infinite looping is allowed.

3) Check QM diagnostics on spinning pages.

You may find slow DNS (many read HTTP Requests) or slow SQL statements occur.

4) Also run inotifywait -qrm /path-to-wordpress-docroot + you may see a set of files being accessed in an infinite loop.

If see this a good bit, especially with custom theme code, written by hack developers.

What you'll see in this case is a tight loop, where the same file(s) are hit repeatedly in a loop.

If you run inotifywait output into logtop, these problems standout quickly, as you'll see one or a couple of files total counts skyrocket, while all other file counts are sensible.
Avatar of Tessando

ASKER

Thank you for the suggestion. Unfortunately this site is on shared hosting, so access to a terminal window isn't going to happen. However I can change the wp-config.php file via FTP and then install the Query Monitor plugin.

The URL is: AdoptingInOregon.com and the spinner in the middle of the screen is the Theme Zerif Lite.
When moving sites from one location to the next, I always have to reset the permalinks to get the front-end working again.

Go to Settings -> Permalinks and hit Save.

That does some magic voodoo and resets some things in the database.
Please let us know if that doesn't help.
ASKER CERTIFIED SOLUTION
Avatar of Awais Zaib
Awais Zaib
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Awais - It was that particular file and a few more that were causing this to not load. I then did a few things in the Dashboard and things are back to normal. Thank you for your assistance.