Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

beau Vetch
PLUS
beau Vetch
Courses Plus Student 6,919 Points

Can't login to wp-admin after local install of Wordpress

Working on a Wordpress theme and everything was going fine until I closed my browser and re-opened it. (MAMP is running, etc, and cookies are enabled).

My site's index.php file shows up fine, but when I go to localhost/mysite/wp-admin I get nothing.

I set the "debug" option to true in the wp-config file and now I get this error:

Warning: Cannot modify header information - headers already sent by (output started at /Users/Macbook/Sites/My Site/wp-content/themes/demo/functions.php:1) in /Users/Macbook/Sites/My Site/wp-includes/pluggable.php on line 1196

When I go to line 1196 of the pluggable.php file I see this: header("Location: $location", true, $status);

What needs to change here to make this work?

I am using chrome as my browser and the most recent version of wordpress.

Thanks a bunch!

beau Vetch
beau Vetch
Courses Plus Student 6,919 Points

Update: incase anyone else gets this problem, my problem was a space before the opening php tag in functions.php

1 Answer

Having trouble logging into my local wordpress site.