Issue Bug Closed

#29901t3lib_autoloader::getAutoloadCacheIdentifier should respect PATH_site

Frederic Gaus 09/16/11, 16:27 updated 10/24/17, 14:06

Description

When installing the whole TYPO3 site on a different server (e.g. changing provider or deploying dev to live), you normally move the whole webroot to another server.

But with TYPO3 4.6 and caching framework enabled this causes a fatal error on the new host because the autoloader stores the classes inside the registry with an absolute path.

Example:
Warning: require(/var/www/web9/t3lib/utility/class.t3lib_utility_versionnumber.php): failed to open stream: No such file or directory in /var/www/typo3/typo3_src-master-mount/t3lib/class.t3lib_div.php on line 5089 Fatal error: require(): Failed opening required ‘/var/www/web9/t3lib/utility/class.t3lib_utility_versionnumber.php’ (include_path=’.:/usr/share/php:/usr/share/pear:/var/www/typo3-46/typo3/contrib/pear/’) in /var/www/typo3/typo3_src-master-mount/t3lib/class.t3lib_div.php on line 5089

This fatal error occures in frontend, backend and install tool. Deleteing typo3conf/temp_CACHED* is not helping. This could confuse many users not that familier with TYPO3.

It would be easy to fix when t3lib_autoloader::getAutoloadCacheIdentifier would respect TYPO3_site, too.

Reviews 1