Error on submit

Error on submit

by Yehuda Zimmerman -
Number of replies: 4

Using Moodle 2.2.1+ on Red Hat.

When I submit the questionnaire I get the following error message:

Notice: Undefined property: object::$id in /home/elearnmo/public_html/lib/moodlelib.php on line 5033

Now line 5033 in the PHP file reads: $invalidemail = "User $user->id (".fullname($user).") email ($user->email) is invalid! Not sending.";

What am I doing wrong? The e-mail address is correct! Help!

Thanks!

Average of ratings: -
In reply to Yehuda Zimmerman

Re: Error on submit

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

We will need more information...

1) Can you turn full debugging on, and record the entire message?

2) What version of questionnaire are you using? This is in the '/mod/questionnaire/version.php' file and should be something like:
$module->version  = 2010110101;
$module->release  = '2.1.2 (Build - 20120131)';

mike

In reply to Mike Churchward

Re: Error on submit

by Yehuda Zimmerman -

Hi!

Full debugging is on, and that is the only message I received!

$module->release  = '2.2.2 (Build - 20120131)';

$module->maturity = 'STABLE';

That’s all I’ve got.

Thank you! 

In reply to Yehuda Zimmerman

Re: Error on submit

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

This looks like new functionality added to Moodle to check if an email address is in the correct format. In questionnaire, it will send email to the users specified in the 'email' setting on the questionnaire's advanced settings page. Check what you have entered there, and that is a valid email address.

mike

In reply to Mike Churchward

Re: Error on submit

by Yehuda Zimmerman -

That worked. Thank you!

One thing: It wasn't so easy to find the advanced settings for the questionnaire.