Project

General

Profile

Actions

Bug #21200

closed

GIFBUILDER triggers warning <"GIFBUILDER" is not a file (uploads/.. resource).> in admin panel

Added by Vladimir Podkovanov over 14 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2009-10-07
Due date:
% Done:

0%

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

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

1.jpg (10.1 KB) 1.jpg Administrator Admin, 2009-10-07 23:23
cattura.png (42.1 KB) cattura.png Riccardo De Contardi, 2015-04-30 11:19
Actions #1

Updated by Oliver Hader over 14 years ago

Can you please provide the full TypoScript that resulted in this warning?

Actions #2

Updated by Vladimir Podkovanov over 14 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

Actions #3

Updated by Vladimir Podkovanov over 14 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();
...

Actions #4

Updated by Georg Kühnberger almost 14 years ago

I can confirm the problem description and effects.
georg

Actions #5

Updated by Jo Hasenau almost 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

Actions #6

Updated by David Denicolo' over 13 years ago

I can confirm the problem description and effects on 4.4.4

Actions #7

Updated by Patrick Broens about 13 years ago

This problem is still there in version 4.5.2

Actions #8

Updated by David Bruchmann about 10 years ago

  • Target version deleted (0)

This problem is still there in version 4.7.17

Actions #9

Updated by Mathias Schreiber over 9 years ago

  • Description updated (diff)
  • Category deleted (Communication)
  • Target version set to 7.2 (Frontend)
  • Is Regression set to No
Actions #10

Updated by Riccardo De Contardi about 9 years ago

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.

Actions

Also available in: Atom PDF