Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Error on upgrading from v5 to v6 using a custom auth plugin: DbStorage.php

  • doeringf
  • doeringf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago - 5 months 3 weeks ago #263424 by doeringf
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.28.68
Own server or LimeSurvey hosting: own
Survey theme/template:
==================
Hello community,

we are using a custom developed authentication plugin located in the /plugins folder.
The plugin code can be found here:  codebase.helmholtz.cloud/hifis/cloud/si/...vey/AuthHelmholtzAAI

While doing an upgrade to the latest 6.x release from LimeSurvey Community Edition Version 3.28.68+230809 the intermediate step of upgrading from version 5 to 6 is cancelled with an error message:

Update mysql:host=localhost;port=3306;dbname=survey; with prefix :lime_ from 499 to 623
PHP Error[2]: include(DbStorage.php): failed to open stream: No such file or directory
    in file /var/www/survey/vendor/yiisoft/yii/framework/YiiBase.php at line 463
#0 /var/www/survey/vendor/yiisoft/yii/framework/base/CApplication.php(832): CErrorHandler->handle()
#1 /var/www/survey/vendor/yiisoft/yii/framework/YiiBase.php(463): ConsoleApplication->handleError()
#2 /var/www/survey/vendor/yiisoft/yii/framework/YiiBase.php(463): include()
#3 unknown(0): autoload()
#4 unknown(0): spl_autoload_call()
#5 /var/www/survey/application/libraries/PluginManager/PluginManager.php(186): class_exists()
#6 /var/www/survey/application/libraries/PluginManager/PluginBase.php(223): LimeSurvey\PluginManager\PluginManager->getStore()
#7 /var/www/survey/application/libraries/PluginManager/PluginBase.php(144): AuthHelmholtzAAI->getStore()
#8 /var/www/survey/plugins/AuthHelmholtzAAI/AuthHelmholtzAAI.php(197): AuthHelmholtzAAI->get()
#9 /var/www/survey/application/libraries/PluginManager/PluginManager.php(449): AuthHelmholtzAAI->init()
#10 /var/www/survey/application/libraries/PluginManager/PluginManager.php(509): LimeSurvey\PluginManager\PluginManager->loadPlugin()
#11 /var/www/survey/application/libraries/PluginManager/PluginManager.php(82): LimeSurvey\PluginManager\PluginManager->loadPlugins()
#12 /var/www/survey/vendor/yiisoft/yii/framework/base/CModule.php(394): LimeSurvey\PluginManager\PluginManager->init()
#13 /var/www/survey/application/core/ConsoleApplication.php(202): ConsoleApplication->getComponent()
#14 /var/www/survey/application/models/Survey.php(578): ConsoleApplication->getPluginManager()
#15 /var/www/survey/vendor/yiisoft/yii/framework/base/CComponent.php(559): Survey->afterFindSurvey()
#16 /var/www/survey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(902): Survey->raiseEvent()
#17 /var/www/survey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(1040): Survey->onAfterFind()
#18 /var/www/survey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(1874): Survey->afterFind()
#19 /var/www/survey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(1359): Survey->populateRecord()
#20 /var/www/survey/application/models/LSActiveRecord.php(77): Survey->query()
#21 /var/www/survey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(1494): Survey->query()
#22 /var/www/survey/application/models/Survey.php(1003): Survey->findByPk()
#23 /var/www/survey/application/helpers/common_helper.php(3705): Survey->findByPk()
#24 /var/www/survey/application/helpers/update/updatedb_helper.php(3108): fixLanguageConsistency()
#25 /var/www/survey/application/helpers/update/updatedb_helper.php(154): fixLanguageConsistencyAllSurveys()
#26 /var/www/survey/application/commands/UpdateDbCommand.php(46): db_upgrade_all()
#27 /var/www/survey/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): UpdateDBCommand->run()
#28 /var/www/survey/vendor/yiisoft/yii/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#29 /var/www/survey/vendor/yiisoft/yii/framework/base/CApplication.php(185): ConsoleApplication->processRequest()
#30 /var/www/survey/application/commands/console.php(77): ConsoleApplication->run()
<h1>Fatal plugin error: AuthHelmholtzAAI</h1><h2>Unknown error - error_get_last() returned null</h2><p>This plugin has been marked as faulty and will not be loaded again. See the plugin manager for more details, or contact the plugin author.</p>

However, if we compare with other plugins (AuthLDAP, Authwebserver, Authdb, ...), the use of protected $storage = 'DbStorage'; seems correct to us.
With the plugin deactivated the upgrade succeeds and can be reactivated and used without problems.

What might be the cause and which changes could possibly help?

Thanks for any hints and best regards,
Florian
Last edit: 5 months 3 weeks ago by doeringf. Reason: fixed missing info

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 months 3 weeks ago - 5 months 3 weeks ago #263718 by DenisChenu
You do the upgrade via CLI ?

Maybe you can try this workaround : gitlab.com/SondagesPro/mailing/sendMailC...master/DbStorage.php

See bugs.limesurvey.org/view.php?id=14704

EDIT : there are some other issue with autoloader , but here no clean step
EDIT2: Oh, your system is OK bugs.limesurvey.org/view.php?id=18849#c75297

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 5 months 3 weeks ago by DenisChenu. Reason: EDIT + EDIT2
The following user(s) said Thank You: doeringf

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose