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 trialGrant Winship
1,912 PointsActivating plugins, publishing pages, posts or portfolio items all take me to a blank screen now - any ideas?
When publishing or updating a page or portfolio item I just get taken to a blank /post.php. I've been searching around the forums and trying some things but nothing so far is working. Was working fine at the beginning of the tutorial, not sure exactly at what point this started, I've tried backtracking but can't nail down the issue. Was also having problems with my wp-admin going to a blank screen, had to rename the themes folder to get back in, then change it back and reactivate the theme. Obviously something is corrupted in some way, any ideas on what would be greatly appreciated.
2 Answers
Jacobus Hindson
14,429 PointsAlthough I don't have a magic wand to find your issue I would start with your functions.php file. Cut and paste everything out of the file and start with a blank canvas. Start adding your functions back 1 by 1. I am 95% sure you will find a missing ; or , or a malformed name in a function.
Grant Winship
1,912 PointsThanks Jacobus - ended up being very strange - I cleared out the functions.php and everything started functioning properly, so I assumed you were correct. Added my functions back in one piece at a time, testing page creation and custom post type creation after each piece, but weirdly it went totally smoothly through the ENTIRE document....I ended up pasting in literally the exact functions.php file that was there before, it now works fine though. I've logged out, refreshed, changed the theme and changed it back, everything works fine now - all I did sum total was empty out functions. php and paste everything back in though......maybe saving functions.php as empty cleared out some kind of cache that had an error in it? I'm super new to WP so I have no idea - very relieved to have it working now though, thanks for your help!
Grant Winship
1,912 PointsGrant Winship
1,912 PointsIt's definitely tied to the theme. I can switch to 2014 or 2015 theme and everything runs smoothly again, switch back to my custom theme and the issues are back. Also, if this helps narrow down the potential problem, in addition to the other issues the Media Library will not load on my custom theme, loads fine on other themes though.