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

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

WP Admin area is a blank page

Hi,

I was working converting a bootstrap prototype into a wordpress site and all of a sudden I cannot get into the dashboard.

I am working locally and while I am not entirely certain I believe the issue started when I set

add_filter('show_admin_bar', '__return_false');

when I set that and then commented it out I first got an issue with the admin_bar not reappearing in chrome, yet firefox was fine. I kept working on the theme templates and the next thing I now is that ever time I press update for a post or page I am led to an empty page with the path ending in /post.php at this point I am still able to get back into the dashboard typing out the /wp-admin part

since then my browser history and cache have been emptied

now if I go on to the local url I get to the page itself fully functional, but do not get an admin bar. if I complete the path to /wp-admin I am let to a completely blank page. I can't therefore log into the dashboard. I have taken out the function since.

I am completely baffled by this behaviour. the only files I touched were template files and the only changes I made in the admin area were adding post text and images to the media library.

I can of course just try and use a new clean wordpress install, but I am worried since I don't know what causes the issue that transferring any of the template code will just cause the problem to reappear. not to mention that it would be good if I new what went wrong to avoid the problem next time.

any ideas where the issue could be? ideally I want to avoid having to upload the entire code.

can anyone help?

2 Answers

Brian Goldstein
Brian Goldstein
19,419 Points

The first, last and best resource for WP issues is the codex: http://codex.wordpress.org/Login_Trouble . run through that article and if that doesn't fix it, do a clean install and 2x check your theme files before installing that theme again. I highly suggest that you make a child theme of a theme that works on all WP installs, whether that's twenty-thirteen or a "base theme" like Underscores (http://underscores.me/) or Roots (http://roots.io/)

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

thanks.

I've run a clean install and and it worked just fine. I'm still wondering what went wrong though and ideally I want to know where to look (in the code that is) to troubleshoot. I will run through the buggy version when I find some time, but I thought someone would have had a similar experience or now where those issues usually come from