Issue Bug Closed

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

Jrgen Leonhardt 03/11/11, 07:00 updated 03/14/11, 14:24

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 ×86_64 x86_64 x86_64 GNU/Linux

rpm -q php5
———————
php5-5.2.12-0.1
(issue imported from #M17925)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.