Actions
Bug #79218
closedResourceCompressor.php PHP Warning: is_file(): open_basedir restriction in effect
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-01-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
When open_basedir is used, every backend request causes multiple errors in sys_log like this:
Core: Error handler (BE): PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/example.com/web/../typo3temp/assets/compressed/xtheme-t3skin-70db1845fe267782b0d773e08dad338b.css) is not within the allowed path(s): (/var/www/clients/client1/web1/web:/var/www/clients/client1/web1/private:/var/www/clients/client1/web1/tmp:/var/www/example.com/web:/srv/www/example.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web1/web/typo3_src-8.7.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 440
Bug introduced with patch for #78803. Easy fix would be to suppress warning with "@" in line 440 in ResourceCompressor.php:
// if the file is an absolute reference within the docRoot $absolutePath = $docRoot . '/' . $fileNameWithoutSlash; if (@is_file($absolutePath)) { ... }
Operating system: Unix
TYPO3: 8.7.0
PHP: 7.0.15
Updated by Wittkiel Gruppe almost 8 years ago
- Target version changed from 8.6 to 8 LTS
Updated by Markus Klein over 7 years ago
- Status changed from New to Closed
- Target version deleted (
8 LTS)
Thanks for the report. Will be fixed with #81024
Updated by Markus Klein over 7 years ago
- Has duplicate Bug #81024: getFilenameFromMainDir() triggers PHP Warnings open_basedir added
Actions