WordPress.org

Forums

Localhost - can't log in to admin (10 posts)

  1. Doodlebug
    Member
    Posted 6 years ago #

    Hi,

    I'm using MAMP (virtual Apache and PHP/MySQL) on my Mac to run a copy of WordPress so I can work on a theme. I set this up yesterday and all was working well, but now I can't login... the login page is completely blank.

    This is the local address i'm using just FYI: http://localhost:8888/wordpress/wp-admin

    The actual blog is working though and I have still been editing my custom theme. I just can't login and do all the backend admin stuff.

    No custom plugins, tried clearing browser (Firefox 3) cookies, reuploading all files in wp-admin folder.

  2. Doodlebug
    Member
    Posted 6 years ago #

    Does anyone have any ideas?

  3. Doodlebug
    Member
    Posted 6 years ago #

    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.

  4. whooami
    Member
    Posted 6 years ago #

    turn on debugging.

    put this in your wp-config.php:

    define('WP_DEBUG',true);

    see what get spits out.

  5. Doodlebug
    Member
    Posted 6 years ago #

    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
  6. Doodlebug
    Member
    Posted 6 years ago #

    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.

  7. violetta
    Member
    Posted 6 years ago #

    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

  8. Mark
    Member
    Posted 6 years ago #

    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.

  9. kylerhizome
    Member
    Posted 6 years ago #

    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???

  10. kylerhizome
    Member
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic