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

Ryan Mouhajer
Ryan Mouhajer
6,542 Points

Redirected to blank page after submitting post.php

Hey guys,

I'm having an issue with my wordpress blog. I don't know if I missed something from the videos but when I submit a post, comment or when I try to change a theme, it makes the changes but it takes me to a blank page instead of the actual page.

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Ryan Mouhajer,

That's strange. Can you post your code here on the forum? That will help someone give you a specific answer. Zac Gordon, our WordPress teacher, should be able to help you out as well.

3 Answers

Ryan Mouhajer
Ryan Mouhajer
6,542 Points

Thanks for the response Nick Pettit and Zac Gordon.

I finally figured it out. I had 2 line breaks after the ending PHP tag in my functions.php page that were causing the issue. That was the strangest mistake I've made to date.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi Ryan,

At what point of watching the videos are you at now?

Have you tried some of the common tips for troubleshooting when you google WordPress blank screen on save?

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Awesome! Yup, causes header errors. Good catch :)