When finishing a quiz as anonymous user, I get the following error(s):

This happens when sending the mail to the quiz author, so my quess is that the information is simply not present for an anonymous quiz taker.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeremymilarsky’s picture

Following. I agree the issue seems to come up when anonymous users are taking a quiz when the module is set to email notifications to the author. (since $user->name and $user->language would be empty with a guest user)

IKN’s picture

Version: 7.x-4.0-alpha2 » 7.x-4.0-alpha9

Following as I'm getting this error, too, although slightly different line #s. Obviously, sending mail to the author is pretty important, so turning it off in order to hide this error is less than desirable. So, far, though, that's what works.

Otherwise, module is working well. Thank you. Note version 7.x-4.0-alpha9

David

aadityawalawalkar’s picture

Apply this attached patch to fix the notices after submitting quiz (when anonymous users are taking a quiz)

aadityawalawalkar’s picture

Issue summary: View changes

typo in code listing

Sivaji_Ganesh_Jojodae’s picture

Issue summary: View changes
Status: Active » Needs work

I'm able to reproduce this issue. Patch looks good to me. However the below line

+        '!taker' => isset($user->name) ? $user->name : 'Anonymous User',

could be changed to

+        '!taker' => isset($user->name) ? $user->name : variable_get('Anonymous', t('Anonymous User')),

Duplicate issue #1953600: Undefined Property Error.

djdevin’s picture

Status: Needs work » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.