[TYPO3-dev] Problems with TYPO3_mainDir constant.

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Fri Jul 16 15:52:50 CEST 2010


Am 16.07.2010 15:30, schrieb Stig Nørgaard Færch:
> Den 16-07-2010 11:46, Stig Nørgaard Færch skrev:
>> Den 16-07-2010 11:35, Stig Nørgaard Færch skrev:
>>>> no, that should become 'typo3/sysext' (in a typical setup, unless you
>>>> renamed the typo3 directory). Normally it is set in init.php (and
>>>> thumbs.php).
>>>
>>> Of course, you are right.
>>>
>>>
>>>> So my guess, something bypasses the loading of init.php. That should
>>>> not
>>>> happen.
>>
>> On line 380 of backend.php it says:
>> 'TYPO3_mainDir' => TYPO3_mainDir,
>> I'll try to exchange it with:
>> 'TYPO3_mainDir' => 'typo3/',
>> and see what will happen.
>>
>> Not that it will be the solution, but maybe it will lead to the source
>> of the problem?
> 
> Since the channge, I haven't had the problem. Any ideas why
> TYPO3_mainDir (what seems randomly) isn't set in backend.php?
> 
> /Stig
Well, that seems to be coincidental. From your symptom (clearing
temp_cached extlocalconf) there seems to be an extension which somehow
tries to set  TYPO3_mainDir. Try grepping for that.




More information about the TYPO3-dev mailing list