[TYPO3-english] Error in init.php: Path to TYPO3 main dir could not be resolved correctly.
Björn Pedersen
pedersen at frm2.tum.de
Fri Apr 8 08:25:03 CEST 2011
Am 07.04.2011 16:26, schrieb michal_cygankiewicz at interia.pl:
> I am using the newest TYPO3 version 4.5.2. Everything is working fine apart from of one thing. When I am trying to add new page in page tree, following errors occurs:
>
> "Error in init.php: Path to TYPO3 main dir could not be resolved correctly.
>
> This happens if the last 6 characters of this path, ..../usr/bin/ (end of $temp_path), is NOT "typo3/" for some reason.
> You may have a strange server configuration. Or maybe you didn't set constant TYPO3_MOD_PATH in your module?
>
> If you want to debug this issue, please edit typo3/init.php of your TYPO3 source and search for the die() call right after this line (search for this text to find)..."
>
> This is fresh installation without any extra plugins installed.
>
> And those are variables from array after debug:
>
> "Array
> (
> [TYPO3_OS] =>
> [PATH_thisScript] => /usr/bin/modsec-clamscan.pl
> [php_sapi_name()] => cgi-fcgi
> [TYPO3_MOD_PATH] => TYPO3_MOD_PATH
> [PATH_TRANSLATED] => /usr/bin/modsec-clamscan.pl
> [SCRIPT_FILENAME] => /home/qq35/public_html/amtsolution/typo3/alt_doc.php
> )
> "
That looks like some virus scanner (clam-scan) is interfering with the
path resolution.
Check if you really wnat to run the virus scanner on every website hit.
Björn
More information about the TYPO3-english
mailing list