Hi there,
I have a webform that gets some values autofilled when its visited by an authenticated user with a particular profile. When the form is visited by anonymous users or users without that profile, all fields should be empty and no error expected. But I'm getting this error message when visiting the form as anonymous:

Notice: Undefined property: stdClass::$mail a user_tokens() (line 93 of /var/www/app/www/barcelonasostenible/modules/user/user.tokens.inc).

I'm using Token 7.x-1.6 with Drupal 7.50 and PHP 5.5.9-1ubuntu4.16.

If this is not the place to inform this issue, please, point me the correct place.

Thanks for all the good work!!


emi_bcn created an issue.

entropea’s picture

Also getting the error:-

Notice: Undefined property: stdClass::$mail in user_tokens() (line 93 of /var/www/modules/user/user.tokens.inc).

Any help to identify root cause would be appreciated.

prashantgajare’s picture

Which version of webform module needs to be used to replicate this error?