- Posts: 2
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
mymachine:/srv/www/htdocs # php application/commands/console.php updatedb Update mysql:host=localhost;port=3306;dbname=limesurvey; with prefix :lime_ from 143 to 425 Error: Call to undefined function dbExecuteAssoc() in /srv/www/htdocs/application/helpers/update/updatedb_helper.php:4427 Stack trace: #0 /srv/www/htdocs/application/helpers/update/updatedb_helper.php(364): upgradeSurveys145() #1 /srv/www/htdocs/application/commands/UpdateDbCommand.php(44): db_upgrade_all(143) #2 /srv/www/htdocs/framework/console/CConsoleCommandRunner.php(71): UpdateDBCommand->run(Array) #3 /srv/www/htdocs/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array) #4 /srv/www/htdocs/framework/base/CApplication.php(185): CConsoleApplication->processRequest() #5 /srv/www/htdocs/application/commands/console.php(64): CApplication->run()
$oSurveyResult = Yii::app()->getDb()->createCommand($sSurveyQuery)->queryAll(); //$oSurveyResult = dbExecuteAssoc($sSurveyQuery); foreach ( $oSurveyResult as $aSurveyRow )
mymachine:/srv/www/htdocs # php application/commands/console.php updatedb Update mysql:host=localhost;port=3306;dbname=limesurvey; with prefix :lime_ from 143 to 425 PHP Error[2]: include(LimeExpressionManager.php): failed to open stream: No such file or directory in file /srv/www/htdocs/framework/YiiBase.php at line 463 #0 /srv/www/htdocs/framework/YiiBase.php(463): include() #1 unknown(0): autoload() #2 /srv/www/htdocs/application/helpers/update/updatedb_helper.php(948): spl_autoload_call() #3 /srv/www/htdocs/application/commands/UpdateDbCommand.php(44): db_upgrade_all() #4 /srv/www/htdocs/framework/console/CConsoleCommandRunner.php(71): UpdateDBCommand->run() #5 /srv/www/htdocs/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run() #6 /srv/www/htdocs/framework/base/CApplication.php(185): ConsoleApplication->processRequest() #7 /srv/www/htdocs/application/commands/console.php(64): ConsoleApplication->run()
if ($iOldDBVersion < 158) { $oTransaction = $oDB->beginTransaction(); LimeExpressionManager::UpgradeConditionsToRelevance(); $oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>158),"stg_name='DBVersion'"); $oTransaction->commit(); }
Great, easier than I thought then.I have followed up on your advice and tried to go from 1.9 to version 3.22.10+200323 -- it has worked perfectly on the first attempt!
At the moment I personally see too many bugs poping up for 4.x being usable in production yet. Unfortunately there are not enough people testing 4.x to eliminate the bugs. So please, stay at 3.x LTS for your productive environment, but have 4.x installed for testing and bug reporting. You can help the community to find and eliminate the existing bugs, which will help to improve 4.x quickly.So is it the best approach to leave it at LTS 3.22.10 for the time being instead of heading directly to 4.1.13? When would you propose a migration? As soon as 4.x is considered LTS?