Bug #102608
open"Show in all view" leads to not found image.
0%
Description
Hi
Frontend is throwing "No file reference (sys_file_reference) was found for given UID: "***"" on translations of a record with a disabled/hidden image when is set as "Show in all views" or "Show only in list view".
Steps to replicate:
- Create a record of an extension that has an image field like georgringer/news or derhansen/sf_event_mgt, and add a featured image to it.
- Localize the record so each image gets localized too.
- Edit one of the localized records, and set one of the images as "Show in all views" or "Show only in list view".
- Go the the default language and disable/hide that image you just set as "Show in all views" in the previous step.
- Go to the frontend and check the localized frontend version of the record and the error will be thrown.
I have tested it in a new clean installation of Typo3 11 in multiple extensions (sf_event_mgt, news and others from my own) they all throw this error.
I tried with php 8.1 and 7.4 and got the same result.
Updated by Riccardo De Contardi 18 days ago
I tested with both TYPO3 11.5.35 and 12.4.14 and ext:news 11.4.1
- I used "show in all views"
- the news plugin in the frontend has been configured as "News article list (incl.detail view)"
and these are the results:
TYPO3 11.5.35
The issue is still present
TYPO3 12.4.14
There is no exception
- on the default language version of the news, the hidden image remains hidden on both list and detail view
- on the localized version of the news, the hidden image is visible on both list and detail view
So the behavior seems correct now