upgrade to 1.9 error when logged in and belonging to an institution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
1.9 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
If one is an institutional admin and they try to upgrade their site from pre 1.9 to 1.9+ they get this error
Wed Aug 06 10:01:17.952987 2014] [:error] [pid 22070] [client 127.0.0.1:32941] PHP Fatal error: Uncaught exception 'SQLException' with message 'Failed to get a recordset: postgres7 error: [-1: ERROR: relation "institution_
There was a change made in 1.9 relating to language settings and one of the things it does is try to set a cookie relating to the institution language last used.
When one upgrades it logs them out as part of the process if they are logged in. And it tries to set their institution set language on logout in 1.9 getting info from the institution_config table (which does not exist at this point).
The setting of that cookie needs to be wrapped in a check to make sure the table exists first.
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To Test:
- Create a 1.8_STABLE site
- Create a new institution
- edit user you are logged in with and add them to institution.
- Checkout 1.9_STABLE (or master)
- Try to navigate in the site
Normally it should prompt you to upgrade
Instead white screen of death - and errors in the logs