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 trialMister Moody
48,333 PointsFatal Error when Running SLIM
When attempting the task of running Slim (2:30 mark), after I refresh my local host I do not receive the '404 error' that instructor Hampton does. Instead, I receive a 'Fatar error: Class 'Slim\Slim' not found in C:\xampp\htdocs\building_website_w_PHP\index.php on Line 9.
I believe it is an issue with my file management; wondering if anyone knows why I would receive such an error??
Thank you~
John McKinney
15,331 PointsAre your composer, composer.json, composer.lock, and vendor folder in the folder where your project lives? That was my problem when I got that error.
Erika Nielsen
17,556 PointsErika Nielsen
17,556 PointsI am getting that same thing. I now have another error, but I was able to resolve the Slim auto loading error by backing out to directory and reentering
composer require slim/slim:~2.0
.