Bug #85547
closedExtension Manager not working after update to 8.7.17
100%
Description
Extension manager throws warning and a fatal error.
Warning: Uncaught TYPO3\CMS\Core\Error\Exception: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Libraries/symfony-process.phar/vendor/autoload.php) is not within the allowed path(s): (/var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxxxdomainxxxxx.com/web:/srv/www/xxxxxdomainxxxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom:/var/www/typo3) in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/IO/PharStreamWrapper.php line 474 in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/Error/ErrorHandler.php:107 Stack trace: #0 [internal function]: TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'file_exists(): ...', '/var/www/client...', 474, Array) #1 /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/co in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/Error/ErrorHandler.php on line 107
Fatal error: TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::{closure}(): Failed opening required 'phar:///var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/../../../Libraries/symfony-process.phar/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/autoload.php on line 26
After downgrading to 8.7.16 the extension manager is working again.
Updated by Oliver Hader over 6 years ago
- Status changed from New to Needs Feedback
How does your open_basedir restriction configuration look like?
Updated by Stephan Großberndt over 6 years ago
According to the error message its
open_basedir = /var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxxxdomainxxxxx.com/web:/srv/www/xxxxxdomainxxxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom:/var/www/typo3
The question is why
/var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Libraries/symfony-process.phar/vendor/autoload.php
which is the resolved path for
phar:///var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/../../../Libraries/symfony-process.phar/vendor/autoload.php
is not part of
/var/www/clients/client3/web566/web
Updated by Christian Riesche over 6 years ago
After updating to latest 7.6.30 I experienced those fatals.
phpunit Extension in version 5.3.5 installed.
Warning: Uncaught TYPO3\CMS\Core\IO\PharStreamWrapperException: Executing phar:///var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar/bootstrap.php is denied in /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php:486 Stack trace: #0 /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php(238): TYPO3\CMS\Core\IO\PharStreamWrapper->assertPath('phar:///var/www...') #1 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar(12): TYPO3\CMS\Core\IO\PharStreamWrapper->stream_open('phar:///var/www...', 'rb', 129, NULL) #2 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar(12): require() #3 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/ext_localconf.php(5): require_once('/var/www/leipzi...') #4 /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/Exten in /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php on line 486 Fatal error: TYPO3\CMS\Core\Utility\ExtensionManagementUtility::main(): Failed opening required 'phar:///var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar/bootstrap.php' (include_path='/var/www/xxxxxxx.de/webroot/vendor/pear/http_request2:/var/www/xxxxxxx.de/webroot/vendor/pear/pear_exception:/var/www/xxxxxxx.de/webroot/vendor/pear/net_url2:.:/usr/share/php') in /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar on line 12
Updated by Alexander Jaschke over 6 years ago
The »System Environment« (Install Tool) shows:
open_basedir = /var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxdomainxxx.com/web:/srv/www/xxxdomainxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom
I have contacted the server administrator first and he wrote:
»"symphony.phar" is a file ... and not a folder... Something else seems to be wrong.«
But I can't really do anything with it.
Updated by Gerrit Code Review over 6 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57587
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57587
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57595
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57596
Updated by Oliver Hader over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9b3b4def5d60f701d664d3e263c5fd40d5d513be.
Updated by Oliver Hader over 6 years ago
- Target version set to 7.6.31 & 8.7.18 & 9.3.3
Updated by Gerrit Code Review over 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 9.3 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57727
Updated by Oliver Hader over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset 39b7cf6604236449e777b5772684342fa231fe97.