Title: wp-admin no access
Last modified: August 21, 2016

---

# wp-admin no access

 *  [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/)
 * Good morning all,
 * I just uploaded a site that I’ve been working on for a friend using ServerPress(
   developed locally). The site works fine, but I have no access to the wp-admin
   login.
    View page source returns the following:
 *     ```
       <php
       add_theme_support( 'post-thumbnails' );
       ?>
       ```
   
 * I have no idea where this is coming from, and it’s a problem I’ve not encountered
   before.
    Help! The site, by the way, is [http://www.lesliemcbay.ca](http://www.lesliemcbay.ca)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164817)
 * Try to browse it via the url
    [http://www.lesliemcbay.ca/wp-login.php](http://www.lesliemcbay.ca/wp-login.php)
 * After that deactivate the plugins one by one to fix the issue.
 *  [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164820)
 * [@capflint](https://wordpress.org/support/users/capflint/), that code obviously
   isn’t in the correct place. It should typically be in functions.php. This should
   not ever be on any page template.
 *  Thread Starter [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164825)
 * [@thegreyparrots](https://wordpress.org/support/users/thegreyparrots/), that 
   got me a login prompt, which seemed to be accepted, but then I was redirected
   to the same blank page.
 * What I can’t figure out is why this is happening after deployment, but not on
   the localhost development version (both are identical, I haven’t edited either
   one since deployment).
 * I even tried uploading multiple times, with the same problem. Which is why I’m
   now asking the wise forum-goers.
 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164829)
 * You may enable debug mode to see the error.
 * [http://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG](http://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG)
 *  Thread Starter [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164937)
 * Ok, so after enabling DEBUG and DEBUG_DISPLAY, I see that there were PHP warnings
   regarding my child theme’s functions.php file. The contents of this file were
   what I was seeing when viewing the page source.
 * I deleted the file to see if that resolved the problem, but no such luck. Still
   a white page, with no viewable source at all. No errors displayed, no error log
   generated, and no page.
 *  [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164941)
 * What exactly did the PHP warnings/errors say?
 *  Thread Starter [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164982)
 * At the moment, the only warnings I’m getting are plugin based:
    Strict Standards:`
   Accessing static property advanced_code_editor::$tablename as non static in /
   home/lesliemc/public_html/wp-content/plugins/advanced-code-editor/advanced-code-
   editor.php on line 66`
 * When I rename that plugin’s directory, to prevent WordPress from using it, I 
   get no errors or warnings whatsoever, but the page displayed is blank, and the
   source contains only the contents of my child theme’s functions.php file.
 * I have also tried deleting that functions.php file (it was quite small and easily
   reconstructed once I can get the dashboard working). The result is still a blank
   page, no errors, but now showing no page source at all.
 *  Thread Starter [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164983)
 * By going to ../wp-login.php, I am able to login. It’s the dashboard that’s not
   showing up. Logging in seems OK.
 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5164990)
 * Kindly delete the plugin advanced-code-editor from your plugins directory.
 * Kindly keep a backup before delete.
 *  Thread Starter [CapFlint](https://wordpress.org/support/users/capflint/)
 * (@capflint)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5165003)
 * Fixed!
 * Turned out it was some whitespace causing problems, both in config.php and in
   my parent theme’s functions.php.
 * Still no idea why it affected me on a live server but not on my localhost version.
 * Whatever, so long as it works!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘wp-admin no access’ is closed to new replies.

## Tags

 * [serverpress](https://wordpress.org/support/topic-tag/serverpress/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [CapFlint](https://wordpress.org/support/users/capflint/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-no-access/#post-5165003)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
