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)
![Kohane Kagami](https://uploads.teamtreehouse.com/production/profile-photos/5086662/micro_44188876_112324966419803_5721355969707900928_n.jpg)
Kohane Kagami
12,390 PointsAfter installing Twig, I got this error.
I got this error.
Warning: Missing argument 1 for Slim\Views\Twig::__construct(), called in C:\xampp\htdocs\index.php on line 7 and defined in C:\xampp\vendor\slim\twig-view\src\Twig.php on line 56
Notice: Undefined variable: path in C:\xampp\vendor\slim\twig-view\src\Twig.php on line 58
Notice: Undefined variable: path in C:\xampp\vendor\slim\twig-view\src\Twig.php on line 60
Catchable fatal error: Argument 1 passed to Slim\Views\Twig::addPaths() must be of the type array, null given, called in C:\xampp\vendor\slim\twig-view\src\Twig.php on line 60 and defined in C:\xampp\vendor\slim\twig-view\src\Twig.php on line 116
Please help me. I am using the same version of Slim and twig as the teacher.
3 Answers
![Courtney Waller](https://secure.gravatar.com/avatar/7ccaf46e4adeeb0223e753aaa45ada83?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Courtney Waller
1,332 PointsI got this exact same error today. I don't have a fix but if anyone knows what to do I'd appreciate it!
![Alex Flores](https://secure.gravatar.com/avatar/ce8282cdf0068d85bdb1e4ed71e42ad6?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Alex Flores
7,864 PointsSame... and there's like no documentation on it.
![Patryk Łaba](https://secure.gravatar.com/avatar/af544b5d8c665c744f92d6607223f38b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Patryk Łaba
6,750 PointsI have the same issue. Have anyone solved it?
![Alex Flores](https://secure.gravatar.com/avatar/ce8282cdf0068d85bdb1e4ed71e42ad6?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Alex Flores
7,864 PointsThey're using an old version of Slim. Check to see what version of Slim you're using, it's likely 3+, which has a different installation.