- Issue created by @pvbergen
- Status changed to Needs review
about 1 year ago 8:26pm 26 November 2023 - Status changed to Fixed
about 1 year ago 10:04pm 26 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Calling Twig function styled_image_url or ResponsiveImageStylesTwigExtension::getStyledImageUrl with an inexisting style name causes the following error:
Error: Call to a member function buildUrl() on null in Drupal\pagedesigner_responsive_images\ResponsiveImageStylesTwigExtension->getStyledImageUrl() (line 143 of modules/contrib/pagedesigner_responsive_images/src/ResponsiveImageStylesTwigExtension.php).
To reduce the risk of fatal errors in production, return the default url if style does not exist.
Review MR
None
ResponsiveImageStylesTwigExtension::getStyledImageUrl will return default image url if style does not exist.
None
Fixed
3.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.