Welcome to the LimeSurvey Community Forum

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

Error after upgrading from version 3 to 5

  • maestro1315
  • maestro1315's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago #241907 by maestro1315
Error after upgrading from version 3 to 5 was created by maestro1315
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.11+230320
Own server or LimeSurvey hosting:Own Server
Survey theme/template:
==================
After moving from version 3 to 5 I receive the below error when activating a survey. AWS EC2 for frontend, AWS Aurora serverless database - MySQL (Engine 5.7.x). 500: Internal Server ErrorCDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1238 Variable 'default_storage_engine' is a read only variable
Thanks
 

Please Log in to join the conversation.

  • maestro1315
  • maestro1315's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago - 1 year 4 weeks ago #241912 by maestro1315
Replied by maestro1315 on topic Error after upgrading from version 3 to 5
It appears to be something in this file. I have also confirmed all of my tables are InnoDB.

github.com/LimeSurvey/LimeSurvey/blob/fe.../SurveyActivator.php
Last edit: 1 year 4 weeks ago by maestro1315.

Please Log in to join the conversation.

  • maestro1315
  • maestro1315's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago #241913 by maestro1315
Replied by maestro1315 on topic Error after upgrading from version 3 to 5
SQL Debug show this which seems odd -
system.db.CDbCommand.execute(SET default_storage_engine=MyISAM;) 1 0.00212 0.00212 0.00212 0.00212

Please Log in to join the conversation.

  • maestro1315
  • maestro1315's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 weeks ago - 1 year 4 weeks ago #241917 by maestro1315
Replied by maestro1315 on topic Error after upgrading from version 3 to 5
I'm guessing there is a better fix but this works for me. Output of debug. - system.db.CDbCommand.execute(SET default_storage_engine=innoDB) which is a change from the above post and what appears to have fixed it. 

Change in SurveyActivator.php -
$db->createCommand(new CDbExpression(sprintf('SET default_storage_engine=innoDB')))
Last edit: 1 year 4 weeks ago by maestro1315.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #241997 by DenisChenu
Replied by DenisChenu on topic Error after upgrading from version 3 to 5
When you update : you set InnoDB for MySQL ?

I think the issue is here : when updating for 3.X : it can be only MyISAM.

The system must not check the settings you choose, but only the current settings.

I think we have same issue if we remove a config.php file from a MyISAM setup (or InnoçDB and chose MyIsam).

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose