ADODB error when edit page layout

Bug #1619036 reported by Son Nguyen on 2016-08-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Version: master (16.10)

I got the following error when editing a page layout

[WAR] b0 (lib/adodb/ Undefined offset: 0
Call stack (most recent first):
log_message("Undefined offset: 0", 8, true, true, "/var/www/html/mahara/master/htdocs/lib/adodb/adodb...", 3496) at /var/www/html/mahara/master/htdocs/lib/errors.php:513
error(8, "Undefined offset: 0", "/var/www/html/mahara/master/htdocs/lib/adodb/adodb...", 3496, array(size 7)) at /var/www/html/mahara/master/htdocs/lib/adodb/
ADORecordSet->GetAssoc(true) at /var/www/html/mahara/master/htdocs/lib/dml.php:562
recordset_to_assoc(object(ADORecordSet_postgres8)) at /var/www/html/mahara/master/htdocs/lib/dml.php:644
get_records_select_assoc("view_layout", "layoutmenuorder > 0 AND iscustom = 0", array(size 0), "layoutmenuorder", "id, id") at /var/www/html/mahara/master/htdocs/view/layout.php:54

This happened after we upgraded ADODB to 5.20.5

Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 606317195f8f3a8cdf9bc448c537b8c3708d75d7
Author: Son Nguyen <email address hidden>
Date: Thu Sep 1 08:38:35 2016 +1200

Bug 1619036: Fix a bug when determine if an array is associative

Use the original code from ADODB 5.20.5


Change-Id: Id6d1d365ed2db783884172ca430488d5fcdcc1d9

Changed in mahara:
milestone: none → 16.10.0
Robert Lyon (robertl-9) on 2016-10-20
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9) on 2016-10-21
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Robert Lyon (robertl-9) on 2016-12-11
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
assignee: Son Nguyen (ngson2000) → nobody
Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers