View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13744 | Bug reports | _ Unknown | public | 2018-06-07 01:34 | 2018-08-07 17:01 |
Reporter | caseylucas | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.8.x | ||||
Fixed in Version | 3.13.x | ||||
Summary | 13744: unable to run db migration via command line (and fix) | ||||
Description | I am attempting to run db migration before starting up LS under FPM and am currently on db version 348. Note that LS version 3.9.0 needs to migrate to db version 349. I run (in application/commands directory) php console.php updatedb and get the following output: Update pgsql:host=postgres;port=5432;user=XXXXX;password=XXXXX;dbname=dev; with prefix : from 348 to 349 | ||||
Steps To Reproduce | Run the updatedb command but you must actually need a db migration. DB version 349 performs these updates (FYI - in case you need to back them out while testing): ALTER TABLE "users" DROP COLUMN "one_time_pw" | ||||
Additional Information | To fix the issue I added one line to UpdateDbCommand.php: --- a/base/limesurvey/application/commands/UpdateDbCommand.php
| ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 3.9.0+180604 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | n/a | ||||
Database type & version | Postgres 348 | ||||
Server OS (if known) | linux | ||||
Webserver software & version (if known) | FPM | ||||
PHP Version | 7.2 | ||||
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27359 |
|
No nee to load file : just setConfig again |
|
I just tried to upgrade to latest (3.13.2+180709). This issue has not been resolved. See stack trace: Error: Call to undefined function getGlobalSetting() in /var/www/html/application/models/TemplateManifest.php:605 |
|
After digging a little deeper I realized that a similar problem ('getGlobalSetting' not being available) is manifesting itself in a different location (TemplateManifest->setPath()). This diff fixes the error: --- a/base/application/models/TemplateManifest.php
Coincidentally, the code path in 'TemplateManifest->setPath' which calls get/setGlobalSetting was being executed because I was executing the updatedb outside of the application "rootdir". This caused the error to show up: cd /var/www/html/application/commands However the error does not show up if I run (note the different path): cd /var/www/html |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27708 |
|
Release 3.14.2+180807 |
|
LimeSurvey: master 83e3fb71 2018-06-08 02:23 Details Diff |
Fixed issue 13744: unable to run db migration via command line Dev: please don't load uneeded file ;) |
Affected Issues 13744 |
|
mod - application/helpers/globalsettings_helper.php | Diff File | ||
mod - application/helpers/update/updatedb_helper.php | Diff File | ||
LimeSurvey: master 9eac4140 2018-07-28 16:02
Committer: GitHub Details Diff |
Fixed issue 13744: unable to run db migration via command line Dev: remove unused SettingGlobal->model()->updateSetting function Dev: add SettingGlobal::setSetting function Dev: add demoMode rules in SettingGlobal model |
Affected Issues 13744 |
|
mod - application/helpers/globalsettings_helper.php | Diff File | ||
mod - application/models/SettingGlobal.php | Diff File | ||
mod - application/models/TemplateManifest.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-06-07 01:34 | caseylucas | New Issue | |
2018-06-08 00:23 | DenisChenu | Changeset attached | => LimeSurvey master 83e3fb71 |
2018-06-08 00:23 | DenisChenu | Note Added: 48024 | |
2018-06-08 00:23 | DenisChenu | Assigned To | => DenisChenu |
2018-06-08 00:23 | DenisChenu | Resolution | open => fixed |
2018-06-08 00:24 | DenisChenu | Status | new => resolved |
2018-06-08 00:24 | DenisChenu | Fixed in Version | => 3.8.x |
2018-06-08 00:24 | DenisChenu | Note Added: 48025 | |
2018-06-11 16:32 |
|
Status | resolved => closed |
2018-06-11 16:32 |
|
Fixed in Version | 3.8.x => 3.10.x |
2018-07-20 00:29 | caseylucas | Status | closed => feedback |
2018-07-20 00:29 | caseylucas | Resolution | fixed => reopened |
2018-07-20 00:29 | caseylucas | Note Added: 48538 | |
2018-07-20 00:29 | caseylucas | Issue Monitored: caseylucas | |
2018-07-20 04:08 | caseylucas | Note Added: 48539 | |
2018-07-20 04:08 | caseylucas | Status | feedback => assigned |
2018-07-20 11:27 | DenisChenu | Assigned To | DenisChenu => markusfluer |
2018-07-20 11:27 | DenisChenu | Note Added: 48541 | |
2018-07-28 14:02 |
|
Changeset attached | => LimeSurvey master 9eac4140 |
2018-07-28 14:02 |
|
Note Added: 48608 | |
2018-07-29 17:19 | DenisChenu | Assigned To | markusfluer => DenisChenu |
2018-07-29 17:19 | DenisChenu | Status | assigned => resolved |
2018-07-29 17:19 | DenisChenu | Resolution | reopened => fixed |
2018-07-29 17:19 | DenisChenu | Fixed in Version | 3.10.x => 3.13.x |
2018-08-07 17:01 |
|
Status | resolved => closed |
2018-08-07 17:01 |
|
Note Added: 48704 | |
2021-08-02 20:23 | guest | Bug heat | 8 => 10 |