Project

General

Profile

Actions

Bug #15311

closed

under template module : "Error in init.php: Path to TYPO3 main dir could not be resolved correctly."

Added by Brice BERNARD over 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-12-28
Due date:
% Done:

0%

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

Description

as it's written in the title, there's a crash due to CONSTANT definition maybe in init.php

See additionnal information for entire 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, , (\$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 expect any help from anybody on this issue, you should save this page as an html document and send it along with your request for help!

Array
(
[TYPO3_OS] =>
[PATH_thisScript] => /var/www/html/www.brikou.com/typo3/sysext/tstemplate/ts/index.php
[php_sapi_name()] => apache2handler
[TYPO3_MOD_PATH] => ext/tstemplate/ts/
[PATH_TRANSLATED] =>
[SCRIPT_FILENAME] => /var/www/html/www.brikou.com/typo3/sysext/tstemplate/ts/index.php
)
(issue imported from #M2103)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #15437: 4.0beta1 tempalte module errorClosedMichael Stucki2006-01-17

Actions
Actions #1

Updated by Ernesto Baschny over 18 years ago

While migrating this from ext to sysext the conf.php wasn't updated accordingly.

To fix: in file typo3/sysext/tstemplate/ts/conf.php, change:

-define('TYPO3_MOD_PATH', 'ext/tstemplate/ts/');
+define('TYPO3_MOD_PATH', 'sysext/tstemplate/ts/');

Actions #2

Updated by Ernesto Baschny over 18 years ago

FYI

Actions #3

Updated by Michael Stucki over 18 years ago

I'll fix the problem and publish a new beta version on Sourceforge.net

Actions

Also available in: Atom PDF