Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey everyone,
When using the "Masquerade as Anonymous" link found in the Navigation menu block, I'm getting the following error message:
Notice: Undefined property: stdClass::$name in masquerade_block_1() (line 418 of /home/sandboxes/sandbox10/public_html/sites/all/modules/contrib/masquerade/masquerade.module).
The error message persists on all site pages while I'm masquerading as an anonymous user. Any ideas as to the cause and how to fix?
--Ben
Comments
Comment #1
BenK CreditAttribution: BenK commentedComment #2
deekayen CreditAttribution: deekayen commentedJust guessing, but I bet porting this other patch will fix it.
#822098: use theme_username() in messages to users
Comment #3
mikedotexe CreditAttribution: mikedotexe at Untold Studio commentedWe've noticed this as well. It seems like masquerade will run through the call (at least in our case) a few times. So it was safe to say
This may not work in all cases, but ironed it out for us.