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

PHP Integrating PHP with Databases Using Relational Tables Fetching in a While Loop

Receive HTTP ERROR 500 right off the bat after launching new workspace.

I am getting this error message after launching the new workspace for this segment and Previewing the workspace.

This page isn’t working port-80-xav7aajsen.treehouse-app.com is currently unable to handle this request. HTTP ERROR 500

I don't see anything wrong when comparing with the code in the video.

HTTP ERROR 500 is a generic server side error, meaning that it's coming from Treehouses's end. I would try it again a little later as it will probably resolve itself. :)

1 Answer

It is probably because of a little glitch in the video - when Alana copies and pastes the block of code (try catch statement) - she also removes the return $item, which is not very obvious, so please pay attention to this.