Warning message when posting a new Text block

Bug #1402912 reported by Aaron Wells on 2014-12-16
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
Low
Aaron Wells

Bug Description

Caused by Bug 1399054

[WAR] f2 (blocktype/text/lib.php:32) Undefined index: text
Call stack (most recent first):

    log_message("Undefined index: text", 8, true, true, "/home/aaronw/www/mahara/htdocs/blocktype/text/lib....", 32) at /home/aaronw/www/mahara/htdocs/lib/errors.php:439
    error(8, "Undefined index: text", "/home/aaronw/www/mahara/htdocs/blocktype/text/lib....", 32, array(size 2)) at /home/aaronw/www/mahara/htdocs/blocktype/text/lib.php:32
    PluginBlocktypeText::get_artefacts(object(BlockInstance)) at Unknown:0
    call_user_func_array(array(size 2), array(size 1)) at /home/aaronw/www/mahara/htdocs/lib/mahara.php:1578
    call_static_method("PluginBlocktypeText", "get_artefacts", object(BlockInstance)) at /home/aaronw/www/mahara/htdocs/blocktype/lib.php:1059
    BlockInstance->rebuild_artefact_list() at /home/aaronw/www/mahara/htdocs/blocktype/lib.php:1040
    BlockInstance->commit() at /home/aaronw/www/mahara/htdocs/lib/view.php:2127
    View->addblocktype(array(size 5)) at /home/aaronw/www/mahara/htdocs/lib/view.php:1813
    View->process_changes() at /home/aaronw/www/mahara/htdocs/view/blocks.json.php:30

Aaron Wells (u-aaronw) wrote :

To replicate:

1. Create a page
2. Put a text box on the page

The warning message will then show up in your Apache error logs and/or on the next screen that you load up.

Changed in mahara:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Aaron Wells (u-aaronw)
milestone: none → 15.04.0
tags: added: regression text

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

commit 831642ca0f6816bfb0995f5533102224a57fda40
Author: Aaron Wells <email address hidden>
Date: Tue Dec 16 17:33:13 2014 +1300

Silence a "undefined index" error

Bug 1402912

Change-Id: I519a7ef9bb116baf6fe1186d2e5de681a1543e77

Robert Lyon (robertl-9) on 2015-01-11
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2015-04-17
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.

Duplicates of this bug

Other bug subscribers