Bug #62686
closedRTE clickenlarge
0%
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
Updated by Stanislas Rolland about 10 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
Updated by Stanislas Rolland about 10 years ago
I am unable to reproduce this issue.
What other static templates are included and in what order?
Updated by Stanislas Rolland about 10 years ago
- Status changed from New to Needs Feedback
Updated by Sven Burkert about 10 years ago
- File screen.png screen.png added
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?
Updated by Alexander Opitz almost 10 years ago
- Status changed from Needs Feedback to New
Updated by Stanislas Rolland almost 10 years ago
- Status changed from New to Needs Feedback
Do you have this error on all images with Click-enlarge set, or only on some images?
Updated by Stanislas Rolland almost 10 years ago
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.
Updated by Stanislas Rolland almost 10 years ago
I am unable to reproduce this error.
Updated by Sven Burkert almost 10 years ago
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" />
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to New
- Assignee set to Stanislas Rolland
Updated by Riccardo De Contardi almost 9 years ago
- 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