Bug #21200
closed
GIFBUILDER triggers warning <"GIFBUILDER" is not a file (uploads/.. resource).> in admin panel
Added by Vladimir Podkovanov about 15 years ago.
Updated over 9 years ago.
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
Can you please provide the full TypoScript that resulted in this warning?
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
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();
...
I can confirm the problem description and effects.
georg
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
I can confirm the problem description and effects on 4.4.4
This problem is still there in version 4.5.2
- Target version deleted (
0)
This problem is still there in version 4.7.17
- Description updated (diff)
- Category deleted (
Communication)
- Target version set to 7.2 (Frontend)
- Is Regression set to No
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.
Also available in: Atom
PDF