This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Gilad Foyer
about 11 years

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

4 votes

Permalink

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.

points
Submitted by Bourguiba Chedly
about 11 years

4 comments

Gilad Foyer about 11 years

still doesn’t work it claims the function doesn’t print anything

Bourguiba Chedly about 11 years

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)

Bourguiba Chedly about 11 years

(ctrl+enter = run the script )

Gilad Foyer about 11 years

Wow Thanks! This finally made me pass through….

Answer 515d58d8ed39fe390e0008ad

2 votes

Permalink

I passed this bug like this;

 <?php
    // Write your function below!
    displayName();
    function displayName(){
        echo "test";
    }
    ?>
points
Submitted by HaBiL BOZALİ
about 11 years

Answer 515bf53a61e64a9cd700126e

1 vote

Permalink

Right!

points
Submitted by Deep R. Ode
about 11 years

Answer 515eb9dbf7cac726920028ac

0 votes

Permalink

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

points
Submitted by Gaurang Tandon
about 11 years