Bug #14697
closedWhen using LDAP for authorization, page generation fails after login
0%
Description
When using the LDAP-extensions and using LDAP for fe-login, the page after the login can not be created. The error says:
"Cannot redeclare class tslib_cobj"
This error was reported in the mailing list a while ago and it is easily reproducible.
So far I can not tell if it also applies to 3.8 but most likely it does.
The problem seems to be in "class.tslib_pagegen" and not in the LDAP extension. The problem is that in the LDAP-extension (class.tx_ldapserver) on can find the code
if(!class_exists('tslib_cObj')) {
require_once(t3lib_extmgm::extPath('cms','tslib/class.tslib_content.php'));
}
while in "class.tslib_pagegen" one finds just
require_once(PATH_tslib.'class.tslib_content.php');
The actual problem is, that two different files are included which contain the same class (tslib_cObj). The problem could easily be fixed by replacing above line in "class.tslib_pagegen" by
if(!class_exists('tslib_cObj')) {
require_once(PATH_tslib.'class.tslib_content.php');
}
(issue imported from #M1012)