Bug #25114

[Patch] Fatal error in /t3lib/class.t3lib_tcemain.php on line 6774

Added by Kay Strobach over 2 years ago. Updated over 2 years ago.

Status:New Start date:2011-02-20
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
TYPO3 Version:4.5 Complexity:
PHP Version:5.3
Votes: 0

Description

using comments or ve_guestbook or other extensions which try to clear the cache with tce_main results in an error in the front end, as the be_user object doesn't exist.

extending the line 6774 in that file with the following if should solve the problem:

if(is_a($this->BE_USER,'t3lib_userAuth')) {
$this->BE_USER->writelog(3, 1, 0, 0, ...
}

Perhaps it was early enough for 4.5.1 - hope so
regards
Kay

(issue imported from #M17683)


Related issues

related to Core - Bug #24406: error when using t3lib_TCEmain->clear_cacheCmd in frontend Closed 2010-12-23

History

Updated by Marc Bastian Heinrichs over 2 years ago

This needs to be fixed in the extensions and is fixed in EXT:comments http://forge.typo3.org/projects/extension-comments/repository/revisions/41930

Updated by Kay Strobach over 2 years ago

as this was a breaking change, perhaps a solution would be to add an deprecation log entry if there is no be-user defined?

Anyway, you're right that this must be fixed in the extensions.

Also available in: Atom PDF