Hi!
I have a problem with Yii2 + Google API v2.0.2 on the Linux server
I have installed the library via Composer in my local machine and on the server.
I’m using prefix ‘\’ to load the class
$client = new \Google_Client();
$client->setApplicationName("ApplicationName");
$analytics = new \Google_Service_Analytics($client);
It worked on my machine, but when I deploy it, it gave me error
exception ‘yii\base\ErrorException’ with message ‘Class ‘Google_Utils_UriTemplate’ not found’ in
/var/www/vhosts/domain.com/httpdocs/vendor/google/apiclient/src/Google/Service/Resource.php:286
Looks like the autoload is not working, but I’m not 100% sure that is the problem or how to debug it
Hope someone in the forum can help me
Thank you!