UpgradeWizard fails at setting session variables

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