View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17611Bug reports_ Unknownpublic2021-11-02 09:06
Reporterdlundgren Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.25.20 
Summary17611: 3.x LTS updatedb_helper has undefined function
Description

Error: Call to undefined function getDBConnectionStringProperty() in application/helpers/update/updatedb_helper.php:4293

Steps To Reproduce
  • Install limesurvey 3.27.18 LTS
  • Import prior version database in to mysql
  • Run php application/commands/console.php updatedb
  • Received error above
Additional Information

Will send PR

survey@vagrant:~/current$ php application/commands/console.php updatedb
Update mysql:host=localhost;port=3306;dbname=limesurvey; with prefix :lime_ from 178 to 365
Error: Call to undefined function getDBConnectionStringProperty() in /srv/www/survey/releases/20210921164529Z/application/helpers/update/updatedb_helper.php:4293
Stack trace:
#0 /srv/www/survey/releases/20210921164529Z/application/helpers/update/updatedb_helper.php(1367): fixMySQLCollations('utf8mb4', 'utf8mb4_unicode...')
#1 /srv/www/survey/releases/20210921164529Z/application/commands/UpdateDbCommand.php(44): db_upgrade_all(178)
#2 /srv/www/survey/releases/20210921164529Z/framework/console/CConsoleCommandRunner.php(71): UpdateDBCommand->run(Array)
#3 /srv/www/survey/releases/20210921164529Z/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#4 /srv/www/survey/releases/20210921164529Z/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#5 /srv/www/survey/releases/20210921164529Z/application/commands/console.php(70): CApplication->run()

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)3.27.18+210921
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5.7
Server OS (if known)Ubuntu 16.04.7 LTS
Webserver software & version (if known)
PHP VersionPHP 7.1.33

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2021-09-22 10:13

administrator   ~66581

Missing helper import, I think.

c_schmitz

c_schmitz

2021-09-22 15:45

administrator   ~66588

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32741

c_schmitz

c_schmitz

2021-09-22 15:48

administrator   ~66589

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32742

Related Changesets

LimeSurvey: 3.x-LTS e303e1a2

2021-09-22 15:45:12

c_schmitz

Details Diff
Fixed issue 17611: Updating from 2.05 or earlier throws error "Undefined function getDBConnectionStringProperty()" Affected Issues
17611
mod - application/commands/UpdateDbCommand.php Diff File

LimeSurvey: master a2dea270

2021-09-22 15:45:12

c_schmitz

Details Diff
Fixed issue 17611: Updating from 2.05 or earlier throws error "Undefined function getDBConnectionStringProperty()" Affected Issues
17611
mod - application/commands/UpdateDbCommand.php Diff File

Issue History

Date Modified Username Field Change
2021-09-22 01:38 dlundgren New Issue
2021-09-22 10:13 ollehar Note Added: 66581
2021-09-22 10:13 ollehar Bug heat 0 => 2
2021-09-22 15:39 c_schmitz Assigned To => c_schmitz
2021-09-22 15:39 c_schmitz Status new => assigned
2021-09-22 15:45 c_schmitz Changeset attached => LimeSurvey 3.x-LTS e303e1a2
2021-09-22 15:45 c_schmitz Note Added: 66588
2021-09-22 15:45 c_schmitz Bug heat 2 => 4
2021-09-22 15:45 c_schmitz Resolution open => fixed
2021-09-22 15:45 c_schmitz Status assigned => resolved
2021-09-22 15:48 c_schmitz Changeset attached => LimeSurvey master a2dea270
2021-09-22 15:48 c_schmitz Note Added: 66589
2021-11-02 09:06 c_schmitz Status resolved => closed