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

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

WordPress Project - White Screen.

Help me!! I've got the dreaded WordPress white screen of death which despite following all the regular instructions to fix.. will not go away. This time it doesn't seem to be a plugin and I don't think it's a theme issue. I'm pretty sure the code is sound as I haven't progressed much through the project yet.

The home page shows up but it affects every page on the site that isn't the home page. If I click on these, I get the WSOD.

I'm at a complete loss.

https://almackmotorhomes.com/

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey Jonathan,

I don't do much with WP or PHP, but I do remember that anytime I had the WSOD it was pretty much always because of a missing semi-colon in the PHP code somewhere. It'd drive me nuts, because the code looked okay, but that missing semi-colon... Lol.

Hope you get it solved. BTW, the home page look great. :) :dizzy:

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Thanks for the comment about the homepage. That in itself is a real lift. :) This WSOD is a confidence drainer. I wish it was as simple as a semicolon because surely this would pick up on the home page too.

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

I'm not sure of the file tree you have, but the homepage may be excluded from an otherwise shared include file that the other pages are using. When I was learning WP, I had an instance of this where my line of thinking was the same, but then realized that I had a static footer for the home page, but was using an include for the other pages. Do you have any unique includes that the home page doesn't use?
Just shooting off ideas, but you've probably thought of these already. :)

Now when I check the site, I get "Internal Server Error" ... not sure if that's better then the WSOD? :confused:

Good luck! :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

I've just been trying a fresh install of wordpress on both versions... the site I have on server and on localhost. That's when the Internal Error started showing up online. It's definitely better than no error message at all but I feel like after 2 attempts at simply wiping the slate clean I'm out of my depth with all this. I've never had this much trouble before.

I've had this before when migrating sites from local to server. It was fixed by simply setting permalinks explicitly to post-name. No such luck this time :)

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Sorry I couldn't be much more help. Hopefully the problem pops out for you soon.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Yea thanks for trying. :)

I think we're going to put a static version of the site up for now until I can work out what the devil is happening. We're not giving up by any means but have to make headway somewhere. This is going to feel so good when I finally crack it haha

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Solved!

I don't quite know how, (and you won't find the evidence on the link because I'll eventually be updating that) but it seems I've finally fixed the white screen.

I did another fresh installation of WordPress on localhost (keeping the same login and database details and just gradually reintroduced all the theme components. I initially found that I was getting an "Object not found" error when clicking the navigation links. One thing I did notice was that the fresh installation didn't include a .htaccess file. I couldn't remember if they were supposed to be there or not so I simply copied from another working project, customised it for this one and I'm currently building the project again on localhost.

I'll be damned if ever work out what the issue was but that's okay. Got a way forward now. ;)