Bug #98152
closedPHP Warning: file_exists(): open_basedir restriction in effect.
100%
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