[TYPO3-english] BackendUtility::getThumbNail
Christian Tauscher
christian.tauscher at media-distillery.de
Thu Jul 31 10:43:19 CEST 2014
Good morning.
I have writte a backendmodule (up since years).
Now I switch over to 6.1/6.2.
In mod1 the DB-Content along with the image is shown.
The old (4.x) getThumbNail-function call was broken, so I googeled this
call:
return \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbNail(
$this->doc->backPath . 'thumbs.php',
$uploadfolder.$theFile,
'hspace="5" vspace="5" border="1"',
'100x50'
);
all the path is correct so far.
$this->doc->backPath.'thumbs.php' ist the relative path from EXT:mod1
(shuould be OK)
$uploadfolder.$theFile ist the absolute path to te image (Proofed!)
But the image is not rendered: questionmark on grey back with "input
file is not found..." rendered on it
installtool is checked an OK. Image Redering Proofed OK.
Exaple output:
<img vspace="5" hspace="5" border="1" alt="" title="TheTitle"
src="../../../../typo3/thumbs.php?&file=%2Fvar%2Fwww%2Fhtdocs%2Ftmd%2Fkino%2Fuploads%2Ftx_tmdmovie%2FDSIEMV_Poster_Startdatum_1400.jpg&md5sum=e4ef047fd3ce681d240d181cedd8d4fd">
If I call the scr-path in my Browser (reltive to mod1) I get this:
Fatal error: Namespace declaration statement has to be the very first
statement in the script in
/var/www/htdocs/typo3_src-6.1.10/typo3/sysext/backend/Classes/View/ThumbnailView.php
on line 2
No clue what this means or if this helps.
#-(
Can you help in this task?
Thank you a lot,
Christian.
More information about the TYPO3-english
mailing list