Project

General

Profile

Actions

Bug #16740

closed

FE PATH_typo3 problem | Typo3 4.1b 1a

Added by Jiri Mikula over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-11-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1beta1
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bug_4562.diff (1.49 KB) bug_4562.diff Administrator Admin, 2006-11-26 23:39

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16865: t3lib_div - PATH_typo3 problem for localizationsClosedOliver Hader2007-01-18

Actions
Actions #1

Updated by Steffen Kamper over 17 years ago

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.

Actions #2

Updated by Michael Stucki over 17 years ago

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.

Actions #3

Updated by Steffen Kamper over 17 years ago

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 ?

Actions #4

Updated by Staffan Ericsson over 17 years ago

Diff by Michael Stucki working great.

Actions #5

Updated by Ingmar Schlecht over 17 years ago

Fixed by disabling wordIndexing() as Kasper suggested.

Actions

Also available in: Atom PDF