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 trialDavid Potts
3,864 Pointsendwhile() error
This is frustrating. The endwhile should not be called as a function, but he does in the video and doesn't correct it. Adding
<?php endwhile(); endif; ?>
instead of
<?php endwhile; endif; ?>
results in a 500 error on your site.
Just leaving this here in case anyone else has difficulty.
Peter Gregory
6,614 PointsThank you! Saved me time!
9 Answers
William Harpley
20,792 PointsWow! Big help... horrible video editing. Thanks David
Marc Mendiola
5,873 PointsThis thread helped me a lot. The error is still in the video. Also not sure @calumhartley how it works in the video.
Calum Hartley
6,959 PointsDoes anyone know why it seemed to work in this video? When you are referring to the video editing do you just mean that they have edited out him going back and correcting this?
During this course there have been a couple of other syntax errors similar to this that have left me confused as to where to use semi-colons, brackets, etc.
roberthopman
16,502 PointsThanks David, saved me time!
Andrew Goninon
14,925 PointsThanks for this thread! Should really be corrected in the video.
Marc Mendiola
5,873 PointsI should note here that I just discovered that Team Treehouse stopped developing these WP courses about 6 months ago. I'm guessing any mistakes in the videos won't be corrected.
George Boyd
1,402 PointsThanks! This saved me much frustration and time, geeze....
saxon12345
2,225 PointsThanks, my code still doesn't work but now I have one more thing I can cross off my list ^_^
bypatriciagoh
8,877 PointsThanks for this, really. I have spent a whole day on this, googling, searching, editing my htaccess, messing with the terminal, re-doing each step exactly according to the videos, uninstall and reinstall mamp and wordpress, used a different computer - EVERYTHING. all because of something so small and easily fixed. ugh.
beatleboy
539 Pointsbeatleboy
539 PointsI agree, this is very sloppy video editing. And I don't believe the nonsense about baking in errors for the student's benefit either - this problem was flagged months ago and still hasn't been fixed.