googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
288 stars 348 forks source link

Fatal error: Class 'Google_Service_Docs' not found #41

Closed theamaesf closed 5 years ago

theamaesf commented 5 years ago

(Please search existing issues before creating a new one.)

Sample:

Expected Behavior

To be able to proceed to step 4 of the quickstart guide ( https://developers.google.com/docs/api/quickstart/php )

Actual Behavior

This error appears.

Steps to Reproduce the Problem

  1. Just run the tutorial as stated.

Specifications

erickoledadevrel commented 5 years ago

You need to update to the latest version of the library, as the Google Docs API classes don't exist in the order versions. Run composer update google/apiclient.

sianghung commented 5 years ago

@erickoledadevrel I am sure I have the latest version but still there is not Google Docs API classes in the library.

sianghung commented 5 years ago

Sorry, I got it now, I had to remove the whole vendor folder and run composer update again.