This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Control Flow: Switch Forum

View Course

508 points
55ee9f8593767610dc000432_112046954
Submitted by
Sagar Makhija
over 1 year ago

1/6 and continues freezing the loading page.

when tried to write the if-elseif-else program, it freezed. any solutions..?


1 vote

permalink

I'm encountering the same thing. What I theorize is happening, based on behavior I observed in earlier lessons, is that the display window that parses your PHP and outputs the results is dynamically refreshing as you type code. Because of this, based on where my code stalled out, I think it's possible (especially while constructing loops) for your code to be in a state that would cause an infinite loop at the moment the display attempts to parse your code, causing an infinite load. Just a theory.

Did you happen to get a "Something went wrong" error in your browser immediately before this problem began? Did you lose code when the screen came back and got stuck?

748 points
3e00fbae3934889c7765761428b7b976?s=140&d=retro
Submitted by
RJeter81
over 1 year ago

1 Comment

F1afa3af88a7aaca58f40efc1d041572?s=140&d=retro EAndrew over 1 year ago

I used this workaround too. My version gets stuck on an unexpected ";" on line 10, even if there is not one present. Copying and pasting solved the issue and allowed me to move on.


1 vote

permalink

guys, i used chrome and it helped. but the main problem is its already buggy. ahead the same problem is faced repeatedly. no matter it helps learning code easily, its still buggy. deal with it guys. thanks for the comments. Cheers!!

508 points
55ee9f8593767610dc000432_112046954
Submitted by
Sagar Makhija
over 1 year ago


0 votes

permalink

I"m also seeing this problem.

323 points
545a6f559c4e9dd4910048a6_185809565
Submitted by
zachariahwalls_545a6e1c80ff33f2e7004
over 1 year ago

1 Comment

Picture Kristen Marie over 1 year ago

Same here.


0 votes

permalink

I was able to un-freeze the lesson by going to the page on my mobile device and using the "Reset Code" button there. I then typed out the code I felt I needed to complete the lesson in Notepad++ and copy/pasted it successfully in to the lesson. I hope that helps.

748 points
3e00fbae3934889c7765761428b7b976?s=140&d=retro
Submitted by
RJeter81
over 1 year ago