Project

General

Profile

Actions

Bug #25303

closed

js/iecompatibility.js inclusion triggers compressor bug

Added by Daniel Minder about 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When the linkvalidator modfunc is shown via Web-Info the log is filled with:

Core: Error handler (BE): PHP Warning: filesize(): stat failed for /var/www/conet/htdocs/typo3/atibility.js in /var/www/conet/htdocs/typo3_src-4.5.2/t3lib/class.t3lib_compressor.php line 342

In linkvalidator the BACK_PATH is set correctly. It also adds 3 JS files that are correctly compressed.

The problem lies in the template lib. linkvalidator creates an instance of template and calls setModuleTemplate(). In this method, $this->loadJavascriptLib('js/iecompatibility.js') is called, which calls $this->pageRenderer->addJsFile($this->backPath . $lib);

BUT the backpath is set only in insertHeaderData() which is for FE only!

Can the loadJavascriptLib() call be removed from setModuleTemplate(). According to my debug out iecompatibility.js was already added to the JS list before. If not, is there a way to automatically detect the backPath if the method is called from BE? A third option would be to add a setBackPath() method which has to be called from each BE module that uses the template lib, but this is not so nice...

(issue imported from #M17918)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #28255: Warning in log when displaying reportClosed2011-07-16

Actions
Actions

Also available in: Atom PDF