I have two roles that are assigned badges. When I switch a user from one role to another I get these three errors:

  • warning: key_exists() [function.key-exists]: The first argument should be either a string or an integer in /home/commst/public_html/sites/all/modules/user_badges/user_badges.module on line 272.
  • warning: Illegal offset type in /home/commst/public_html/sites/all/modules/user_badges/user_badges.module on line 275.
  • warning: key_exists() [function.key-exists]: The first argument should be either a string or an integer in /home/commst/public_html/sites/all/modules/user_badges/user_badges.module on line 284.

I'm not php savvy so not sure how to modify the .module file. Would greatly appreciate any help. Thanks.

Comments

Sphax84’s picture

Same issue for me... Moreover, the associated badge to role doesn't show up... :(

jackc2015’s picture

I get the same warnings on the same lines.

majid.ali’s picture

Same issue here.

shabana.navas’s picture

Status: Active » Closed (fixed)

Fixed in Version 7. Please upgrade to the latest version of userbadges.