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 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.