(RESOLVED - Thank You!!) Bizarre WordPress Admin problem - help!!

11 replies
Hi

I have run into a bizarre issue after moving a couple of WordPress sites between HostGator hosts, I'm hoping that one of my fellow Warriors can shed some light.

I moved a number of sites between two hosting plans, the sites retained their domain names and the changes to the nameserver values were made accordingly. The majority of them work perfectly, but two of them have a very odd problem.

The two sites in question display just fine, however trying to login to the admin dashboard is impossible (at http://sitename.com/wp-admin), as the screen is completely blank. Using the wp-login method displays the login box, but when I login as admin I get teh same blank screen instead of the dashboard.

They did not display this behavior on the original host, I reset the nameservers to the old values to confirm this.

I moved them using the following method (which worked for the 16 other sites):

1 - Downloaded all the files
2 - Made a backup of the MySQL database
3 - Created a new account on the target server
4 - Created a new MySQL database on the target server
5 - Imported the data into the new database
6 - Edited wp-config.php to reflect the new database values
7 - Uploaded the files to the new host, with the edited wp-config file included.
8 - Pointed the nameservers at the new account.

I have Googled this issue for hours, found a few posts suggesting removing spaces within the functions.php file but it didn't help. Others suggested a missing host name value in the wp_options table in the database, but that is not the case here. I've repeated the transfer on the affected sites, but that didn't help either.

The only thing I can see about these two sites that differentiate them from the other ones is that for some reason (I didn't build them so I'm not sure why) these two sites have their URL's set to "http://www.domainname.com" as opposed to "http://domainname.com", and as a result I had to access them using the "www" prefix. On one of them I edited the database dump to change all instances of "http://www.domainname.com" to "http://domainname.com", that succeeded in allowing me to access the sites without the "www" prefix but it did not solve the blank admin screen problem.

Short of installing WordPress from scratch and rebuilding them from the ground up I am a loss as to what to try next.

If anyone could shed any light on this issue I would be most grateful - don't have much of this grey hair left and I'm pulling a lot of it out over this one!



Thanks

Bill
#admin #bizarre #problem #wordpress
  • Profile picture of the author KirkMcD
    Did you check the error log for the site?

    It might be a plugin behaving badly, though.
    {{ DiscussionBoard.errors[2458137].message }}
  • Profile picture of the author mrmagos
    Sounds as if a plugin may be misbehaving.

    You could try the steps outlined here: Login Trouble WordPress Codex
    ...or this guy's suggestion (sounds similar to your problem): Deactivate Wordpress Plugins through PhpMyAdmin | Stephan Miller

    If you need any help, PM me.
    {{ DiscussionBoard.errors[2458241].message }}
  • Profile picture of the author Leslie B
    Most times when this happens, it are plugins. I usually remove them from the plugins folder and add them back in one by one until I find the one that causes the issue

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2458285].message }}
    • Profile picture of the author mywebwork
      Originally Posted by Leslie B View Post

      Most times when this happens, it are plugins. I usually remove them from the plugins folder and add them back in one by one until I find the one that causes the issue

      Leslie
      I agree, the thought of plugins occurred to me (although I find it odd that it works on the original host) - they are usually the first thing I point a finger at.

      Is simply removing the plugins folder sufficient? mrmagos link to the article regarding removing them from the database looks intriguing I will try that.

      Kirk I did look through the transaction logs for the site, there are a lot of entries so perhaps I missed something . I will take another look.

      Thank you all for the responses so far!

      Bill
      {{ DiscussionBoard.errors[2458332].message }}
  • Profile picture of the author Leslie B
    I usually rename the plugins folder to plugins-old or something like that and create a new plugins folder. If my wp-admin page re-appears after that I re-add them one by one. Usually if you do that, you find the one that has the isssue. It happens that some plugins don't like to be moved. That's why I deactivate the plugins before downloading the database and files and transfering it. That way, plugins issues are non existing or you'll get an error message when you activate one that didn't transfer correctly instead of not seeing your dashboard.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2458348].message }}
    • Profile picture of the author mywebwork
      Originally Posted by Leslie B View Post

      It happens that some plugins don't like to be moved. That's why I deactivate the plugins before downloading the database and files and transfering it. That way, plugins issues are non existing or you'll get an error message when you activate one that didn't transfer correctly instead of not seeing your dashboard.

      Leslie
      Brilliant! I will try that, thanks so much Leslie (and everyone else of course)!

      Bill
      {{ DiscussionBoard.errors[2458385].message }}
  • Profile picture of the author Leslie B
    No problems, glad I could help.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2458433].message }}
  • Profile picture of the author mywebwork
    It is fixed now!

    The problem actually wasn't plugins, but an extra space in the wp-config.php file after the closing PHP tag!

    An article I found on the web pointed to the problem:

    The WordPress Admin Panel and The Blank Screen of Death | bavotasan.com

    Thank you again to all those who replied! Now all I need is a broom and dustpan to sweep up the hair I pulled out!

    Bill
    {{ DiscussionBoard.errors[2458645].message }}
    • Profile picture of the author KirkMcD
      Originally Posted by mywebwork View Post

      The problem actually wasn't plugins, but an extra space in the wp-config.php file after the closing PHP tag!l
      Actually the Extra Space problem could screw up any PHP based script.
      Either at the beginning or the end of the file. Somthing to keep in mind.
      {{ DiscussionBoard.errors[2458754].message }}
      • Profile picture of the author mywebwork
        Originally Posted by KirkMcD View Post

        Actually the Extra Space problem could screw up any PHP based script.
        Either at the beginning or the end of the file. Somthing to keep in mind.
        Now that I think of it I did run into an extra space issue with a static PHP design several years ago. I'll be on the lookout for it from now on!

        Bill
        {{ DiscussionBoard.errors[2458765].message }}
  • Profile picture of the author Leslie B
    Thanks for letting us know. In case I ever encounter a wp-admin blank screen and it's not the plugins, I know where to look now.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2458670].message }}

Trending Topics