[TYPO3-core] RFC: Bug 4809: require() in class.t3lib_tceforms_inline.php fails

Ingmar Schlecht ingmar at typo3.org
Tue Jan 23 14:20:40 CET 2007


Michael Stucki wrote:
> Oliver Hader wrote:
>> Problem:
>> In class.t3lib_tceforms_inline.php there is a require_once() statement
>> to file that is outside the t3lib directory. On some systems, where
>> typo3 is not installed in the DocuementRoot, the require could fail.
> 
> It could not only, it _will_ ...

It will only fail if "." is not in the list of include paths, because
t3lib_tceforms_inline is indirectly included by alt_doc.php which is
located in typo3/ as well.
So the problem is not related to whether the install is in DocuementRoot
or not but about whether the "." is in the list of include paths.

Anyway, prepending "PATH_typo3" is the right solution! :)

cheers
Ingmar


More information about the TYPO3-team-core mailing list