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

0 points
Submitted by Jimmy Pants
over 10 years

INFO: There is a bug in this module that may be frustrating you.

When the page loads, after about a minute or two (I didn’t time it), it pops up a message about the program taking too long to run and to check that you didn’t put an infinite loop in your code. After this pops up, you can’t submit your code.

The solution is to copy all your code, reload the page, select all, and paste in the good code before the bug has has a chance to pop up the window. 1.4, at least, has the same problem and solution.

Answer 52351add80ff33959900655d

12 votes

Permalink

thanks for the info tho…I was getting tired of this as well

points
over 10 years

3 comments

Jimmy Pants over 10 years

I notice they actually mention this explicitly a couple of problems later, but when it happens the first few times you are only told it will happen by implication.

Jimmy Pants over 10 years

… so technically, it’s not a bug - I believe that while typing in the conditions for the while loop, its dynamic interpretation grabs onto some part of your formula that it interprets as it if were the whole formula, and then tries to show the result of that infinite loop in the preview window (same process that makes all your html code display as you go). I’m just speculating, natch - I’m a student. But I’m pretty sure the code of the site itself is bug-free and works exactly as intended. Just not completely, what’s the wrod… robust. :>

Paul Kelley over 10 years

I’m so thankful for these forums!

Answer 5241e781f10c60b9d4005ea4

1 vote

Permalink

This solution did not work for me.

points
Submitted by Shawn Nelson
over 10 years

Answer 523b4120abf82138cc000898

0 votes

Permalink

i noticed, i couldnt figure out the bug

for ($i = 10; $i < 101; $i = $i + 10) { echo $i; }

points
Submitted by oetze van den broek
over 10 years

2 comments

DON over 10 years

you also might want to try this. <?php for ($i = 10; $i <= 100; $i=$i+10) { echo $i;

DON over 10 years

see the difference!!!

Answer 523e4c5280ff33eea9005533

0 votes

Permalink

Thanks so much for posting this. I knew my code was right (even copy pasted the for loop from the previous section to double check). Copied my code, reloaded the page, pasted it back in and hit submit and it all went swimmingly.

Pretty sure Jimmy Pants is right about why it happens. The thing is, in the Javascript track, they managed to avoid this problem pretty easily, so why didn’t they do the same thing here?

points
Submitted by Wolvenna
over 10 years

Answer 527820e6f10c60173e007a4c

0 votes

Permalink

thank you! this was driving me nuts

points
Submitted by Devan Walia
over 10 years

Answer 527a64ca80ff33ee270006f2

0 votes

Permalink

Chiming in another casual “thanks” for your heroism, sir. Man, without these forums, I would have been stuck so many times in inconvenient places. :<

points
Submitted by dmboogie
over 10 years

Answer 54256ccf7c82ca4a9500295f

0 votes

Permalink

It worked for me! Tnx!

points
Submitted by Morzana
over 9 years

Answer 55d0c5b5e39efee2510003aa

0 votes

Permalink

I encountered this same issue, and none of the solutions in this message worked for me. I advanced the lesson to 4/7 using the drop down menu. I was able to paste my code there, and checked the results in the output.

points
Submitted by M_V_093_tim
over 8 years