"Call to undefined function artefact_instance_from_id()" when deleting a profile icon

Bug #1578000 reported by Aaron Wells
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Dmitrii Metelkin
16.04
Fix Released
High
Unassigned
16.10
Fix Released
High
Dmitrii Metelkin

Bug Description

To replicate:

1. Upload a profile icon
2. On the "Content -> Profile pictures" page, tick the box next to the uploaded profile icon.
3. Press the "delete" button

Expected result: icon is deleted
Actual result: Fatal crash with this error:

( ! ) Fatal error: Call to undefined function artefact_instance_from_id() in /home/aaronw/www/mahara/htdocs/artefact/file/profileicons.php on line 317
Call Stack
# Time Memory Function Location
1 0.0098 315720 {main}( ) ../profileicons.php:0
2 0.1018 10206368 pieform_instance( ??? ) ../profileicons.php:36
3 0.1034 10512720 Pieform->__construct( ??? ) ../mahara.php:4484
4 0.1075 10745944 settings_submit_delete( ???, ??? ) ../pieform.php:528

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

Revision history for this message
Mahara Bot (dev-mahara) wrote :

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

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

Reviewed: https://reviews.mahara.org/6551
Committed: https://git.mahara.org/mahara/mahara/commit/406dc62678eacf559cd73dba454e8bc51d8953df
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 406dc62678eacf559cd73dba454e8bc51d8953df
Author: Robert Lyon <email address hidden>
Date: Thu Jun 9 13:29:57 2016 +1200

Bug 1578000: fix PHP fatal error when deleting a profile icon.

behatnotneeded: Tested will be added in another patch.

Change-Id: Ibb68614d6704df0e13d4a8e0c9e321e7afc39689

Revision history for this message
Mahara Bot (dev-mahara) wrote :

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

commit 3ca59924ea455569e8be4fa70666350c7f35bef2
Author: Robert Lyon <email address hidden>
Date: Thu Jun 9 13:29:57 2016 +1200

Bug 1578000: fix PHP fatal error when deleting a profile icon.

behatnotneeded: Tested will be added in another patch.

Change-Id: Ibb68614d6704df0e13d4a8e0c9e321e7afc39689

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.

Other bug subscribers

Remote bug watches

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