Project

General

Profile

Actions

Bug #98152

closed

PHP Warning: file_exists(): open_basedir restriction in effect.

Added by Lina Wolf over 2 years ago. Updated about 2 years ago.

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

100%

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

Description

Is probably related to https://forge.typo3.org/issues/98106 but happens in the backend context.

To 11.5.14 I had the described problem both in frond-end (in a custom Middleware) and backend (in the backend modules of apache-solr-for-typo3/solr:11.5.0-rc-3).

Upon opening any of the backend modules of EXT:solr the following error is displayed:

PHP Warning: file_exists(): open_basedir restriction in effect. File(/typo3conf/ext/solr/Resources/Public/StyleSheets/Backend/InfoModule.css) is not within the allowed path(s): (/home/www/mycompany/sites/) in /home/www/mycompany/sites/include/example.de/relaunch/releases/123.456/web/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2321

The error appears only on out staging and productive system and we were not able to reproduce it locally on ddev. However it happens on each call to the backend modules on the stage server.

Applying change https://review.typo3.org/c/Packages/TYPO3.CMS/+/75368 as patch solved the problem in the frontend but not backend. Attached is a patch with a quick fix that made the Backend modules display in the backend for me without errors. Though this is probably a dirty fix.


Files

FileNotFoundBackend.patch (904 Bytes) FileNotFoundBackend.patch Lina Wolf, 2022-08-16 09:37

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #98106: fix for 97939 creates open_basedir restriction for "relative" absolute urlsClosed2022-08-09

Actions
Related to TYPO3 Core - Bug #98545: file_exists(): open_basedir restriction in effectClosed2022-10-07

Actions
Related to TYPO3 Core - Bug #98330: PHP warning log with EXT-syntax using asset vh in BEClosed2022-09-12

Actions
Actions

Also available in: Atom PDF