Fatal error: Call to undefined method MoodleQuickForm_advselect::MoodleQuickForm_advselect() in /moodle/lib/pear/HTML/QuickForm/element.php on line 363
I have replaced the standard Assignment module with
This module worked on a previous installation of Moodle. I have checked & rechecked directory & file permissions and all seem consistent with previous working installation. The file /moodle/mod/assignment/form/advselect.php exists.
23 /* function MoodleQuickForm_advselect($elementName=null, $elementLabel=null, $options=null, $attributes=null)
25 MoodleQuickForm_select::MoodleQuickForm_select($elementName, $elementLabel, $options, $attributes);
26 } //end constructor */
Uncommented these lines (removed /* & */) and the Assignment module began to work again...
Found many references suggesting that this was related to a problem in an earlier version of PHP, however, we're running PHP 5.3.1...
Anyway, works now.
I think you can help me on this. I guess I have received this very same message in my own moodle and don't know how to solve it. Could you please have a look? My post is dated 24rth January and is entitled Admin problem. Also, does one need to be a php expert to make the amendments you suggest? I would not want to worsen the situation by changing codes I know nothing about!
Thanks a lot
Awesome. Thanks. I realize this post is over a year old, but I couldn't figure out what was wrong when we moved things to a new server. I got this error, and that fix worked perfectly.
A difference and the likely cause is what you allude to ... we had a newer version of php, 5.3.16 or something like that.