UpgradeWizard fails at setting session variables

I’ve had trouble upgrading from 7.11.20 to 7.12.2. I think its something specific to my installation. The upgrade wizard goes fine until “setting session variables” (last log entry). I get a screen showing “Adding for”… etc, the last of which is Adding for SurveyQuestionOptions, but no next button or anything.

In the normal log I get this, perhaps its related,
Fri Jan 21 13:26:18 2022 [52992][1][ERROR] Unable to find relationship emails_email_templates

In php logs I found this;

2022/01/21 14:10:05 [error] 745#745: *10949 FastCGI sent in stderr: "PHP message: PHP Warning:  Class 'Google_Service' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Service_Resource' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Model' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Collection' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method Basic::Basic() in /var/www/suitecrm/modules/AM_ProjectHolidays/AM_ProjectHolidays_sugar.php:71
Stack trace:
#0 /var/www/suitecrm/modules/AM_ProjectHolidays/AM_ProjectHolidays.php(44): AM_ProjectHolidays_sugar->AM_ProjectHolidays_sugar()
#1 /var/www/suitecrm/data/BeanFactory.php(123): AM_ProjectHolidays->AM_ProjectHolidays()
#2 /var/www/suitecrm/data/BeanFactory.php(254): BeanFactory::getBean()
#3 /var/www/suitecrm/modules/ACL/install_actions.php(52): BeanFactory::newBean()
#4 /var/www/suitecrm/modules/UpgradeWizard/index.php(277): include('/var/www/suitec...')
#5 /var/www/suitecrm/include/MVC/View/SugarView.php(823): include_once('/var/www/suitec...')
#6 /var/www/suitecrm/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile()
#7 /var/www/suitecrm/include/MVC/View/SugarView.php(210): ViewClassic->display()
#8 /var/www/suitecrm/include/MVC/Controller/SugarController.php(432): SugarView->process()
#9 /var/ww" while reading response header from upstream, client: 180.150.118.219, server: crm.mysite.com.au, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "crm.mysite.com.au", referrer: "https://crm.mysite.com.au/index.php"
2022/01/21 14:10:06 [error] 745#745: *10960 FastCGI sent in stderr: "PHP message: PHP Warning:  Class 'Google_Service' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Service_Resource' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Model' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21PHP message: PHP Warning:  Class 'Google_Collection' not found in /var/www/suitecrm/vendor/google/apiclient-services/autoload.php on line 21" while reading response header from upstream, client: 121.45.150.31, server: crm.mysite.com.au, request: "GET /index.php?module=Alerts&action=get&to_pdf=1 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "crm.mysite.com.au", referrer: "https://crm.mysite.com.au/index.php?action=DetailView&module=Tasks&record=2b146e75-09c4-38ab-bda9-619f21cb741e&return_module=Tasks&return_action=DetailView&offset=3"

I’ve found that I have a non-used disabled module, ZuckerReports2 when I try to remove it, it too fails at 93% and in logs I get:
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][ERROR] Unable to find relationship emails_email_templates
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][FATAL] Missing relationship definition emails_opportunities_rel. skipping opportunities subpanel
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][FATAL] Missing relationship definition emails_cases_rel. skipping cases subpanel
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][FATAL] Missing relationship definition emails_users_rel. skipping users subpanel
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][FATAL] Missing relationship definition emails_bugs_rel. skipping bugs subpanel
Fri Jan 21 13:57:53 2022 [50523][b5394442-59ef-95e7-396d-4f1e33b10f09][FATAL] Missing relationship definition emails_projects_rel. skipping project subpanel

Perhaps related?

Anyone able to point me in the right direction?

So long story short I’ve been following every bit of info for hours and realised I have files that don’t exist in SuiteCRM and would of come from my migration from SugarCRM years ago. To try and remedy this I’ve manually copied over my config* and upload dir. to a fresh files installation. It seems to have worked although the last part of that upgrade from 7.11.x now won’t resume. Is this a problem or do I have a clear road ahead?

I’m leaving this here just in case someone else comes across this issue when upgrading an ancient SuiteCRM. My upgrade got also stuck at “Adding for SurveyQuestionOptions”. But my PHP error is a different.

[Wed Nov 06 15:05:54.735355 2024] [php7:error] [pid 1364413:tid 1364413] [client 10.3.0.171:50290] PHP Fatal error:  Uncaught Error: Call to undefined method SugarBean::SugarBean() in /var/www/crm/modules/Feeds/Feed.php:93
Stack trace:
#0 /var/www/crm/data/BeanFactory.php(123): Feed->Feed()
#1 /var/www/crm/data/BeanFactory.php(254): BeanFactory::getBean()
#2 /var/www/crm/modules/ACL/install_actions.php(52): BeanFactory::newBean()
#3 /var/www/crm/modules/UpgradeWizard/index.php(277): include(/var/www/crm/mo...)
#4 /var/www/crm/include/MVC/View/SugarView.php(824): include_once(/var/www/crm/mo...)
#5 /var/www/crm/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile()
#6 /var/www/crm/include/MVC/View/SugarView.php(210): ViewClassic->display()
#7 /var/www/crm/include/MVC/Controller/SugarController.php(432): SugarView->process()
#8 /var/www/crm/include/MVC/Controller/SugarController.php(363): SugarController->processView()
#9 /var/www/crm/include/MVC/SugarApplication.php(101): SugarController->execute()
#10 /var/www/crm/index.php(52): SugarApplication->execute()
#11 {main}
  thrown in /var/www/crm/modules/Feeds/Feed.php on line 93, referer: http://localhost/crm/index.php

Changing parent::SugarBean() to parent::__construct() as suggested in Error upgrading from 7.11.23 to 7.12.0 - #2 by pgr helped.

1 Like