Adding an profile picture as a background image for a skin causes errors

Bug #1293803 reported by Son Nguyen on 2014-03-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Son Nguyen

Bug Description

Version: master, 1.8

Adding an profile picture as a background image for a skin causes errors:

[WAR] ef (artefact/lib.php:177) Artefact type mismatch. You are trying to use this profileicon as a image.
Call stack (most recent first):

    ArtefactType->__construct(35, null) at /home/sonn/code/mahara/1.8/htdocs/artefact/file/lib.php:293
    ArtefactTypeFileBase->__construct(35, null) at /home/sonn/code/mahara/1.8/htdocs/artefact/file/lib.php:824
    ArtefactTypeFile->__construct(35, null) at /home/sonn/code/mahara/1.8/htdocs/artefact/file/lib.php:1865
    ArtefactTypeImage->__construct(35) at /home/sonn/code/mahara/1.8/htdocs/lib/skin.php:929
    Skin::generate_thumbnail(1) at /home/sonn/code/mahara/1.8/htdocs/lib/skin.php:284
    Skin->commit() at /home/sonn/code/mahara/1.8/htdocs/lib/skin.php:188
    Skin::create(array(size 5)) at /home/sonn/code/mahara/1.8/htdocs/skin/design.php:660
    designskinform_submit(object(Pieform), array(size 44)) at Unknown:0
    call_user_func_array("designskinform_submit", array(size 2)) at /home/sonn/code/mahara/1.8/htdocs/lib/pieforms/pieform.php:528
    Pieform->__construct(array(size 8)) at /home/sonn/code/mahara/1.8/htdocs/lib/pieforms/pieform.php:170
    Pieform::process(array(size 8)) at /home/sonn/code/mahara/1.8/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 8)) at /home/sonn/code/mahara/1.8/htdocs/skin/design.php:564

Son Nguyen (ngson2000) on 2014-03-18
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: New → In Progress
Son Nguyen (ngson2000) on 2014-03-23
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2014-04-22
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers