You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to @giancarlobi testing Drupal 9.3.0, a bug was discovered where ADOs with no media can cause something like the following error:
A notice: Notice: Undefined variable: embargo_context in Drupal\format_strawberryfield\Plugin\Field\FieldFormatter\StrawberryMediaFormatter->viewElements() (line 244 of /var/www/archipelago/web/modules/contrib/format_strawberryfield/src/Plugin/Field/FieldFormatter/StrawberryMediaFormatter.php) #0 /var/www/archipelago/web/core/includes/bootstrap.inc(346): _d
12:53
Then error: TypeError: Argument 3 passed to Drupal\Core\Cache\Cache::mergeContexts() must be of the type array, null given, called in /var/www/archipelago/web/modules/contrib/format_strawberryfield/src/Plugin/Field/FieldFormatter/StrawberryMediaFormatter.php on line 244 in Drupal\Core\Cache\Cache::mergeContexts() (line 29 of /var/www/archipelago/web/core/lib/Drupal/Core/Cache/Cache.php) #0 /var/www/archipelago/web/modules/contrib/format_strawberryfield/src/Plugin/Field/FieldFormatter/StrawberryMediaFormatter.php(244): Drupal\Core\Cache\Cache::mergeContexts() #1 /var/www/archipelago/web/core/lib/Drupal/Core/Field/FormatterBase.php(89): Drupal\format_strawberryfield\Plugin\Field\FieldFormatter\StrawberryMediaFormatter->viewElements() #2 /var/www/archipelago/web/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php(263): Drupal\Core\Field\FormatterBase->view()
@DiegoPino has already identified the likely culprit here:
What?
Thanks to @giancarlobi testing Drupal 9.3.0, a bug was discovered where ADOs with no media can cause something like the following error:
@DiegoPino has already identified the likely culprit here:
format_strawberryfield/src/Plugin/Field/FieldFormatter/StrawberryMediaFormatter.php
Line 207 in 1d2e51d
The text was updated successfully, but these errors were encountered: