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


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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s