Project

General

Profile

Actions

Bug #24875

closed

Thumbnails of PDF files not working anymore

Added by Steffen Gebert over 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2011-01-28
Due date:
% Done:

0%

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

Description

A user complained that PDFs get no thumbnails anymore in FE - after some tests in BE, I would say they work there. I can find lots of log entries similar to this one:

25-Jan-2011 18:22:47] PHP Warning:  filemtime(): stat failed for uploads/media/Blabla_3.2010_Final.pdf120 in t3lib/thumbs.php on line 166
[25-Jan-2011 18:22:47] PHP Stack trace:
[25-Jan-2011 18:22:47] PHP   1. {main}() t3lib/thumbs.php:0
[25-Jan-2011 18:22:47] PHP   2. SC_t3lib_thumbs->init() t3lib/thumbs.php:421
[25-Jan-2011 18:22:47] PHP   3. filemtime() t3lib/thumbs.php:166
[25-Jan-2011 18:22:47] PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'TYPO3 Fatal Error: Image file uploads/media/Blabla_3.2010_Final.pdf120' does not exist and/or MD5 checksum did not match.' in t3lib/thumbs.php:185
Stack trace:
#0 t3lib/thumbs.php(421): SC_t3lib_thumbs->init()
#1 {main}
  thrown in t3lib/thumbs.php on line 185

All entries have in common: File *.pdf120 does not exist. Seems like parameters file name and width(?) are not separated by space or simlar bug.

This output is based on #24803 applied, which adds the file name to the Exception message.
(issue imported from #M17386)

Actions #1

Updated by Sascha no-lastname-given over 13 years ago

File links (content element) with PDF and layout1...3 works for me. Thumbnail gets generated in FE.

Actions #2

Updated by Steffen Gebert over 13 years ago

This error happens with the File Downloads CE using an old CSC TypoScript for the rendering.

Nevertheless, I'm wondering, why the problem occurs now. Think it worked with 4.4. Does anybody see a problem with this TS?


# Austausch von uploads aus css_styled_content gegen das historische styles.content

styles.content.uploads = TEXT
styles.content.uploads {
 current = 1
 override.filelist.field = select_key
 trim = 1
 required = 1
 split {
  token = ,
  cObjNum = 1
  1.current = 1
  1.trim =1
  1.filelink {
   path = uploads/media/
   path.override.field = select_key
   path.override.listNum = 0
   path.override.listNum.splitChar = |
   size = 1
   size.wrap = {$styles.content.uploads.stdWrap}
   size.innerWrap =
   size.innerWrap2 = {$styles.content.uploads.sizeWrap}
   size.fontTag = {$styles.content.uploads.wrap}
   size.bytes = 1
   size.bytes.labels =  | KB| MB| GB
   size.if.isTrue.field = filelink_size
   labelStdWrap.fontTag = {$styles.content.uploads.labelWrap}
   file.fontTag = {$styles.content.uploads.wrap}
   file.wrap = {$styles.content.uploads.stdWrap}
   file.postCObject = TEXT
   file.postCObject {
    field = imagecaption
    required = 1
    if.directReturn = {$styles.content.uploads.descriptionWrap}
    wrap = <br />{$styles.content.uploads.descriptionWrap}
    listNum.stdWrap.data = register : SPLIT_COUNT
    listNum.splitChar = 10
   }
   stdWrap.wrap = | <br>
   target = _blank
   jumpurl = {$styles.content.uploads.jumpurl}
   jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
   jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
   removePrependedNumbers = 1
   icon_thumbSize = 120
  }
 }
 tableStyle < styles.content.tableStyle
}

styles.content.uploads_icons < styles.content.uploads
styles.content.uploads_icons.split.1.filelink {
 icon = 1
 icon.wrap2 = |
 icon_link = 1
}

styles.content.uploads_imgicons < styles.content.uploads_icons
styles.content.uploads_imgicons.split.1.filelink {
 icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
 icon.wrap = {$_blackBorderWrap}
}

# tablestyle
styles.content.tableStyle {
 align.field = {$styles.content.tableStyle.alignField}
 border.field = table_border
 cellspacing.field = table_cellspacing
# cellpadding = 1
   cellpadding = 0
# cellpadding.override.field = table_cellpadding

 color.field = table_bgColor
 color.default = {$styles.content.tableStyle.color}
 color.1 = {$styles.content.tableStyle.color1}
 color.2 = {$styles.content.tableStyle.color2}
}

# CType: uploads
tt_content.uploads >
tt_content.uploads = COA
tt_content.uploads {
 10 = < lib.stdheader
 20 = CASE
 20 {
  setCurrent.field = media
  key.field = layout
  default < styles.content.uploads
  1 < styles.content.uploads_icons
  2 < styles.content.uploads_imgicons
  3 < styles.content.uploads_imgicons
  3.split.1.filelink.icon.wrap >
 }

 20.stdWrap.editIcons = tt_content:media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding],filelink_size,imagecaption
 20.stdWrap.editIcons.iconTitle=Edit filelist
}

tt_content {
    uploads.20.1 {
        split.1.filelink.size.wrap = <td class="csc-uploads-fileSize"> | </td>
        split.1.filelink.size.innerWrap = 
        split.1.filelink.icon.wrap2 = <td class="csc-uploads-icon">|</td>
        split.1.filelink.file.wrap = <td class="csc-uploads-fileName"><strong> | </strong></td> 
        split.1.filelink.file.postCObject.if.directReturn = 1
        split.1.filelink.file.postCObject.wrap = &nbsp;-&nbsp; |
        split.1.filelink.labelStdWrap.fontTag =
        split.1.filelink.size.innerWrap2 = 
        split.1.filelink.stdWrap.wrap = <tr class="tr-even"> | </tr>
        split.2 < .split.1
        split.2.filelink.stdWrap.wrap = <tr class="tr-odd"> | </tr>
        split.cObjNum = |*|1 || 2|*| 
    }
    uploads.20.default < .uploads.20.1
    uploads.20.2 < .uploads.20.1
    uploads.20.3 < .uploads.20.1
}

tt_content.uploads.20.default.tableStyle.params = width="100%" class="csc-uploads csc-uploads-0" 
tt_content.uploads.20.1.tableStyle.params = width="100%" class="csc-uploads csc-uploads-1" 
tt_content.uploads.20.2.tableStyle.params = width="100%" class="csc-uploads csc-uploads-2" 
tt_content.uploads.20.3.tableStyle.params = width="100%" class="csc-uploads csc-uploads-3" 

# Layout 2 und 3 haben Vorschaubilder
tt_content.uploads.20.2.split.1.filelink.icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
tt_content.uploads.20.2.split.2.filelink.icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
tt_content.uploads.20.3.split.1.filelink.icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
tt_content.uploads.20.3.split.2.filelink.icon_image_ext_list.data = global: TYPO3_CONF_VARS|GFX|imagefile_ext
Actions #3

Updated by Steffen Gebert almost 13 years ago

  • Category changed from Communication to Image Cropping
  • Status changed from New to Rejected
  • Target version deleted (0)
Actions

Also available in: Atom PDF