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 PHP for WordPress Introduction to PHP for WordPress The Importance of the Semicolon

Vincent Wagner
Vincent Wagner
6,636 Points

Any idea why the error message does not display?

Hey everyone,

I'm running WP locally using MAMP on a Mac.

When I save the double echo message without the necessary semicolons it breaks the site, but I don't get an error message. Instead, it only displays a blank page. I've tried in Chrome, Firefox and Safari.

Does anyone have an idea why this happens?

Thanks in advance!

2 Answers

Kristoffer Lund
Kristoffer Lund
11,133 Points

You need to enable debugging.

In your wp_config.php change define('WP_DEBUG', false); to define('WP_DEBUG', true); line 71.

Exactly! So, is good idea enable the DEBUG in development mode (working in some website or blog) in WP and disabled after finishing.