googleworkspace / php-samples

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

Please give us ideal how to resolve this issue ? #91

Open kinhdang opened 2 years ago

kinhdang commented 2 years ago

We user this library but It had an issue, we attach log file detail in here, Please give us ideal how to resolve this issue ?

Open the following link in your browser: https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=101925691601-glkhh09n2nhur536k8ae7lfcv97f9f05.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fthutucdoanhnghiep.vn&state&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar&prompt=select_account%20consent Enter verification code: 4/0AX4XfWjBiX7lIBTYugFyWztI-IfHsf4CghP5ZDt6tR6LepTQa6iM7TKTnzk-VBNqo-KoWQ PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/meeting.goffice.vn/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67 PHP Fatal error: Uncaught TypeError: Argument 1 passed to Google_Service::__construct() must be an instance of Google_Client, null given, called in /var/www/html/meeting.goffice.vn/vendor/google/apiclient-services/src/Calendar.php on line 71 and defined in /var/www/html/meeting.goffice.vn/vendor/google/apiclient/src/Google/Service.php:28 Stack trace:

0 /var/www/html/meeting.goffice.vn/vendor/google/apiclient-services/src/Calendar.php(71): Google_Service->__construct(NULL)

1 /var/www/html/meeting.goffice.vn/init-setup-config.php(63): Google\Service\Calendar->__construct(NULL)

2 {main}

thrown in /var/www/html/meeting.goffice.vn/vendor/google/apiclient/src/Google/Service.php on line 28

Thanks,