mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #31108
[Bug 1514661] [NEW] Textbox blocktype raising error when configdata['artefactids'] is not set
Public bug reported:
Mahara 15.10
version = 2015092910
release = 15.10.0
DB: postgresql (but shouldn't matter)
Upgrading from Mahar 1.10 to 15.10, some textboxes give the following error:
[WAR] 3b (artefact/internal/blocktype/textbox/lib.php:313) Undefined index: artefactids
Call stack (most recent first):
log_message("Undefined index: artefactids", 8, true, true, "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313) at /var/www/mahara-site-acttqi-1510/lib/errors.php:441
error(8, "Undefined index: artefactids", "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313, array(size 18)) at /var/www/mahara-site-acttqi-1510/artefact/internal/blocktype/textbox/lib.php:313
PluginBlocktypeTextbox::instance_config_form(object(BlockInstance), "0") at Unknown:0
call_user_func_array(array(size 2), array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/mahara.php:1693
call_static_method("PluginBlocktypeTextbox", "instance_config_form", object(BlockInstance), "0") at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:1017
BlockInstance->build_configure_form(false) at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:817
BlockInstance->render_editing(true) at /var/www/mahara-site-acttqi-1510/lib/view.php:2445
View->configureblockinstance(array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/view.php:1849
View->process_changes() at /var/www/mahara-site-acttqi-1510/view/blocks.json.php:30
The configdata['artefacids'] is not set.
We should check for:
&& isset($configdata['artefactids'])
on line 313 of artefact/internal/blocktype/textbox/lib.php
as we do in other blocktypes.
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1514661
Title:
Textbox blocktype raising error when configdata['artefactids'] is not
set
Status in Mahara:
New
Bug description:
Mahara 15.10
version = 2015092910
release = 15.10.0
DB: postgresql (but shouldn't matter)
Upgrading from Mahar 1.10 to 15.10, some textboxes give the following error:
[WAR] 3b (artefact/internal/blocktype/textbox/lib.php:313) Undefined index: artefactids
Call stack (most recent first):
log_message("Undefined index: artefactids", 8, true, true, "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313) at /var/www/mahara-site-acttqi-1510/lib/errors.php:441
error(8, "Undefined index: artefactids", "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313, array(size 18)) at /var/www/mahara-site-acttqi-1510/artefact/internal/blocktype/textbox/lib.php:313
PluginBlocktypeTextbox::instance_config_form(object(BlockInstance), "0") at Unknown:0
call_user_func_array(array(size 2), array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/mahara.php:1693
call_static_method("PluginBlocktypeTextbox", "instance_config_form", object(BlockInstance), "0") at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:1017
BlockInstance->build_configure_form(false) at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:817
BlockInstance->render_editing(true) at /var/www/mahara-site-acttqi-1510/lib/view.php:2445
View->configureblockinstance(array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/view.php:1849
View->process_changes() at /var/www/mahara-site-acttqi-1510/view/blocks.json.php:30
The configdata['artefacids'] is not set.
We should check for:
&& isset($configdata['artefactids'])
on line 313 of artefact/internal/blocktype/textbox/lib.php
as we do in other blocktypes.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1514661/+subscriptions
Follow ups
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Kristina Hoeppner, 2016-04-30
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Robert Lyon, 2015-11-27
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Robert Lyon, 2015-11-12
-
[Bug 1514661] A change has been merged
From: Mahara Bot, 2015-11-12
-
[Bug 1514661] A patch has been submitted for review
From: Mahara Bot, 2015-11-12
-
[Bug 1514661] A change has been merged
From: Mahara Bot, 2015-11-12
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Aaron Wells, 2015-11-12
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Ghada El-Zoghbi, 2015-11-11
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Aaron Wells, 2015-11-11
-
[Bug 1514661] A patch has been submitted for review
From: Mahara Bot, 2015-11-11
-
[Bug 1514661] Re: Textbox blocktype raising error when configdata['artefactids'] is not set
From: Aaron Wells, 2015-11-11