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.

Michael Cook
Full Stack JavaScript Techdegree Graduate 28,962 PointsWhy do I get a 500 HTTP error when I try to preview this workspace?
For some reason I keep on getting a 500 error when trying to preview the project in the browser. I have no idea why. I believe there is nothing broken in the code.
Any help would be great, thanks.
1 Answer

KRIS NIKOLAISEN
54,739 PointsIn your functions.php file you are missing an end quote on line 17:
. ' JOIN projects ON tasks.project_id = projects.project_id';
and end quote after "Error!: on line 35
echo "Error!:" . $e->getMessage() . "<br>";
When correct you can see the difference in the syntax coloring.
Michael Cook
Full Stack JavaScript Techdegree Graduate 28,962 PointsMichael Cook
Full Stack JavaScript Techdegree Graduate 28,962 PointsThanks, I fixed these but I still get a 500 error. Also I think if those typos were the reason for the error I would just see an error message in the page rather than an HTTP error.