creating a journal with licence requirements on causes errors

Bug #1130990 reported by Melissa Draper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon
1.8
Fix Released
High
Robert Lyon

Bug Description

With both "License metadata" and "Allow custom licenses" options selected in the site general settings.

When creating a new journal, the following errors are output:

[WAR] be (artefact/blog/lib.php:345) Undefined index: license
Call stack (most recent first):

    log_message("Undefined index: license", 8, true, true, "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 345) at /var/www/mahara-dev/code/htdocs/lib/errors.php:446
    error(8, "Undefined index: license", "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 345, array(size 3)) at /var/www/mahara-dev/code/htdocs/artefact/blog/lib.php:345
    ArtefactTypeBlog::new_blog(object(LiveUser), array(size 5)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:95
    newblog_submit(object(Pieform), array(size 5)) at Unknown:0
    call_user_func_array("newblog_submit", array(size 2)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:514
    Pieform->__construct(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:161
    Pieform::process(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 6)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:79

[WAR] be (artefact/blog/lib.php:346) Undefined index: licensor
Call stack (most recent first):

    log_message("Undefined index: licensor", 8, true, true, "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 346) at /var/www/mahara-dev/code/htdocs/lib/errors.php:446
    error(8, "Undefined index: licensor", "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 346, array(size 3)) at /var/www/mahara-dev/code/htdocs/artefact/blog/lib.php:346
    ArtefactTypeBlog::new_blog(object(LiveUser), array(size 5)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:95
    newblog_submit(object(Pieform), array(size 5)) at Unknown:0
    call_user_func_array("newblog_submit", array(size 2)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:514
    Pieform->__construct(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:161
    Pieform::process(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 6)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:79

[WAR] be (artefact/blog/lib.php:347) Undefined index: licensorurl
Call stack (most recent first):

    log_message("Undefined index: licensorurl", 8, true, true, "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 347) at /var/www/mahara-dev/code/htdocs/lib/errors.php:446
    error(8, "Undefined index: licensorurl", "/var/www/mahara-dev/code/htdocs/artefact/blog/lib....", 347, array(size 3)) at /var/www/mahara-dev/code/htdocs/artefact/blog/lib.php:347
    ArtefactTypeBlog::new_blog(object(LiveUser), array(size 5)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:95
    newblog_submit(object(Pieform), array(size 5)) at Unknown:0
    call_user_func_array("newblog_submit", array(size 2)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:514
    Pieform->__construct(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:161
    Pieform::process(array(size 6)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 6)) at /var/www/mahara-dev/code/htdocs/artefact/blog/new/index.php:79

Changed in mahara:
status: New → Confirmed
importance: Undecided → High
milestone: none → 1.7.1
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.7.1 → 1.7.2
Revision history for this message
Robert Lyon (robertl-9) wrote :

Problem due to the create journal page form lacking the 'License', 'Licensor' and 'Original URL' fields. (see Content -> Files for what is needed)

Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Robert Lyon (robertl-9) wrote :
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2274
Committed: http://gitorious.org/mahara/mahara/commit/2a937c947a6c138738aa90981cc64df0a424a21e
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 2a937c947a6c138738aa90981cc64df0a424a21e
Author: Robert Lyon <email address hidden>
Date: Wed Jun 12 11:31:19 2013 +1200

Added in licence requirements lines to new journal form (Bug #1130990)

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

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

Reviewed: https://reviews.mahara.org/2306
Committed: http://gitorious.org/mahara/mahara/commit/a5c5955783fc8998eaff731411e9918d1acb68fd
Submitter: Son Nguyen (<email address hidden>)
Branch: 1.7_STABLE

commit a5c5955783fc8998eaff731411e9918d1acb68fd
Author: Robert Lyon <email address hidden>
Date: Wed Jun 12 11:31:19 2013 +1200

Added in licence requirements lines to new journal form (Bug #1130990)

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

Son Nguyen (ngson2000)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.7.2 → 1.8.0
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.