Project

General

Profile

Actions

Bug #94077

closed

PathUtility.php PHP Warning: is_file(): open_basedir restriction in effect

Added by Wittkiel Gruppe almost 3 years ago. Updated over 2 years ago.

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

0%

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

Description

Since #93048 there is a new condition in /core/Classes/Utility/PathUtility.php line 54:

elseif (file_exists(Environment::getPublicPath() . '/' . $targetPath))

This check triggers a warning like:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/example.com/web/../typo3conf/ext/dce/Resources/Public/JavaScript/Contrib/codemirror/lib/codemirror.css?1620224059) is not within the allowed path[...]

Easy fix would be to suppress warning with "@file_exists" like in other parts.

Non-composer
TYPO3: 11.2
PHP: 7.4


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #93048: Introduce URL rewrites for Backend linksClosedOliver Bartsch2020-12-10

Actions
Actions #1

Updated by Georg Ringer almost 3 years ago

  • Related to Feature #93048: Introduce URL rewrites for Backend links added
Actions #2

Updated by Wittkiel Gruppe over 2 years ago

  • Target version set to 11 LTS
Actions #3

Updated by Wittkiel Gruppe over 2 years ago

Since #95437 the culprit line is gone. Issue can be closed.

Actions #4

Updated by Benni Mack over 2 years ago

  • Target version changed from 11 LTS to Candidate for patchlevel
Actions #5

Updated by Riccardo De Contardi over 2 years ago

  • Status changed from New to Closed
  • Target version deleted (Candidate for patchlevel)

Solved with #95437

If you think that this is the wrong decision, please reopen it or ping me and I'll do.

Thank you.

Actions

Also available in: Atom PDF