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

Peter Cusack
Peter Cusack
2,622 Points

Wordpress won't load using MAMP

I am going through the "Wordpress Theme Development" course and am using MAMP to develop the theme locally. Everything worked at first but now since I've started messing around with the themes folder Wordpress wont load when I open it. When I click on the folder that contains the Wordpress files in MAMP it just goes to a blank white page. MAMP is working properly because it displays content I have stored in other files it's only the Wordpress one that doesn't work. Any idea's as to what the problem might be?

2 Answers

Andrew Shook
Andrew Shook
31,709 Points

Peter, sound to me like you created a syntax error while messing around inside the theme folder. The first thing I would do to track it down would be to go into the wp-config.php file in the root directory of your wordpress install and add this:

@ini_set( 'log_errors', 'Off' );
@ini_set( 'display_errors', 'On' );
@ini_set( 'error_reporting', E_ALL );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', true );

That should show pretty much all errors.

Peter Cusack
Peter Cusack
2,622 Points

Thanks, it worked I just had forgotten an ending semi-colon