WordPress.org

Support

Support » How-To and Troubleshooting » Localhost – can’t log in to admin

Localhost – can’t log in to admin

Viewing 9 replies - 1 through 9 (of 9 total)
  • Doodlebug
    Member

    @doodlebug

    Does anyone have any ideas?

    Doodlebug
    Member

    @doodlebug

    BTW i’ve seen similar topics about blank pages. However I can see the login page fine – I enter my admin and password but it goes to a blank page with no source code.

    Cleared cookies/cache – no luck.

    whooami
    Member

    @whooami

    turn on debugging.

    put this in your wp-config.php:

    define('WP_DEBUG',true);

    see what get spits out.

    Doodlebug
    Member

    @doodlebug

    PHP error log for MAMP when trying to login…

    [14-Sep-2008 16:42:40] PHP Notice:  Undefined index:  cat in /Applications/MAMP/htdocs/wordpress/wp-includes/query.php on line 525
    [14-Sep-2008 16:42:40] PHP Notice:  Undefined index:  query in /Applications/MAMP/htdocs/wordpress/wp-includes/canonical.php on line 187
    [14-Sep-2008 16:42:40] PHP Notice:  Undefined index:  query in /Applications/MAMP/htdocs/wordpress/wp-includes/canonical.php on line 187
    [14-Sep-2008 16:42:40] PHP Notice:  Use of undefined constant �name� - assumed '�name�' in /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/header.php on line 23
    [14-Sep-2008 16:42:40] PHP Notice:  get_links_list is <strong>deprecated</strong> since version 0.0! Use wp_list_bookmarks() instead. in /Applications/MAMP/htdocs/wordpress/wp-includes/functions.php on line 2146
    [14-Sep-2008 16:42:40] PHP Notice:  get_links is <strong>deprecated</strong> since version 0.0! Use get_bookmarks() instead. in /Applications/MAMP/htdocs/wordpress/wp-includes/functions.php on line 2146
    [14-Sep-2008 16:42:40] PHP Notice:  Use of undefined constant �name� - assumed '�name�' in /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/footer.php on line 9
    [14-Sep-2008 16:42:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-login.php on line 267
    [14-Sep-2008 16:42:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-login.php on line 279
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-login.php on line 267
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-login.php on line 279
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-includes/pluggable.php on line 595
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-includes/pluggable.php on line 596
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-includes/pluggable.php on line 597
    [14-Sep-2008 16:42:47] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/themes/abletonartists/functions.php:11) in /Applications/MAMP/htdocs/wordpress/wp-includes/pluggable.php on line 770
    Doodlebug
    Member

    @doodlebug

    I tried creating a new database and installing WP again. I was then able to get to the dashboard. When I made any changes however (posts, edit pages etc.) it would work but would just go to a blank page when you click ‘Save’ or ‘Publish’. The original problem has appeared again now though – after shutting down MAMP for a break and then starting it up again.

    Hi,

    I also can’t login. I don’t do any code modification at all and my blog has been working fine. Everything looks fine on the main page, http://www.trabal.org/socio.
    It seems users are able to create accounts, login, and post, which they have done over the last few days. But when I click login from my two macs, I get these on the login page. And also I can’t login, my username/pw suddenly don’t work. Some users are also not able to log in.

    Thanks for your help!

    Warning: Cannot modify header information – headers already sent by (output started at /home/trabalor/public_html/socio/wp-content/themes/reclamation/functions.php:11) in /home/trabalor/public_html/socio/wp-login.php on line 255

    Warning: Cannot modify header information – headers already sent by (output started at /home/trabalor/public_html/socio/wp-content/themes/reclamation/functions.php:11) in /home/trabalor/public_html/socio/wp-login.php on line 267

    If you recently installed a new plugin then delete it – it might have a coding error in the form of a blank line at the top or bottom of the file. If not then maybe the problem is on line 11 of the fuctions.php file in your theme. Or maybe it’s another reason. Check the theme file first. Switch to a different theme and see if the problems goes away.

    kylerhizome
    Member

    @kylerhizome

    I’m having the same problem using WP 2.7.2 (I think) hosting on my machine with MAMP 1.7.2 on OS 10.5.6. I can find the login.php page, enter my information and submit it but that simply takes me to a blank page. Everything on the front-end is working fine. I’m using the Sandbox theme as a base for building a custom theme.

    Any ideas???

    kylerhizome
    Member

    @kylerhizome

    After continued puzzling I went to the MAMP support forum and they suggested looking for white space in my wp-config. Sure enough, there was an extra line after the close of my php tag, and the same was true in my functions.php. Watch out for those white spaces!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Localhost – can’t log in to admin’ is closed to new replies.