So I followed the instructions on how to use composer to install google's api client.
When I try to open a file in my web browser that only has this code
<?php
require_once 'vendor/autoload.php';
I get these errors from my hosting provider
[03-Aug-2017 23:46:22 UTC] PHP Warning: require(/home/michmarket/public_html/vendor/composer/../guzzlehttp/psr7/src/functions_include.php): failed to open stream: No such file or directory in /home/michmarket/public_html/vendor/composer/autoload_real.php on line 66 [03-Aug-2017 23:46:22 UTC] PHP Fatal error: require(): Failed opening required '/home/michmarket/public_html/vendor/composer/../guzzlehttp/psr7/src/functions_include.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/michmarket/public_html/vendor/composer/autoload_real.php on line 66
I tried to make sure that all of the files API files up to date by running this in my command prompt.
$ composer require google/apiclient:^2.0
When I do, my command prompt says that all my files are up to date. Any thoughts on why I am still getting errors?
vendor
directory and doing a freshcomposer install
. Pay attention to any warning/error messages shown during that process. – ceejayozvendor/guzzlehttp/psr7/src/functions_include.php
file exist? – ceejayozcomposer install
on the server? – ceejayoz