Bug #16740
closed
FE PATH_typo3 problem | Typo3 4.1b 1a
Added by Jiri Mikula almost 18 years ago.
Updated over 17 years ago.
Description
Warning: require_once(PATH_typo3sysext/indexed_search/class.lexer.php) [function.require-once]: failed to open stream: No such file or directory in /data/web/virtuals/_/www/t3lib/class.t3lib_refindex.php on line 65
Fatal error: require_once() [function.require]: Failed opening required 'PATH_typo3sysext/indexed_search/class.lexer.php' (include_path='.:/usr/local/lib/php') in /data/web/virtuals/_/www/t3lib/class.t3lib_refindex.php on line 65
(issue imported from #M4562)
Files
I had the same.
When updating a typo3 from 4.02 to 4.1 the Constant is unknown in FE
So I had to edit the index.php in root-dir and add following line:
define('PATH_typo3', PATH_site . 'typo3/');
then all works.
The attached patch fixes the problem, though I did not investigate why this happens in 4.1, and why it did not in 4.0.
I have the feeling that it's a bad idea to define PATH_typo3 for frontend use, though I can't imagine any application that could misuse this.
Anyway, I still prefer to include PATH_site.TYPO3_mainDir instead of defining PATH_typo3 for the whole website.
Hi Michael,
my fix was only a quick one ...
it seams that t3lib_refindex is the only one using PATH_typo3 (for FE)
So why does refindex don't use standard way to get path of a sysext ?
Diff by Michael Stucki working great.
Fixed by disabling wordIndexing() as Kasper suggested.
Also available in: Atom
PDF