Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Build a WordPress Plugin Building a WordPress Plugin Settings Page CRUD with the WordPress Options Table

Bob Sutherton
Bob Sutherton
20,160 Points

I'm getting the white screen of death!

This is in the context of the treehouse badges plugin video attached to this post. When I remove this short line of code my website reappears again. When I put it back in it is the white screen of the abyss.

if( $options != '' ) {
        $wptreehouse_username = $options['wptreehouse_username']
    }

If you need to see the larger context that this code is in to be able to answer, I can post that. I can't find anything different about this than what Zac has done.

2 Answers

Bob Sutherton
Bob Sutherton
20,160 Points

Thanks dude! I swear I thought I had tried that. The funny thing is that Zac doesn't use it in his code so I was just copying him.

Nejc Vukovic
seal-mask
.a{fill-rule:evenodd;}techdegree
Nejc Vukovic
Full Stack JavaScript Techdegree Student 36,386 Points

You are welcome.

Well in my opinion I close every line with a semicolon (good practice) . I'm used to it from my school times : C++ .

Nejc Vukovic
seal-mask
.a{fill-rule:evenodd;}techdegree
Nejc Vukovic
Full Stack JavaScript Techdegree Student 36,386 Points

Welcome. Just to share: I watched JavaScript Course and in the beginning Jim didn't put an semicolon in his code... And my jaw dropped when the code passed normally :D

It's not a must to put a semicolon on every line, but hell I'm putting 2 just to be sure:D