Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.