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 trialJohn Kumar
13,937 PointsThis task has a bug. When I click the editor button there is an error. Normally when I hit It I would get a response.
This task needs to be looked at for an error with the program. When I hit the editor button I get an error. I know what the answer is but even when I put in the answer I get an error when i click on preview. Can someone help?
<?php
$colors = array("Red","Green","Blue");
//add modifications below this line
2 Answers
John Kumar
13,937 PointsWhen I started the objectives there was no closing PHP tag. I entered a closing PHP tag and I still get the error. Should I use the echo command?
Jose Melendez
4,740 PointsYeah, try the echo command. If it still doesn't work, let me know what task that is, so I can do it on my computer and see if I get the same problem.
John Kumar
13,937 PointsI used the echo command to display Hello World and that works but there is something wrong when I click on editor and there is still an error. So I get Hello World and an error. Something about line 68 but there is no line 68?! Lets report this as a bug.
Jose Melendez
4,740 PointsYeah, you're right there is a bug on Task 1 only, of php "modifying arrays" I will report it as a bug as well.
Jose Melendez
4,740 PointsJose Melendez
4,740 PointsDid you maybe forget to close your php tag? <?php //code ?>