Results 1 to 4 of 4

Thread: Blank WordPress Admin Area

  1. #1
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts

    Blank WordPress Admin Area

    Today one of my blogs had a problem with the admin area not working at all. The admin login page was just a white screen with no obvious fatal error.

    Often, this will be due to some PHP code that is badly formed, but you would know this as soon as you implemented a change.

    In my case, I hadn't changed anything, it just stopped working. The main site was fine, with the posts showing.

    WordPress can obscure error messages from PHP due it redirecting pages, so in the wp-config file you can add the line of code:

    PHP Code:
    define('WP_DEBUG'true); 
    Then this produces verbose messages about all that may be wrong with your plugins. But most of this will be just advice to stop using something that has been deprecated (to be phased out) or about something that is not up to coding standards etc.

    So after doing this, switch this feature off with:
    PHP Code:
    define('WP_DEBUG'false); 
    This didn't reveal my problem.

    It can take a long time to diagnose this kind of problem as you can find via web searches where people say they spent hours trying to fix things.

    The long-way is to insert die statements in the code to find out where it breaks by gradually homing in on the fail point.

    But suspecting plugins, I removed them all via the database.

    To do this, login to cpanel and go to phpmyadmin and find your WP database.

    Then do a search on wp_options and look for the active plugins entry by using the search feature and searching for the option_name field called "active_plugins".

    Then click on the pencil icon to edit this entry.

    Cut and paste the option_value which contains all the active plugins. Clear this box and save (go back to previous page) with the "go" button.

    Now there are no active plugins on your blog.

    Refresh the wp-admin area in your browser. Still a white screen maybe.

    Then repeat the exercise with the database edit by now pasting the plugin data back into the active_plugins option_value text box and saving it.

    So now the active plugins are restored.

    Then refresh the wp-admin area in your browser again and hopefully you get to see the admin login form and all will be well again.

    This worked for me and just took a few minutes without needing to re-install stuff and spend hours online seeking advice.

    So hopefully it works for you too but I can't provide any guarantees. I still don't know exactly what went wrong, and your situation may be entirely different.

    Be careful not to lose the cut and paste plugin data, copy this to a text editor.

  2. Thanked by:

    Aziz (21 October, 2010), Will.Spencer (21 October, 2010)

  3. #2
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    is it possible to identify the problem using the log files generated?

  4. #3
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    is it possible to identify the problem using the log files generated?
    They only seem to contain notices like with the debug option enabled.

    Here's a snippet from the error_log file:

    [21-Oct-2010 11:21:49] PHP Notice: add_option was called with an argument that is <strong>deprecated</strong> since version 2.3 with no alternative available. in /home/funkyble/public_html/wp-includes/functions.php on line 3323
    [21-Oct-2010 11:21:49] PHP Notice: add_option was called with an argument that is <strong>deprecated</strong> since version 2.3 with no alternative available. in /home/funkyble/public_html/wp-includes/functions.php on line 3323
    [21-Oct-2010 11:21:49] PHP Notice: add_option was called with an argument that is <strong>deprecated</strong> since version 2.3 with no alternative available. in /home/funkyble/public_html/wp-includes/functions.php on line 3323
    [21-Oct-2010 11:21:49] PHP Notice: Use of undefined constant PingOptimizer - assumed 'PingOptimizer' in /home/funkyble/public_html/wp-content/plugins/unique_articles/unique_articles.php on line 553
    [21-Oct-2010 11:21:49] PHP Notice: Undefined variable: post_title in /home/funkyble/public_html/wp-content/plugins/unique_articles/unique_articles.php on line 79
    [21-Oct-2010 11:21:49] PHP Notice: Undefined variable: post_type in /home/funkyble/public_html/wp-content/plugins/unique_articles/unique_articles.php on line 79
    [21-Oct-2010 11:21:49] PHP Notice: Use of undefined constant add_action - assumed 'add_action' in /home/funkyble/public_html/wp-content/plugins/unique_articles/unique_articles.php on line 1557
    [21-Oct-2010 11:21:49] PHP Notice: get_settings is <strong>deprecated</strong> since version 2.1! Use get_option() instead. in /home/funkyble/public_html/wp-includes/functions.php on line 3237
    I think the Notices are not the issue, maybe?

  5. #4
    iowadawg's Avatar
    iowadawg is online now Free Cell Champion
    Join Date
    May 2010
    Location
    Not in Texas
    Posts
    2,071
    Blog Entries
    4
    Thanks
    166
    Thanked 360 Times in 309 Posts
    And then there are times when it is just a hosting blip.
    Happens now and again to me.
    Either I get a nice blank page instead of my login page, or I login and go right to a blank page.

    Sometimes clearing out my cache fixes the problem then, other times it is just wait a bit (sometimes up to 24 hours, beyond that I contact my host company).

Similar Threads

  1. Replies: 10
    Last Post: 27 July, 2011, 16:11 PM
  2. Facebook blank page
    By Kaustubh in forum Web Proxies
    Replies: 4
    Last Post: 11 January, 2011, 15:24 PM
  3. Admin side of phpld directory is blank page
    By iowadawg in forum Directories
    Replies: 4
    Last Post: 31 December, 2010, 05:49 AM
  4. facebook login blank on glype
    By neverlast in forum Web Proxies
    Replies: 1
    Last Post: 25 October, 2009, 02:47 AM
  5. WordPress Admin Control Panel - Open Site Link
    By vanderkitty jones in forum Wordpress
    Replies: 3
    Last Post: 17 August, 2009, 22:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •