This forum is now read-only. Please use our new forums! Go to forums
Sorry Dude, this course is too Buggy, from exercise 1.4 and up you get errors
Sorry Dude, this course is too Buggy, from exercise 1.4 and up you get errors even though code is correct and displays the expected result.
Error for 1.4 is PHP Fatal error: Cannot redeclare displayName() (previously declared in /root/adapter/runners/runner.php(47) : eval()’d code:9) in /root/adapter/runners/runner.php(47) : eval()’d code on line 10
Answer 515c022649b7adf7550014c2
I had the same bug : Cannot REDECLARE displayName()… So I said to myself : “ if the function is ALREADY DECLARED, so why not trying to remove the code that declares the “displayName()” function in the editor, and just type :
“displayName();” Try this out. Normally it will work, but still, the bug has to be fixed by the codecademy guys.
Hope this has been informative for you.
Answer 515d58d8ed39fe390e0008ad
I passed this bug like this;
<?php
// Write your function below!
displayName();
function displayName(){
echo "test";
}
?>
Answer 515bf53a61e64a9cd700126e
Answer 515eb9dbf7cac726920028ac
If you are experiencing a bug- Report a bug here- http://www.codecademy.com/forms/bugreport Or join this group - http://www.codecademy.com/groups/buggy-exercises
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
4 comments
still doesn’t work it claims the function doesn’t print anything
Another alternative would be to hit : ctrl+enter ( or cmd+enter if you’re a mac user) for like 20 times, or as much as you can and you would eventually pass the test. ( I had the same bug in other sections and it worked well)
(ctrl+enter = run the script )
Wow Thanks! This finally made me pass through….