Warnings after Upgrade to 7.11.21 : Class Google_Service and more not found

Dear SuiteCRM user ,
I upgrade to the newest Version of SuiteCRM 7.11.21 and now get Warnings on the Top of every page.
I Use Ubuntu 18.04.5 and PHP 7.3.29

Can someone tell me what to do now to stop these warnings? With the Pre version 7.11.20 i had no errors.

Juergen

Warning : Class ‘Google_Service’ not found in /var/www/vhosts/xxxxx/SuiteCRM/vendor/google/apiclient-services/autoload.php on line 21

Warning : Class ‘Google_Service_Resource’ not found in /var/www/vhosts/xxxxx/SuiteCRM/vendor/google/apiclient-services/autoload.php on line 21

Warning : Class ‘Google_Model’ not found in /var/www/vhosts/xxxxx/SuiteCRM/vendor/google/apiclient-services/autoload.php on line 21

Warning : Class ‘Google_Collection’ not found in /var/www/vhosts/xxxxx/SuiteCRM/vendor/google/apiclient-services/autoload.php on line 21

1 Like

Hi there!

Google updated their class references so you may need to do an update from the command line if you can.

composer install --no-dev

But it’s interesting as the vendor folder should already have this alias update. Let us know how you get on so we can help others.

Hey Samus-aran, i tried the “composer install --no -dev” but still got errors.

I put the display output as a picture below

Juergen

Potentially the vendor folder is not updating correctly. A user had a similar problem, they resolved it by removing the problem folder from vendor and doing composer install/update again.

2 Likes

If the above still doesn’t work. I can only offer you a potential patch in this PR.

Of course, this isn’t in production yet so if you try it we recommend to take a backup of your folder structure. Tell us which one helps.

1 Like

I ran the Composer Install as above in the google/apiclient-services folder and it updated dependencies. The errors in php log have gone away although I now have some odd cron failures I need to t-shoot.

1 Like

I still have all thoses warning after 7.11.22 … just updated this morning.

Does someone have the same case ?

@holdusback Have you had a wee look at this issue on the Google Services repo. Warnings after Upgrade to 7.11.21 : Class Google_Service and more not found - #4 by samus-aran

1 Like

+1 for me and my home screen dashboard won’t load either.

I have upgraded from

7.11.15

to

7.12.5

and now have got similar problem, is there anyone can help?

Having these issues too with tons of warning/log entries of “Google XYZ services” in the log file which are being logged almost every second; just jumping on the train to follow the thread.

[09-May-2022 17:13:20 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:20 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:20 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:20 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:58 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:58 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:58 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:13:58 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:34 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:34 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:34 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:34 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:58 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:58 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:58 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:14:58 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:20 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:20 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:20 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:20 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:58 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:58 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:58 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:15:58 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:16:58 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:16:58 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:16:58 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:16:58 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:17:20 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:17:20 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:17:20 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:17:20 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:22:12 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:22:12 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:22:12 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[09-May-2022 17:22:12 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[10-May-2022 07:28:37 Europe/London] PHP Warning:  Class 'Google_Service' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[10-May-2022 07:28:37 Europe/London] PHP Warning:  Class 'Google_Service_Resource' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[10-May-2022 07:28:37 Europe/London] PHP Warning:  Class 'Google_Model' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21
[10-May-2022 07:28:37 Europe/London] PHP Warning:  Class 'Google_Collection' not found in /public_html/vendor/google/apiclient-services/autoload.php on line 21

Looks like you maybe on an older version that doesn’t have the patch to update the class references “class\class” etc.

I believe you can remove the vendor folder and re-install composer from the SuiteCRM root so that the classes are pulled down again and the namespaces are correctly referenced.

Let us know how you get on?

Not really:
image

Since 8.0. is still buggy and not production stable we’re still on the latest version before version 8.0.

@PowerQuest Well that’s good heh.

Have a look at this closed issue which highlights that you may need to delete your vendor folder and re-install like I mentioned earlier.

So just delete the folder and then re-upload a fresh file copy of that directory to server?

Ensure the SuiteCRM version is AFTER 7.11.21

I would recommend you delete the vendor folder and run the following command via the root of your SuiteCRM directory

composer install --no-dev

This should recreate the vendor folder

2 Likes

Thanks for the tip and help. I’ll take a look at it and test it out.

We can confirm that this solves the issue with the error_log is spammed with errors about Google services almost every second… :white_check_mark:

After we applied the suggested solution the error_log is silent. Not one single entry which is awesome.

Thank you @samus-aran for pointing us in the right direction. :facepunch:

Kind regards
PowerQuest

1 Like

Cool. I’ll have to try that to. I tried updating the folder but not deleting and reinstalling. Did that solve the 500 error on Google Calendar Auth too?

Honestly I forgot to try it.
I’ll check if it will work… @pstevens

Kind regards
PowerQuest