[TYPO3-dev] using TCEMAIN clear_cacheCmd in frontend in 4.5 trunk

Steffen Gebert steffen at steffen-gebert.de
Thu Dec 23 17:12:58 CET 2010


> But some extesions like Dmitry Dulepov 'comments' are using
> 'clear_cacheCmd' from frontend where $this->BE_USER is not initialised.
>
> So we get:
> Fatal error: Call to a member function writelog() on a non-object in
> T:\workspace-typo3\typo3\typo3_src-svn-trunk\t3lib\class.t3lib_tcemain.php
> on line 6761
>
> What is the solution for that? Is TCEMAIN only supposed to be used from
> BE ?
AFAIK yes. However, as your solution is IMHO good:

> If so I can write a patch for this and post it to core list.
please do so (using the following code)

if (TYPO3_MODE === 'BE') {
       $this->BE_USER->writelog(....
}

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member

Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list