Project

General

Profile

Actions

Bug #25287

closed

error when using t3lib_TCEmain->clear_cacheCmd in CLI mode

Added by Daniel Schöne about 13 years ago. Updated over 12 years ago.

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

0%

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

Description

it should be checked that TYPO3 is not running in CLI mode before writing to log

if (!defined('TYPO3_cliMode')) {
$this->BE_USER->writelog(3, 1, 0, 0, 'User %s has cleared the cache (cacheCmd=%s)', array($this->BE_USER->user['username'], $cacheCmd));
}

related to http://bugs.typo3.org/bug_view_page.php?bug_id=16832
(issue imported from #M17900)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #28007: TCEmain::clear_cacheCmd relies on active BE_USERClosed2011-07-08

Actions
Actions #1

Updated by Klaus Hinum over 12 years ago

  • Target version deleted (0)

bug is still present with 4.6 and related to the caching framework (as we had to switch with 4.6)

Actions #2

Updated by Steffen Gebert over 12 years ago

Klaus, could you please provide some example code to test? I will push a patch for #28007 to fix this. These bug reports about abused TCEmain occur too often to say "don't fix".

Actions #3

Updated by Steffen Gebert over 12 years ago

  • Status changed from New to Closed

Closed as duplicate of #28007. Would be nice to get feedback there!

Actions #4

Updated by Steffen Gebert over 12 years ago

  • Assignee set to Steffen Gebert
Actions

Also available in: Atom PDF