Bug #61635
closedClick-enlarge images with missing data-htmlarea-file-uid lead to error in rendering the page
0%
Description
We noticed the bug when editing a big table with embedded images using the RTE and the source itself. Somehow the data-htmlare-file-uid and file-table fields were missing (editor stripping it in some cases?) and afterwards the page did not render anymore in the frontend with the error.
Fatal error: Call to a member function getUid() on a non-object in typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 1495
Removing the clickenlare="1" or adding the data-htmlarea-file-uid and table again, fix the issue.
HTML Source, working image with click enlarge:
<img src="fileadmin/_processed_/image.png" width="100" height="149" data-htmlarea-file-uid="1872377" data-htmlarea-file-table="sys_file" title="" alt="" data-htmlarea-clickenlarge="1" />
not working image leading to the getUid fatal error:
<img src="fileadmin/_processed_/image.png" width="100" height="150" title="" alt="" data-htmlarea-clickenlarge="1"/>