Issue Bug Closed

#34162Merging CSS/JS files with absRefPrefix set causes PHP error

Henrik Møller Rasmussen 02/21/12, 20:37 updated 10/24/17, 14:07

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
>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.