Quantcast
Channel: My Experience with Web
Viewing all articles
Browse latest Browse all 18

Moodle Error: List of all users shows a fatal error message {Fatal error: Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in …

$
0
0

Hi,

If you every face this error List of all users shows a fatal error message {Fatal error: Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in .. while browsing users in your Moodle installation. The possible reason could be the PHP version issue.

The easiest way to resolve is add in HTML_QuickForm_element (moodle/lib/pear/HTML/QuickForm/element.php)

public function __call($name, $args) {
    $name = str_replace('MoodleQuickForm_', '', $name);

    if ($name == 'passwordunmask') {
        $name = 'password';
    }

    return call_user_func_array(array($this, 'HTML_QuickForm_'.$name), $args);
}

Cheers,
Jaswant



Viewing all articles
Browse latest Browse all 18

Trending Articles