- טליה שוורץ on January 31, 2023 at 8:33 am #48210
i am getting this error:
‘PHP message: PHP Warning: Invalid argument supplied for foreach() in /home…………display-helper.php on line 76PHP message: PHP Warning: Invalid argument supplied for foreach() in /home…/plugins/buddypress-user-badges/src/handlers/class-badge-display-helper.php on line 76’
why is that?
- טליה שוורץ on January 31, 2023 at 8:33 am #48211
i am using the badges plugin
- Brajesh Singh on February 1, 2023 at 7:47 am #48229
Thank you for reporting the issue.
I am sorry for the inconvenience.
For some reason, one of your user roles is empty causing it. I will release an update to fix the notice.
- טליה שוורץ on February 1, 2023 at 9:24 am #48236
what do u mean in “user roles is empty”?
also thanks, how will i know when realesed?
- Brajesh Singh on February 2, 2023 at 5:40 pm #48249
Please upgrade to 1.2.6. it is fixed.
This happens when some plugin or code disables user roles/removes all roles.
You must be logged in to reply to this topic.