Reviewed: https://reviews.mahara.org/5252 Committed: https://git.nzoss.org.nz/mahara/mahara/commit/bc1fbf6c1d65e54c349e23695bc20acbdefe721b Submitter: Son Nguyen (son.ngu...@catalyst.net.nz) Branch: master
commit bc1fbf6c1d65e54c349e23695bc20acbdefe721b Author: Aaron Wells <aar...@catalyst.net.nz> Date: Thu Sep 10 17:59:59 2015 +1200 Catch exceptions during upgrade due to missing table Bug 1494133 behatnotneeded: Covered by existing tests Change-Id: I4c0d93a462fad6a42c2dfca88704d59037357529 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1494133 Title: Fatal error upgrading 1.3->15.04 or 1.4->15.04 Status in Mahara: In Progress Status in Mahara 15.04 series: In Progress Status in Mahara 15.10 series: In Progress Bug description: To replicate: 1. Clean install of Mahara 1.3 to 1.4 2. Upgrade to Mahara 15.04 (via CLI; I haven't tested via the web upgraded) Expected result: Successful upgrade Actual result: Crashes with this fatal error: PHP Fatal error: Uncaught exception 'SQLException' with message 'Failed to get a recordset: postgres8 error: [-18: ERROR: relation "institution_config" does not exist LINE 1: SELECT field, value FROM "institution_config" WHERE "institu... ^] in EXECUTE("SELECT field, value FROM "institution_config" WHERE "institution" = ? ORDER BY field ") Command was: SELECT field, value FROM "institution_config" WHERE "institution" = ? ORDER BY field and values was (mahara)' in mahara/htdocs/lib/dml.php:480 Stack trace: #0 mahara/htdocs/lib/dml.php(429): get_recordset_sql('SELECT field, v...', Array) #1 mahara/htdocs/lib/dml.php(393): get_recordset_select('institution_con...', '"institution" =...', Array, 'field', 'field, value', '', '') #2 mahara/htdocs/lib/dml.php(719): get_recordset('institution_con...', 'institution', 'mahara', 'field', 'field, value') #3 mahara/htdocs/lib/institution.php(277): get_records_menu('instit in /home/aaronw/www/mahara/htdocs/lib/dml.php on line 480 Works fine when upgrading from 1.1, 1.2, or 1.5. So it's probably caused by some discrepancy between the 1.3 & 1.4 upgrade vs clean install. I noticed the same problem in a 1.4 -> 15.10dev upgrade. But, strangely, not in a 1.3 -> 15.10dev upgrade. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1494133/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp