Project

General

Profile

Actions

Bug #25306

closed

Thumbs in BE are not displayed but generatedt in typo3temp. BE only shows filename (twice) instead of image

Added by Jrgen Leonhardt over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-11
Due date:
% Done:

0%

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

Description

BE typo3_src-4.5.2/t3lib/thumbs.php only shows filename instead of image
because somehow sometihing/a byte is in the output-buffer whitch makes the image-data invalid.

calling ob_clean() in line 252 like

if($fd = @fopen($this->output,'rb'))    {
ob_clean();
header('Content-type: image/'.$outext);
fpassthru($fd);
fclose($fd);
} else {
$this->errorGif('Read problem!','',$this->output);
}

solves the problem, is a working workaround.

calling

uname a
------------

Linux 2.6.37-default #1 SMP Tue Feb 15 10:33:07 CET 2011 x86_64 x86_64 x86_64 GNU/Linux

rpm q php5
-------------

php5-5.2.12-0.1
(issue imported from #M17925)
Actions #1

Updated by Chris topher over 13 years ago

I guess it's a configuration issue.

Did it work with earlier versions of TYPO3?

Did you migrate to UTF-8 now?
Did you also switch the encoding of the configuration files to UTF-8?
This can cause the byte order mark from one of these files to be in the output buffer. Using UTF-8 without BOM prevents that.

Actions #2

Updated by Steffen Gebert over 13 years ago

I assume you have a white-space in an included file outside of , which is sent to the client.

Actions #3

Updated by Jrgen Leonhardt over 13 years ago

Hi there,

thanks a lot, the problem is solved. It was al line break on the very end of realurl_conf.php after ?>.

Things are hard from time to time.

Regards

Jürgen Leonhardt

Actions #4

Updated by Chris topher over 13 years ago

Closed.

Actions

Also available in: Atom PDF