Warning when deleting queued portfolio

Bug #1498248 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Son Nguyen
15.10
Fix Released
Undecided
Unassigned

Bug Description

Mahara master 15.10 (potentially also 15.04)

Admin -> Users -> Export queue

When I delete a queued export, I get:

[WAR] 46 (admin/users/exportqueue.php:63) Invalid argument supplied for foreach()
Call stack (most recent first):

    log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/kristina/code/mahara/htdocs/admin/users/expo...", 63) at /home/kristina/code/mahara/htdocs/lib/errors.php:441
    error(2, "Invalid argument supplied for foreach()", "/home/kristina/code/mahara/htdocs/admin/users/expo...", 63, array(size 68)) at /home/kristina/code/mahara/htdocs/admin/users/exportqueue.php:63

[WAR] 46 (admin/users/exportqueue.php:78) Trying to get property of non-object
Call stack (most recent first):

    log_message("Trying to get property of non-object", 8, true, true, "/home/kristina/code/mahara/htdocs/admin/users/expo...", 78) at /home/kristina/code/mahara/htdocs/lib/errors.php:441
    error(8, "Trying to get property of non-object", "/home/kristina/code/mahara/htdocs/admin/users/expo...", 78, array(size 68)) at /home/kristina/code/mahara/htdocs/admin/users/exportqueue.php:78

===========================

For the export queue to work, you'd need to turn on "Export to queue" in Config site -> User settings and export a portfolio as Leap2A file.

Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Confirmed → In Progress
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/5411

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

Reviewed: https://reviews.mahara.org/5411
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/5667ad99b1ef487a9ccbe94d5ccd7852f62ceed7
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 5667ad99b1ef487a9ccbe94d5ccd7852f62ceed7
Author: Son Nguyen <email address hidden>
Date: Thu Oct 1 12:48:25 2015 +1300

Fix warnings when deleting queued portfolio export. Bug 1498248

behatnotneeded: only a fix

Change-Id: I88a2956d7c096b881bc5585f56e97e726f15e02d

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

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

Reviewed: https://reviews.mahara.org/5419
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/0b873a1f916087b550570bc47cc8ec0810d2db42
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE

commit 0b873a1f916087b550570bc47cc8ec0810d2db42
Author: Son Nguyen <email address hidden>
Date: Thu Oct 1 12:48:25 2015 +1300

Fix warnings when deleting queued portfolio export. Bug 1498248

behatnotneeded: only a fix

Change-Id: I88a2956d7c096b881bc5585f56e97e726f15e02d
(cherry picked from commit 5667ad99b1ef487a9ccbe94d5ccd7852f62ceed7)

Robert Lyon (robertl-9)
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.