Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class 'Google_Service' not found

Tags:

blogger

I am working on the Google + API blogger code. I have downloaded this file https://github.com/google/google-api-php-client I have inserted my Google Developer codes in the right places I do believe. I am getting this error Fatal error: Class 'Google_Service' not found in /home3/aundie/public_html/dandewebwonders.com/Blog/google-api-php-client-master/src/Google/Service/Blogger.php on line 33 Any help for a new developer in training would be most helpful. Thank you in advance

like image 684
DeAnna Riddlespur Avatar asked Dec 01 '25 21:12

DeAnna Riddlespur


1 Answers

Try to include autoload.php file as the first require statement. I got the same error and this solved it for me.

require_once 'google-api-php-client/src/Google/autoload.php'; 
like image 94
Lamya Elmorsy Avatar answered Dec 08 '25 17:12

Lamya Elmorsy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!