Bug #21200
closedGIFBUILDER triggers warning <"GIFBUILDER" is not a file (uploads/.. resource).> in admin panel
0%
Description
When using IMAGE or IMG_RESOURCE with file = GIFBUILDER it results in warning <"GIFBUILDER" is not a file (uploads/.. resource).> in Admin Panel / Typoscript.
In tslib_content::getImgResource there is line
$theImage = $GLOBALS['TSFE']->tmpl->getFileName($file);
it does not make sense when $file == 'GIFBUILDER' it slows down parsing as we try to find out nonexistent file 'GIFBUILDER'
(issue imported from #M12142)
Files
Updated by Oliver Hader about 15 years ago
Can you please provide the full TypoScript that resulted in this warning?
Updated by Vladimir Podkovanov about 15 years ago
Hi, for example such conf
lib.content = IMAGE
lib.content {
file = GIFBUILDER
file {
XY = [10.w],[10.h]
10 = TEXT
10 {
offset = 0,15
text = TEST
fontSize = 21
fontColor = #000000
}
}
}
produces that warning, I've uploaded screenshot
Updated by Vladimir Podkovanov about 15 years ago
UPDATE
Just double checked again – the warning being produced only in ver. 4.3!
it occures in this part, when var $file contains string 'GIFBUILDER':
class.tslib_content.php:
...
$theImage = $GLOBALS['TSFE']->tmpl->getFileName($file);
// If image was processed by GIFBUILDER:
// ($imageResource indicates that it was processed the regular way)
if (!isset($imageResource) && $theImage) {
$gifCreator = t3lib_div::makeInstance('tslib_gifbuilder');
/* @var $gifCreator tslib_gifbuilder */
$gifCreator->init();
...
Updated by Georg Kühnberger over 14 years ago
I can confirm the problem description and effects.
georg
Updated by Jo Hasenau over 14 years ago
Same here.
Looking at the admin panel when using graphical headers and/or teasers made by the ICEpack shows lots of these errors in 4.3.4
Updated by David Denicolo' almost 14 years ago
I can confirm the problem description and effects on 4.4.4
Updated by Patrick Broens over 13 years ago
This problem is still there in version 4.5.2
Updated by David Bruchmann over 10 years ago
- Target version deleted (
0)
This problem is still there in version 4.7.17
Updated by Mathias Schreiber almost 10 years ago
- Description updated (diff)
- Category deleted (
Communication) - Target version set to 7.2 (Frontend)
- Is Regression set to No
Updated by Riccardo De Contardi over 9 years ago
- File cattura.png cattura.png added
- Status changed from New to Closed
I close this ticket as I cannot reproduce it on TYPO3 6.2.12 (fresh installation):
My test:
TS Setup:
page.config.admPanel = 1 # Default PAGE object: page = PAGE page.10 < styles.content.get page.5 = IMAGE page.5 { file = GIFBUILDER file { XY = [10.w],[10.h] 10 = TEXT 10 { offset = 0,15 text = TEST fontSize = 21 fontColor = #000000 } }
TSConfig (admin user):
admPanel=1 admPanel.hide=0
Result: see attached screenshot ("TEST" is the gifbuilder image).
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.