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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![simhub](https://uploads.teamtreehouse.com/production/profile-photos/2991642/micro_SimHub-grad.png)
simhub
26,543 PointsThere is a typo on ListingPremium.php line:35 - In side the (Project File zip / extending_oop_s1v8.zip)
Hi Alena Holligan ,
I get this error:
Uncaught Error: Undefined class constant 'allowed_tags' in .../classes/ListingPremium.php:35
i guess this:
public function setDescription($value)
{
$this->description = trim(strip_tags($value, self::allowed_tags));
}
was meant to be:
public function setDescription($value)
{
$this->description = trim(strip_tags($value, self::$allowed_tags)); // just missing $ on allowed_tags
}
1 Answer
![Alena Holligan](https://uploads.teamtreehouse.com/production/profile-photos/1539972/micro_alena-holligan.jpg)
Alena Holligan
Treehouse TeacherThanks! You're right! Updated now :)
simhub
26,543 Pointssimhub
26,543 Pointsyou're welcome, great course :)