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

Objects in PHP Forum

View Course » View Exercise

1207 points
51f323bff00181494d02d4781a96939e?s=140&d=retro
Submitted by
pyPro70339
over 4 years ago

Why won't this lesson complete?

I'm a completionist, so it irks me to no end that I can't seem to get past this lesson.
<?php
echo "Now I know the basics of OOP!";
?>

is all that must be done, and yet it will not complete the lesson. Just curious if/when this'll be fixed/if it's a larger problem than just mine.


1 vote

permalink

working code :) The side bar gives the answer.

<!DOCTYPE html>


Review Time!


<?php
echo "Now I know the basics of OOP!";
?>

3852 points
515b6e666d36478633000116_689828990
Submitted by
Geraldine King Savianeso
over 4 years ago

3 Comments

530849a37c82cac191001193_728735541 ByJacob Button over 3 years ago

Yes, this is working. Thank you. :)

First -> All delete code
Finally -> This code paste

Aa17007f542eb4a802de16e27b56169d?s=140&d=retro r0dr1g0852 about 3 years ago

WOW thats so stupid, but thanks it worked (y)

Picture Olabinjo Adeniran over 2 years ago

This works!


1 vote

permalink

it worked for me. It even worked without the semicolon for me

1697 points
Picture
Submitted by
Nick Zink
over 4 years ago


0 votes

permalink

Hello,
please confirm, whether this error still occurs.
I've tried to fix this bug, so line breaks won't matter anymore. :-)

3108 points
5154c6cf115b457ac9000021_667301409
Submitted by
boring12345
over 4 years ago

3 Comments

5131f00742ed5e3b4300672b_164502368 Tibor Lőkös over 4 years ago

This issue got fixed I've just tested it and it works now thank you so much :)

5154c6cf115b457ac9000021_667301409 boring12345 over 4 years ago

You're welcome! :-)

Picture Olabinjo Adeniran over 2 years ago

Hi, the error still occurs


0 votes

permalink

I was able to complete this course without the semicolon. That is not correct

405 points
51c606889c4e9d41050116ba_896668622
Submitted by
Al
about 3 years ago


-2 votes

permalink

My code isn't submittable since the fifth lesson. It's throwing lots of errors but this

PHP Fatal error: Cannot redeclare
class CLASSNAME in
/root/adapter/runners/runner.php(47) :
eval()'d code on line 11

is what I get pretty much all the time.

401 points
A0e6b77c6d7e585adc3c63b728a7c04a?s=140&d=retro
Submitted by
Jacques d'Ancona
over 4 years ago

3 Comments

5154c6cf115b457ac9000021_667301409 boring12345 over 4 years ago

Press submit many times should solve this problem. If not, please share your code. (Why did you create a class called CLASSNAME?)

A0e6b77c6d7e585adc3c63b728a7c04a?s=140&d=retro Jacques d'Ancona over 4 years ago

Haha, I haven´t, CLASSNAME as in every class used in this course ;)
After tons of clicks on the submit button and a couple of reloads I was able to finish this course. Thanks for making it, boring12345.

5154c6cf115b457ac9000021_667301409 boring12345 over 4 years ago

Just press the submit button twice: One time it works and the other time it complains that the class is already existing. ;-) Great to see you like the course. :-)


-3 votes

permalink

Same problem here and you are right this is very very annoying...
It says:

"Oops, try again.
It looks like your tags contain the text 'Now I know the basics of OOP! \n Now I know the basics of OOP!' instead of 'Now I know the basics of OOP!'. Watch the spelling and the spaces!"

1127 points
5131f00742ed5e3b4300672b_164502368
Submitted by
Tibor Lőkös
over 4 years ago


-4 votes

permalink

Hello,
the problems are the line breaks.
I think I'll have to check these again. :-(
For now, just delete these. ;-)

3108 points
5154c6cf115b457ac9000021_667301409
Submitted by
boring12345
over 4 years ago