[TYPO3] Dam list - problem with edit and other icons

Brian Bendtsen bb at bellevuevej.dk
Wed Jul 2 20:49:10 CEST 2008


Brian Bendtsen skrev:
> Hi, im have posted this in the dam list aswell, but think more might 
> read this one.
> 
> When I log in as a non-admin user and use the DAM Media list module I 
> get these warnings for every picture in the current folder/category:
> 
> Warning: imagecreatefrompng() [function.imagecreatefrompng]: 
> '/var/www/typo3/domain.dk/typo3temp/readPG_f7e9e96016ff69721edaf54c9dbd610a.png' 
> is not a valid PNG file in 
> /var/www/typo3/domain.dk/typo3_src-4.2.0/t3lib/class.t3lib_iconworks.php 
> on line 503
> 
> Warning: imagecolorstotal(): supplied argument is not a valid Image 
> resource in 
> /var/www/typo3/domain.dk/typo3_src-4.2.0/t3lib/class.t3lib_iconworks.php 
> on line 386
> 
> Warning: imagedestroy(): supplied argument is not a valid Image resource 
> in 
> /var/www/typo3/domain.dk/typo3_src-4.2.0/t3lib/class.t3lib_iconworks.php 
> on line 452
> 
> Any idea what causes this?
> 
> Apparently it has something to do with the icons?
> 
> /Brian
Ok, doing some more research I found out that the path to the icons is 
different depending on whether you are logged in as admin or not:

path to edit icon when not logged in as admin:
http://mydomain.dk/typo3temp/icon_21d8613d6b_edit2_i.gif.png

path to edit icon when logged in as admin:
http://mydomain.dk/typo3/sysext/t3skin/icons/gfx/edit2.gif

Whats going on?

/Brian


More information about the TYPO3-english mailing list