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

Michael Strand
Michael Strand
10,897 Points

GitHub API with PHP Fatal Error in Workspaces

Hello Alena Holligan, I've run into a fatal error taking place when working through the GitHub API with PHP course. I'm currently working through the Communicating with a RESTful API part of the course. I'm wondering if you or anyone else has seen this coming from the index.php file on line 2.

Warning: require(/home/treehouse/workspace/vendor/autoload.php): failed to open stream: No such file or directory in /home/treehouse/workspace/index.php on line 2

Fatal error: require(): Failed opening required '/home/treehouse/workspace/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/treehouse/workspace/index.php on line 2

Alena Holligan
Alena Holligan
Treehouse Teacher

Hi Michael Strand can you take a snapshot (upper right hand corner near the preview) of your workspace and attach a link?

Michael Strand
Michael Strand
10,897 Points

Alena Holligan I think what happened was when I ran the command to get the wrapper library, it wasn't able to complete the task. It had timeout or was taking a long time. I ended up running the command again, and I think it is working just fine now.