Project

General

Profile

Actions

Bug #34162

closed

Merging CSS/JS files with absRefPrefix set causes PHP error

Added by Henrik Møller Rasmussen about 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2012-02-21
Due date:
% Done:

0%

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

Description

When absRefPrefix is set to full url of the site - could be http://domain.com/home/, the t3lib_Compressor causes an PHP error when trying to do filemtime and filesize on the file.

TSRef suggests setting absRefPrefix to full url:
...
If you're working on a server where you have both internal and external access, you might do yourself a favor and set the absRefPrefix to the url and path of you site, e.g. http://www.typo3.com/.
...

The following patch fixes this:

292c292,293
< $filesToInclude[$key] = $this->retrieveExternalFile($filename);
---

$filename = $this->retrieveExternalFile($filename);
$filesToInclude[$key] = $filename;

294a296

296a299


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #31239: compressor doesn't resolves files linked with domainClosed2011-10-24

Actions
Is duplicate of TYPO3 Core - Bug #32517: t3lib_compressor set local filename to remote uri for external resourcesClosed2011-12-13

Actions
Actions #1

Updated by Stefan Galinski about 12 years ago

Sounds like you already solved this issue. Can you provide a patch and open a new review request? Please check also this report #31239.

http://wiki.typo3.org/Contribution_Walkthrough_Tutorials

Actions #2

Updated by Markus Klein about 12 years ago

Already under review in https://review.typo3.org/7127

Actions #3

Updated by Anonymous about 12 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF