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 trialVincent Leleux
Front End Web Development Techdegree Student 8,819 PointsThe localhost page isnβt working localhost is currently unable to handle this request. HTTP ERROR 500
I have checked the code everywhere, checked MAMP settings and it is still not working.
another install of wordpress or with another theme it works fine, but with the code I have for now, it just doesnt work. Can someone help me?
4 Answers
Kieran Black
9,139 PointsHi Vincent,
An error 500 would imply there is something wrong on the server side, have you looked in the server logs within MAMP?
If you open up terminal and type:
tail -n 20 /Applications/MAMP/logs/php_error.log
This may give you some clue as to what is going on.
Hope this helps, happy coding
KB
Vincent Leleux
Front End Web Development Techdegree Student 8,819 PointsThank you Kieran, it says [21-Jun-2016 10:27:48 UTC] PHP Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /Applications/MAMP_2016-06-20_14-35-00/Localhost/leleuxportfolio/wp-content/themes/leleux2-portfolio/functions.php on line 3
Jonathan Grieve
Treehouse Moderator 91,253 PointsCould be just a syntax error, if other themes are working in your wordpress installation.
Could you post your code for us so we can help debug? :-)
Vincent Leleux
Front End Web Development Techdegree Student 8,819 Pointsit is working now, it was just a syntax in the opening php code <? php instead of <?php
I learned something, thank you for your support.
Kieran Black
9,139 PointsGlad its sorted for you Vincent
Francis Corona
Front End Web Development Techdegree Student 211 PointsFrancis Corona
Front End Web Development Techdegree Student 211 PointsHello Kieran,
How would you run this in the cmd prompt in windows?