Bug #62686
closed
Added by Sven Burkert about 10 years ago.
Updated almost 9 years ago.
Category:
RTE (rtehtmlarea + ckeditor)
Description
After inserting an image in RTE and adding the static template "Clickenlarge rendering (rtehtmlarea)", I got this error in FE:
Fatal error: Call to a member function getUid() on a non-object in \typo3\sysext\frontend\Classes\ContentObject\ContentObjectRenderer.php on line 1493
Files
- Category set to RTE (rtehtmlarea + ckeditor)
I am unable to reproduce this issue.
What other static templates are included and in what order?
- Status changed from New to Needs Feedback
CSS Styled Content (css_styled_content)
Clickenlarge Rendering (rtehtmlarea)
Bootstrap Package (bootstrap_package)
Please have a look in screen.png: You did insert the image in a textarea with RTE (1) and checked option "Click-enlarge" (2), right?
- Status changed from Needs Feedback to New
- Status changed from New to Needs Feedback
Do you have this error on all images with Click-enlarge set, or only on some images?
Please try to set
lib.parseFunc_RTE.tags.img.postUserFunc = TYPO3\CMS\Rtehtmlarea\Controller\CustomAttributeController->render_clickenlarge
(on a single line) in your TS template.
I am unable to reproduce this error.
Do you have this error on all images with Click-enlarge set, or only on some images?
You're right, I now realized that I have this problem only with some images. To reproduce the error, please test it with the ext. "introduction", you find the directory "fileadmin/introduction/images/about/" there. When using image "team-t3board10.jpg", it works fine. When using image "TYPO3-logo.png", I get the error described above, but only, when inserting the image as "New magic image".
When using the "Toogle text mode" button in RTE, I see that some attributes are missing:
<img src="http://test62.local/fileadmin/_processed_/csm_typo3-logo_22ab19e6d1.png" data-htmlarea-clickenlarge="1" height="114" width="272" /></p>
<img src="http://test62.local/fileadmin/introduction/images/about/team-t3board10.jpg" data-htmlarea-clickenlarge="1" data-htmlarea-file-uid="3" data-htmlarea-file-table="sys_file" height="50" width="50" />
- Status changed from Needs Feedback to New
- Assignee set to Stanislas Rolland
- Status changed from New to Closed
I think I can close this as a duplicate of #61635; please continue the discussion there; I've added a reference there to keep track of this issue.
If you think that this is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Thank you
Also available in: Atom
PDF