Problem/Motivation
To reproduce the error:
On a vanilla drupal, with the Responsive image module enabled
- Create a responsive image style
- Breakpoint group: Bartik
- 1x wide > Type: select a single image > Image style: Large
- 1x narrow > Type: Do not use this breakpoint
- 1x mobile > Type: Do not use this breakpoint
- Fallback image style: - empty image -
- Modify the Article display to use format Responsive image for the image field. Do NOT select a responsive image style.
- Create an Article node with 1 image
- Display the image
Now this error is displayed: Fatal error: Call to a member function getBreakpointGroup() on a non-object in /.../core/modules/responsive_image/responsive_image.module on line 156
Two ways to get rid of the error : Select a responsive image style in Structure > Content types > Article > Manage display. Or, select a different Fallback image style (other than - empty image -) in Configuration > Responsive image styles > your style > edit
Proposed resolution
Set a default Responsible image style when selecting Responsible image as field format.
Remaining tasks
to be determined
User interface changes
none
API changes
none
Data model changes
none