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 trialecceuwebyp
10,837 PointsHTTP ERROR 500 for that page only, not the whole site, any ideas?
When I tried loading my custom page template I get a HTTP ERROR 500 for that page only, I have tried to look up fixes online and they are all based on getting the error on the entire site, theme exc. I only get the error when I try to load my custom page/template, any help?
1 Answer
Patrik Horváth
11,110 Pointsit is PHP file and in your Webserver or local host something is wrong with HTACCES or your APACHE
error 500 for PHP means your PHP have fatal errors and Error Displey is Switched OFF
try in your PHP file
ini_set('display_errors', 1);
HTACCESS file :
php_flag display_errors 1
Konrad Traczyk
22,287 PointsKonrad Traczyk
22,287 PointsIn wordpress you can also open wp-config.php file and set WP_DEBUG to 1 which is equivalent of this.