Project

General

Profile

Actions

Bug #59402

closed

Image uid in Frontend is always equal number images

Added by David Meister over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-06-07
Due date:
% Done:

0%

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

Description

I can not display an image in the frontend.
The function getFileObject() always takes a wrong uid for an image, so I get the error "no file found for given uid."

The images are correctly displayed in the backend but not in the frontend.
If I echo the uid in ResourceFactory/getFileObject() it prints out "1" if there is one image, two times "2" if there are two images and so on.
So the uid correlates with the number of images added in the backend.

Typo3 6.2.3 is set up freshly and only text content and template is inserted (with no image handling in typoscript)

Actions #1

Updated by Markus Klein over 10 years ago

  • Status changed from New to Needs Feedback

Please post your code.

Actions #2

Updated by David Meister over 10 years ago

I found the error.
CSS Styled Content TYPO3 v6.1 was set instead of CSS Styled Content.
But the behaviour and the error message is not clear for this reason. For what are these "old" styled content templates still in the latest version?
It's confusing that such an error occurs when selecting it.

Actions #3

Updated by Markus Klein over 10 years ago

  • Status changed from Needs Feedback to Closed

These old templates are there to create the HTML output of those old version, which might be handy if you upgrade older sites.
But they only work if you enable [FE][activateContentAdapter] in the Install Tool.

Actions

Also available in: Atom PDF