• 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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Try to browse it via the url
    http://www.lesliemcbay.ca/wp-login.php

    After that deactivate the plugins one by one to fix the issue.

    @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

    (@capflint)

    @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.

    You may enable debug mode to see the error.

    http://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG

    Thread Starter CapFlint

    (@capflint)

    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.

    What exactly did the PHP warnings/errors say?

    Thread Starter CapFlint

    (@capflint)

    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

    (@capflint)

    By going to ../wp-login.php, I am able to login. It’s the dashboard that’s not showing up. Logging in seems OK.

    Kindly delete the plugin advanced-code-editor from your plugins directory.

    Kindly keep a backup before delete.

    Thread Starter CapFlint

    (@capflint)

    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.