- 🇪🇨Ecuador jwilson3
It may be Drupal 10 compatible, but it's not php 8.1 compatible. There are two errors:
Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\Component\Utility\Xss::filter() (line 69 of core/lib/Drupal/Component/Utility/Xss.php). Drupal\Component\Utility\Xss::filter(NULL, Array) (Line: 123) Drupal\Component\Utility\Xss::filterAdmin(NULL) (Line: 181) Drupal\google_translator\Plugin\Block\GoogleTranslator->attachDisclaimer(Array) (Line: 146) Drupal\google_translator\Plugin\Block\GoogleTranslator->build() (Line: 138)
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Component\Utility\Unicode::validateUtf8() (line 395 of core/lib/Drupal/Component/Utility/Unicode.php). Drupal\Component\Utility\Unicode::validateUtf8(NULL) (Line: 65) Drupal\Component\Utility\Xss::filter(NULL, Array) (Line: 123) Drupal\Component\Utility\Xss::filterAdmin(NULL) (Line: 181) Drupal\google_translator\Plugin\Block\GoogleTranslator->attachDisclaimer(Array) (Line: 146) Drupal\google_translator\Plugin\Block\GoogleTranslator->build() (Line: 138)
Probably need to do some testing for empty text before passing to XSS detection.
- 🇺🇸United States jenna.tollerson Atlanta, Georgia, USA
@jwilson3 do you have steps to reproduce? I'd like to clear the warnings but I cannot induce them in my local.
- First commit to issue fork.
- Status changed to Fixed
9 months ago 10:09pm 19 March 2024 - 🇺🇸United States jenna.tollerson Atlanta, Georgia, USA
Actually, if these warnings are still appearing, please open a new issue with steps to reproduce. Thank you!
Automatically closed - issue fixed for 2 weeks with no activity.