[TYPO3-dev] Error in init.php: Path to TYPO3 main dir could not be resolved correctly.

Franz Holzinger franz at ttproducts.de
Mon Nov 30 10:59:20 CET 2009


Hello,

I use a local TYPO3 installation with latest TYPO3 4.3 trunk and PHP 5.3.1.
The template has been formerly empty and now it is:


# Default PAGE object:
page = PAGE
page.10 = TEXT
page.10.value = HELLO WORLD!

Only some shy system extensions are installed. No other extension is 
installed.

I have an empty page with no content element. In the FE I always get 
this error message:

---------------------------------------
Error in init.php: Path to TYPO3 main dir could not be resolved correctly.

This happens if the last 6 characters of this path, /var/www/html/ 
($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)...
------------------------------------
All caches and cache files have been cleared or deleted.

What must I change with the installation? Or how should I debug this?

- Franz

-----------------------------

### DEBUG SYSTEM INFORMATION - START ###
TYPO3_REQUEST_HOST  : http://localhost
TYPO3_REQUEST_URL   : 
http://localhost/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT: http://localhost/typo3/install/index.php
TYPO3_REQUEST_DIR   : http://localhost/typo3/install/
TYPO3_SITE_URL      : http://localhost/
TYPO3_DOCUMENT_ROOT : /var/www/html
SCRIPT_FILENAME     : /var/www/html/typo3/install/index.php
REMOTE_ADDR         : 127.0.0.1
REMOTE_HOST         :
HTTP_USER_AGENT     : Mozilla/5.0 (X11; U; Linux x86_64; en-US; 
rv:1.9.1.5) Gecko/20091106 Mandriva Linux/1.9.1.5-0.1mdv2010.0 (2010.0) 
Firefox/3.5.5
HTTP_ACCEPT_LANGUAGE: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
CONST: PHP_OS       : Linux
CONST: TYPO3_OS     :
CONST: PATH_thisScri: /var/www/html/typo3/install/index.php
CONST: php_sapi_name: apache2handler
OTHER: TYPO3_VERSION: 4.3-dev
OTHER: PHP_VERSION  : 5.3.1
OTHER: IMAGE_TYPES  : 15
OTHER: memory_limit : 256M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache/2.2.14 (Mandriva Linux/PREFORK-1.2mdv2010.0)
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /typo3/install/index.php
### DEBUG SYSTEM INFORMATION - END ###




More information about the TYPO3-dev mailing list