After update to Version 8x-1.10 it crashed my site totally. I use the module inside a paragraph field (paragraphs Version: 8.x-1.10) on Drupal versions 8.7.10 and and 8.8.1 on my start site. It shows only "unexpected error.." and absolutely nothing I've tried helps (clear all known Caches, update db, deactivate und activate, refresh installation,...). After several hours of tests i have to go back to version 8x-1.9. This works (with same restriction which are known here: first load need a refresh to show the content).
The Version which is shown in the version field isn't correct. The lastest possible value to select is 8x-1.9 so i can only select this. Please move to the correct version if possible.

Comments

uwe_mue created an issue. See original summary.

widdlewabbit’s picture

I ran into a similar issue with version 8x-1.10, giving me an unexpected error on all the pages I was using this as well. Sounds similar to yours. You can get the exact error message by changing the error messages settings under Administration -> Configuration -> Development -> Logging and Errors to 'All messages, with backtrace information'.
The error for me was:

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'file' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 227 of core/lib/Drupal/Core/Entity/EntityBase.php).

I tracked it down to the use of toUrl(), line 289 of src/Plugin/Field/FieldFormatter/ImagefieldSlideshowFieldFormatter.php where it seems like it should have been using createFileUrl(FALSE) instead as per this issue: https://www.drupal.org/project/drupal/issues/2402533

If this is the same issue I expect that the error will only occur if there is no image style applied to the images.
If you can advise I can try to upload the patch I made for you?

pauljb’s picture

Same issue.

Error log:

[Tue Jan 07 13:40:34.200945 2020] [proxy_fcgi:error] [pid 25057] [client 0.0.0.0:0] AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\\Core\\Entity\\Exception\\UndefinedLinkTemplateException: "No link template 'canonical' found for the 'file' entity type" at */public_html/demo/core/lib/Drupal/Core/Entity/EntityBase.php line 227', referer: */admin/structure/block/block-content/manage/foto_banner/display

widdlewabbit’s picture

StatusFileSize
new670 bytes

I ran into this as well. For me it was originating in:

src/Plugin/Field/FieldFormatter/ImagefieldSlideshowFieldFormatter.php

Looks like the url() method was depreciated in the Entity Interface, so the code was modified to use toUrl(), however the url() method for the file entity was depreciated separately in this issue: https://www.drupal.org/project/drupal/issues/2402533
You can see the API changes via the issue link.

Basically for file entities the createFileUrl() method should be used instead as it does not require a canonical link template.
My patch attached.

avpaderno’s picture

Issue tags: -Version 8x-1.10 crash site
heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu
Status: Active » Needs review
Issue tags: +ContributionWeekend2021

heykarthikwithu’s picture

Version: 8.x-1.9 » 8.x-1.x-dev
Assigned: heykarthikwithu » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.