#57723PackageStates.php may cannot be written due to invalid path
Description
Hi there,
I tried to do a fresh install of TYPO3 6.2, but it failed in the second step due to following error:
Uncaught exception 'TYPO3\CMS\Core\Package\Exception\PackageStatesUnavailableException' with message 'The PackageStates.php file is either corrupt or unavailable.' in typo3_sources/typo3_src-6.2.0/typo3/sysext/core/Classes/Package/PackageManager.php:283
Stack trace:
#0 typo3_sources/typo3_src-6.2.0/typo3/sysext/core/Classes/Package/PackageManager.php(130): TYPO3\CMS\Core\Package\PackageManager->loadPackageStates()
#1 typo3_src-6.2.0/typo3/sysext/core/Classes/Core/Bootstrap.php(322): TYPO3\CMS\Core\Package\PackageManager->initialize(Object(TYPO3\CMS\Core\Core\Bootstrap))
#2 typo3_sources/typo3_src-6.2.0/typo3/sysext/core/Classes/Core/Bootstrap.php(288): TYPO3\CMS\Core\Core\Bootstrap->initializePackageManagement('TYPO3\CMS\Core\...')
#3 typo3_sources/typo3_src-6.2.0/typo3/sysext/install/Classes/Service/ClearCacheService.php(64): TYPO3\CMS\Core\Core\Bootstrap->reinitializeCla in typo3_sources/typo3_src-6.2.0/typo3/sysext/core/Classes/Package/PackageManager.php on line 283
After digging around I found out that the PackageStates.php is tried to be written into /var/www/virtual/XXXX/html/typo3conf/../../typo3conf/PackageStates.php. This obviously fails because the path would be resolved to /var/www/virtual/XXXX/typo3conf which is outside the DocumentRoot.
My symlinks are configured like this:
index.php -> typo3_src/index.php typo3 -> typo3_src/typo3 typo3_src -> ../typo3_sources/typo3_src-6.2.0
Symlinking typo3conf in my DocumentRoot workarounds the problem:
/var/www/virtual/XXXX/typo3conf -> /var/www/virtual/XXXX/html/typo3conf
My TYPO3 is hosted at https://uberspace.de, a shared hosting platform. The provider uses CentOS, php-fcgi and Apache with suEXEC.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.