[Resolved] WP Admin goes blank after saving changes: theme issue?
I’m developing a custom theme and the admin area has started showing a white screen after I save a setting or publish a post/page. The site itself works just fine.
This appears to be theme related…when I switch to the default twentyten it’s all systems go.
What I’ve tried:
– Reinstalling WP from a fresh download, and again this works just fine with twentyten but not my custom theme.
– Deactivating all plugins and even experimenting with temporarily removing the plugins folder entirely just to be sure. No go.
– Temporarily renaming the .htacces file to make sure there were no conflicts there (based on a response I read to a similar post). No go.
I have no idea what I might have done in coding my theme that has affected the admin area, but hoping for some suggestions.
Thanks in advance.
Sounds like it’s something in your theme’s functions.php or whatever script(s) you are using for the theme options/settings.
You’re right! It is something to do with the functions.php file. When I remove that file the admin area works just right.
However, I have no idea what’s causing the issue. I don’t see any coding errors jumping out at me (though there very well may be some), and I’ve tried removing every item within the file one by one to narrow it down. No luck.
I even stripped the file completely bare to see what would happen and the admin area still goes blank on save/update. So it seems that the very existence of my functions.php file is messing up the admin area. Remove functions.php from my theme folder and all is good.
Any ideas? I can post the code contained in my functions.php file if you like, but since it’s still broken when stripped bare I would think something else is going on.
Ok, thanks…here’s what we’ve got:
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/sites/handsofvenus.com/wp-content/themes/handsofvenus/functions.php:40) in /Applications/MAMP/htdocs/sites/handsofvenus.com/wp-includes/pluggable.php on line 897
It is usually because there are spaces, new lines, or other garbage before an opening <?php tag or after a closing ?> tag, typically in wp-config.php. This could be true about some other file too…
Sigh…new lines, spaces, garbage after the closing ?> tag indeed, in my functions.php file.
Sloppy, sloppy. I feel silly. 😉
Thanks Esmi! You rock, as always.
- The topic ‘[Resolved] WP Admin goes blank after saving changes: theme issue?’ is closed to new replies.