Project

General

Profile

Actions

Bug #16137

closed

PATH_tslib defined in index.php, but it doesnt resolve; PATH_t3lib works fine...

Added by old_p_mehrer over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-05-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The constant PATH_tslib does not resolve to a path. I have this problem with typo3 3.8.1 and heard that it doesnt work on typo3 4.0 too. I have no idea why, the constant is defined and I greped the whole installation, there're two files which define all the PATH_* constants, but both correct. And PATH_t3lib works fine.

(issue imported from #M3449)

Actions #1

Updated by Rupert Germann over 18 years ago

I can't reproduce this. In my installation PATH_tslib contains the correct value in TYPO3 version 3.8.1 and 4.0. could it be that it is changed by an Extension?

Actions #2

Updated by old_p_mehrer over 18 years ago

Are you using a backend modul? I got feedback regarding the extension mwimagemap and there PATH_tslib didnt work on typo3 4.0. As I sayed, I greped for "'PATH_" and I didnt found anything changing PATH_tslib.

I use this workaround:
if (@is_dir(PATH_site.'typo3/sysext/cms/tslib/')) {
define('PATH_tslib', PATH_site.'typo3/sysext/cms/tslib/');
} elseif (@is_dir(PATH_site.'tslib/')) {
define('PATH_tslib', PATH_site.'tslib/');
} else {

// define path to tslib/ here:
$configured_tslib_path = '';
// example:
// $configured_tslib_path = '/var/www/mysite/typo3/sysext/cms/tslib/';
define('PATH_tslib', $configured_tslib_path);
}

if (PATH_tslib=='') {
die('Cannot find tslib/. Please set path by defining $configured_tslib_path in '.basename(PATH_thisScript).'.');
}

Actions #3

Updated by Rupert Germann over 18 years ago

the directory tslib contains only FE rendering stuff so it's quite logical that its path is not needed in the BE. If your extension - for what reasons ever - needs the PATH_tslib constant you have to define it in your extension.
But thats not a TYPO3 bug.

Actions #4

Updated by old_p_mehrer over 18 years ago

ok, I'm sorry, please resolve this ticket

Actions #5

Updated by Rupert Germann over 18 years ago

see notes

Actions

Also available in: Atom PDF