Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Object-Oriented PHP Basics (Retired) Properties and Methods Mid-Course Challenge

Challenge 1/6: Not sure why my code isn't compiling?

<?php

class Fish {

public $common_name; public $flavor; public $record_weight;

}

?>

fish.php
<?php

class Fish {
public $common_name;
  public $flavor;
  public $record_weight;
}

?>

Same here. I am having this problem since yesterday.

Ahh the shoddy compiler on this site is probably acting up!

I've just contacted their support team. Hopefully, the issue will be fixed soon. :)

2 Answers

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

There was a bug in the system that has now been fixed

Thanks, Alena for fixing the issue! I've just passed this challenge.

Alena Holligan
Alena Holligan
Treehouse Teacher

You're welcome :) sorry you ran into a road block! Don't let that stop you, you're doing great :)

Why thank you. I can now carry on ;)

Andrey Lukashov
Andrey Lukashov
1,624 Points

Just posted same problem today. :(

:(

Alena Holligan
Alena Holligan
Treehouse Teacher

Please try closing your browser or clearing your cache as this is no longer the same issue. If you are still having problems, please describe exactly what you are doing and the results. Does it give you any errors? Can you click the "preview" and see anything?