PHP 8.1 Warning

Created on 11 July 2022, over 2 years ago
Updated 3 May 2023, over 1 year ago

After enabling the Gravatar Plugin in Avatar Settings I see the following:

Warning: Undefined array key "maximum_rating" in Drupal\avatars_gravatar\Plugin\AvatarGenerator\Gravatar->buildConfigurationForm() (line 69 of /home/sitename/public_html/modules/contrib/avatars/avatars_gravatar/src/Plugin/AvatarGenerator/Gravatar.php).

I also noticed that Maximum content rating cannot be set to unrestricted. Is this by design?

After setting the rating I still see the warning, however after a cache clear it seems fine.

After enabling Gravatar generator I see the following:
Warning: Undefined array key "type" in Drupal\avatars_gravatar\Plugin\AvatarGenerator\GravatarGenerator->buildConfigurationForm() (line 61 of /home/sitename/public_html/modules/contrib/avatars/avatars_gravatar/src/Plugin/AvatarGenerator/GravatarGenerator.php)

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States Christopher Riley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024