PHP warning during 1.6/1.7/1.8 -> 15.10 upgrade

Bug #1509175 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Won't Fix
Low
Unassigned

Bug Description

To replicate:

1. Clean install of Mahara 1.6.5
2. Log in to Mahara
3. Upgrade to Mahara 15.10.0 (via the web browser)

Result: The upgrade works as expected, but PHP prints this warning:

[WAR] ea (lib/errors.php:747) Failed to get a recordset: postgres8 error: [-18: ERROR: relation "institution_config" does not exist
LINE 1: DELETE FROM "institution_config" WHERE field LIKE '%/_nav/_%...
                    ^] in EXECUTE("DELETE FROM "institution_config" WHERE field LIKE '%/_nav/_%' ESCAPE '/'")
Command was: DELETE FROM "institution_config" WHERE field LIKE '%/_nav/_%' ESCAPE '/'
Call stack (most recent first):

    log_message("Failed to get a recordset: postgres8 error: [-18: ...", 8, true, true) at /home/aaronw/www/mahara-clients/htdocs/lib/errors.php:97
    log_warn("Failed to get a recordset: postgres8 error: [-18: ...") at /home/aaronw/www/mahara-clients/htdocs/lib/errors.php:747
    SQLException->__construct("Failed to get a recordset: postgres8 error: [-18: ...") at /home/aaronw/www/mahara-clients/htdocs/lib/dml.php:974
    delete_records_sql("DELETE FROM {institution_config} WHERE field LIKE ...", array(size 0)) at /home/aaronw/www/mahara-clients/htdocs/lib/web.php:3011
    clear_menu_cache() at /home/aaronw/www/mahara-clients/htdocs/admin/upgrade.json.php:70

Revision history for this message
Aaron Wells (u-aaronw) wrote :

This happens with version 1.6, 1.7, or 1.8, because the institution_config table wasn't added until Mahara 1.9.

summary: - PHP warning during 1.6 -> 15.10 upgrade
+ PHP warning during 1.6/1.7/1.8 -> 15.10 upgrade
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Setting priority to low, because the warning only happens if you've got an older out-of-support Mahara version, and it doesn't actually break anything.

no longer affects: mahara/15.10
no longer affects: mahara/16.04
Changed in mahara:
milestone: 15.10.1 → 16.10.0
no longer affects: mahara/16.10
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Changed in mahara:
milestone: 17.04.0 → none
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Setting to "Won't fix" as these are now very old versions of Mahara that will most likely need other intervention during an upgrade anyway.

Changed in mahara:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.