Project

General

Profile

Actions

Bug #14697

closed

When using LDAP for authorization, page generation fails after login

Added by old_manilius about 19 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-04-21
Due date:
% Done:

0%

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

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)

Actions

Also available in: Atom PDF