WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been developing a Wordpress site locally using MAMP, and I have run into an issue twice now where when I leave at night and come back, I can't access the admin page. I have debugging on, and there aren't any fatal errors. I can access the front-end of the site just fine, but I can't log into the admin page. All I get is a white screen like:

enter image description here

Here is the front end:

enter image description here

As you can see the front end is working well, but I can't get into the admin section. I've tried to re-login and it just doesn't work.

What could be causing this? The last time this happened, I had to reinstall the entire site. I really don't want to do this every day. I know that everything was working when I left, and I haven't made any changes today.

It also looks like this happens with some frequency, as there is another user with a similar issue: Cannot access admin panel

I tried all the suggestions on the linked question, but that didn't work.

share|improve this question
How are we supposed to know. Turn off your plugins and revert to the default theme. – Wyck Oct 17 '13 at 1:08
You know, that is a great idea! I would totally do that if I could get into my admin page!!! But I can't, so... And you, or someone with more experience, might know because it's happened to them before... And I've tried that. This also happened with the default theme an no plugins. – Blaine Oct 17 '13 at 1:09
You can just rename your plugins folder and any themes besides the default one, I can assure you the default theme with no plugins works. – Wyck Oct 17 '13 at 1:14
No, it didn't. Like I said, when it happened yesterday, I deleted the entire 'plugins' folder and hadn't installed the theme yet, same stuff. – Blaine Oct 17 '13 at 1:15
Just wondering - might be really obvious - does the issue persist if you restart MAMP? – Pat Gilmour Dec 20 '14 at 2:09

You may want to replace the wp-admin folder with a fresh copy. I would also make sure there‘s nothing in your functions.php file that’s causing an issue.

You may need to backup the DB and do a fresh install. Then install plugins one by one to see which one (if any) tripped the error.

Are you using the same Database for multiple installs?

share|improve this answer

I found a solution after looking for several threads and official forums:

If you created your wp-config.php file using the Wordpress automatic install then it is most likely that your wp-config.php has an unclosed <?php tag, close to line 80 - 81.

After that fix, everything in MAMP and XAMPP was working fine.

I don't know if it is a Wordpress first-install-wizard bug.

Hope it helps.

share|improve this answer

It could be a plugin. Try renaming the plugin folder (inside wp-content) to pluginx and try accessing the admin panel. Renaming the plugin folder will make all your plugins reset and automatically turn off. Then try turning each plugin back on one by one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.