Upgrade error with unable to execute install_system_portfolio_view

Bug #1581262 reported by Robert Lyon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon
16.04
Fix Released
High
Unassigned
16.10
Fix Released
High
Robert Lyon

Bug Description

When upgrading from a site with version number before 2015082500 (bug 1488255) to version number after 2016042100 (bug 1397110) we get an error about install_system_portfolio_view() not being able to create the page.

This is because the 'root' mahara user (id 0) is not an site admin but needs to be for this task.

Install works fine as the initial 'root' user is created as admin and then switched to being non admin after installing the default templates.

Will add a patch to switch the user to be site admin and then back again in lib/db/upgrade.php on line 4182

The other three are only called during install so we don't need to worry about those
install_system_profile_view();
install_system_dashboard_view();
install_system_grouphomepage_view();

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/6473

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

Reviewed: https://reviews.mahara.org/6473
Committed: https://git.mahara.org/mahara/mahara/commit/b034303bd88e8f0e30bafb2074ab4ac1b4392cf6
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit b034303bd88e8f0e30bafb2074ab4ac1b4392cf6
Author: Robert Lyon <email address hidden>
Date: Fri May 13 12:23:47 2016 +1200

Bug 1581262: allow 'root' user to make default portfoilo page

When upgrading from old 15.04 to new 16.10 site

behatnotneeded

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

Son Nguyen (ngson2000)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "16.04_STABLE" branch: https://reviews.mahara.org/6510

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

Reviewed: https://reviews.mahara.org/6510
Committed: https://git.mahara.org/mahara/mahara/commit/80ad18bdf91bc3ff63ae0630bb12d36904046310
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.04_STABLE

commit 80ad18bdf91bc3ff63ae0630bb12d36904046310
Author: Robert Lyon <email address hidden>
Date: Fri May 13 12:23:47 2016 +1200

Bug 1581262: allow 'root' user to make default portfoilo page

When upgrading from old 15.04 to new 16.10 site

behatnotneeded

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

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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