Fatal error in image gallery on public profiles

Bug #872672 reported by Richard Mansfield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

The image gallery doesn't include artefact/lib.php. This can result in an unviewable view, instead an error message is displayed: "Fatal error: Call to undefined function artefact_get_descendants() in .../artefact/file/blocktype/gallery/lib.php on line ..."

Other stuff often includes the library first. Seems to require that the user is logged out, it must be a profile view, and the gallery also needs to be one of the first blocks on the page.

Affects 1.4.

Tags: gallery
Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Richard Mansfield (richard-mansfield)
milestone: none → 1.5.0
Revision history for this message
François Marier (fmarier) wrote :

Do you think it's serious enough for 1.4.1?

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

It's rare but very ugly, so I've submitted a fix for 1.4.

Changed in mahara:
milestone: 1.5.0 → 1.4.1
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/792
Committed: http://gitorious.org/mahara/mahara/commit/8c320e230a8af70333093c37aa19d74456e832ef
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit 8c320e230a8af70333093c37aa19d74456e832ef
Author: Richard Mansfield <email address hidden>
Date: Wed Oct 12 18:31:03 2011 +1300

    Fix fatal error in gallery on public profiles (bug #872672)

    Change-Id: Ib2d1cd9068a48d7f199dd3d056ab52ef93a3d59b
    Signed-off-by: Richard Mansfield <email address hidden>

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

Reviewed: https://reviews.mahara.org/793
Committed: http://gitorious.org/mahara/mahara/commit/750e7152ffc55dabbd03bb7d7389e664557494a2
Submitter: Francois Marier (<email address hidden>)
Branch: 1.4_STABLE

commit 750e7152ffc55dabbd03bb7d7389e664557494a2
Author: Richard Mansfield <email address hidden>
Date: Thu Oct 13 09:34:00 2011 +1300

    Fix fatal error in gallery on public profiles (bug #872672)

    Change-Id: Iea11ad161946a8aa0cac1c696fc2b08c75b776e7
    Signed-off-by: Richard Mansfield <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: gallery
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.