Project

General

Profile

Actions

Bug #62686

closed

RTE clickenlarge

Added by Sven Burkert about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2014-11-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

screen.png (61.5 KB) screen.png Sven Burkert, 2014-11-20 14:54

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #61635: Click-enlarge images with missing data-htmlarea-file-uid lead to error in rendering the pageClosed2014-09-16

Actions
Actions #1

Updated by Stanislas Rolland about 10 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #2

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?

Actions #3

Updated by Stanislas Rolland about 10 years ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Sven Burkert about 10 years ago

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?

Actions #5

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to New
Actions #6

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?

Actions #7

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.

Actions #8

Updated by Stanislas Rolland almost 10 years ago

I am unable to reproduce this error.

Actions #9

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" />

Actions #10

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to New
  • Assignee set to Stanislas Rolland
Actions #11

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

Actions

Also available in: Atom PDF