mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #19746
[Bug 1336111] A change has been merged
Reviewed: https://reviews.mahara.org/3500
Committed: http://gitorious.org/mahara/mahara/commit/66301a003148b0d7a1fa9a695ee242c19b3761e9
Submitter: Ghada El-Zoghbi (ghada@xxxxxxxxxxxxxxx)
Branch: master
commit 66301a003148b0d7a1fa9a695ee242c19b3761e9
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Tue Jul 22 11:40:50 2014 +1200
Missing validate_config_options function error (Bug #1336111)
Problem is the line 1809 in lib/mahara.php namely
- [optional] validate_config_options() was not being respected
So I added a check to see if the function exists for the plugin before
trying to call it.
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Change-Id: Iceabeec423f67339903959fe4083bb87250cad12
--
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/1336111
Title:
Error: class 'ArtefactTypeComment' does not have a method
'validate_config_options'
Status in Mahara ePortfolio:
In Progress
Bug description:
Mahara: 1.10.0dev
OS: Linux
DB: Mysql (with prefix 'testing_')
Browser: FF
Steps to reproduce:
- Log in as admin
- Go to Administration/Extensions
- configuring the Plugin type: artefact 'comment'
- Select 'enable comment rating'.
- Save.
- Refresh the page to see the error:
[WAR] 35 (lib/mahara.php:1586) call_user_func_array() expects parameter 1 to be a valid callback, class 'ArtefactTypeComment' does not have a method 'validate_config_options'
Call stack (most recent first):
log_message("call_user_func_array() expects parameter 1 to be a...", 8, true, true, "/var/www/maharacode/mahara/htdocs/lib/mahara.php", 1586) at /var/www/maharacode/mahara/htdocs/lib/errors.php:433
error(2, "call_user_func_array() expects parameter 1 to be a...", "/var/www/maharacode/mahara/htdocs/lib/mahara.php", 1586, array(size 3)) at Unknown:0
call_user_func_array(array(size 2), array(size 2)) at /var/www/maharacode/mahara/htdocs/lib/mahara.php:1586
call_static_method("ArtefactTypeComment", "validate_config_options", object(Pieform), array(size 6)) at /var/www/maharacode/mahara/htdocs/admin/extensions/pluginconfig.php:116
pluginconfig_validate(object(Pieform), array(size 6)) at Unknown:0
call_user_func_array("pluginconfig_validate", array(size 2)) at /var/www/maharacode/mahara/htdocs/lib/pieforms/pieform.php:1382
Pieform->validate(array(size 6)) at /var/www/maharacode/mahara/htdocs/lib/pieforms/pieform.php:505
Pieform->__construct(array(size 9)) at /var/www/maharacode/mahara/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 9)) at /var/www/maharacode/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 9)) at /var/www/maharacode/mahara/htdocs/admin/extensions/pluginconfig.php:78
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1336111/+subscriptions
References