Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Our slice show which works in previous releases, is throwing this error after we have migrated to 8.x-2.2:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function buildUri() on null in Drupal\slick_views\Plugin\views\style\SlickViewsBase->buildElements() (line 181 of modules/contrib/slick_views/src/Plugin/views/style/SlickViewsBase.php).
it seems that thumbnail's rendered #image_style is set to empty and hence escape the isset check.
Comment | File | Size | Author |
---|---|---|---|
#5 | slick_views-empty-thumbnail-style-3114885-5.patch | 1.09 KB | theterencechan |
Comments
Comment #2
gausarts CreditAttribution: gausarts commentedYou are right. Thank you!
We should add a check for empty thumbnail image style.
Temporary solution is adding an image style. Will that possible at your end?
Comment #3
gausarts CreditAttribution: gausarts commentedThis last commit was actually improvement by checking empty image item:
https://git.drupalcode.org/project/slick_views/commit/87edb1d#36191f4194...
Apparently still needs checking the thumbnail style, too.
Comment #4
theterencechan CreditAttribution: theterencechan commentedIn our case we only show the dots and don't display thumbnails. the latest commit still throws errors.
Comment #5
theterencechan CreditAttribution: theterencechan commentedComment #6
gausarts CreditAttribution: gausarts commentedThanks! We might need to respect both scenarios, with or without image style. Not rely on one and negate another.
At older version neglecting image style.
Comment #8
gausarts CreditAttribution: gausarts commentedCommitted with minor changes as described above. Also removed no-longer relevant settings since they are already moved to SlickManager.
Thank you for contribution!