Bug #16137
closedPATH_tslib defined in index.php, but it doesnt resolve; PATH_t3lib works fine...
0%
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)
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?
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).'.');
}
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.
Updated by old_p_mehrer over 18 years ago
ok, I'm sorry, please resolve this ticket