Undefined theme index when upgrading to 15.10

Bug #1506695 reported by Dean
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon
15.10
Fix Released
Undecided
Unassigned

Bug Description

When im on this URL and I upload a CSV file containing 1000 new users the following happens:

It takes 6mins to upload but stops at 51% and page displays 504 gateway timeout message. But users are still uploaded in the system.

[DBG] 40 (admin/users/uploadcsv.php:553) added user user0784
[WAR] ed (lib/user.php:306) Undefined index: primary
Call stack (most recent first):

    log_message("Undefined index: primary", 8, true, true, "/var/www/master-bigdb-prod-mahara/releases/2015101...", 306) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/lib/errors.php:441
    error(8, "Undefined index: primary", "/var/www/master-bigdb-prod-mahara/releases/2015101...", 306, array(size 12)) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/lib/user.php:306
    general_account_prefs_form_elements(object(stdClass)) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/admin/users/uploadcsv.php:127

[WAR] ed (lib/user.php:306) Trying to get property of non-object
Call stack (most recent first):

    log_message("Trying to get property of non-object", 8, true, true, "/var/www/master-bigdb-prod-mahara/releases/2015101...", 306) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/lib/errors.php:441
    error(8, "Trying to get property of non-object", "/var/www/master-bigdb-prod-mahara/releases/2015101...", 306, array(size 12)) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/lib/user.php:306
    general_account_prefs_form_elements(object(stdClass)) at /var/www/master-bigdb-prod-mahara/releases/20151015203951/admin/users/uploadcsv.php:127

Revision history for this message
Dean (deans) wrote :

As a side note: Robert investigated a little and mentioned there are 124 institutions that have 'primary' as their theme so we'll need to file a bug about dealing with the error.

Robert Lyon (robertl-9)
summary: - CSV upload error on http://master-bigdb-
- mahara.elearning.catalyst.net.nz/
+ Undefined theme index when upgrading to 15.10
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/5549

Robert Lyon (robertl-9)
Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 15.10.0
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5549
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/06cc26d14d56440c8e0f0438d4393bd5b92c202f
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 06cc26d14d56440c8e0f0438d4393bd5b92c202f
Author: Robert Lyon <email address hidden>
Date: Sat Oct 17 22:14:21 2015 +1300

Bug 1506695: Undefined theme index error

Suppress this for user if institution hasn't got around to updating
their theme.

Occurs when $cfg->sitethemeprefs is true and user is in an institution
with an old theme like 'ultima' and they go to their settings page.

Change-Id: I6289da0777b1964cabc8f933478f90ae22569af8
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "15.10_STABLE" branch: https://reviews.mahara.org/5588

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5588
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/bfb7b28f2825496042ecaa55cdebae3517321b7b
Submitter: Son Nguyen (<email address hidden>)
Branch: 15.10_STABLE

commit bfb7b28f2825496042ecaa55cdebae3517321b7b
Author: Robert Lyon <email address hidden>
Date: Sat Oct 17 22:14:21 2015 +1300

Bug 1506695: Undefined theme index error

Suppress this for user if institution hasn't got around to updating
their theme.

Occurs when $cfg->sitethemeprefs is true and user is in an institution
with an old theme like 'ultima' and they go to their settings page.

Change-Id: I6289da0777b1964cabc8f933478f90ae22569af8
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 06cc26d14d56440c8e0f0438d4393bd5b92c202f)

Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.