- Issue created by @Juanjol
When accessing the "Image styles usage" report provided by the xray_audit
module, a 404 error occurs if the responsive_image
module is disabled. Additionally, the following error is logged in the watchdog log:
The "responsive_image_style" entity type does not exist.
This suggests that the module does not correctly check for the existence of the responsive_image
entity type before attempting to load it, leading to a fatal error in environments where the module is not enabled.
responsive_image
module is disabled./admin/reports/xray-audit/content-metric/image-styles-usage
Update the report builder logic to check if the responsive_image
module is enabled before querying or interacting with the responsive_image_style
entity type. This can be done using \Drupal::moduleHandler()->moduleExists('responsive_image')
and conditionally adjusting the logic accordingly.
responsive_image
is disabled.No user interface changes expected.
No API changes expected.
No data model changes expected.
Active
1.6
Code