[TYPO3-v4] 4.5 and incompatible extensions
Ernesto Baschny [cron IT]
ernst at cron-it.de
Wed Feb 2 22:36:53 CET 2011
Krystian Szymukowicz schrieb am 02.02.2011 21:45:
>>> So we get:
>>> Fatal error: Call to a member function writelog() on a non-object
>>>
>>>
>>> As far as I know this issue touch:
>>>
>>> a) "mm_forum" - the error is in BE (this has been fixed in trunk of
>>> mm_forum)
>>> b) "comments" - the erorr is in the FE
>>
>> This seems easy to fix in the Core by adding a check if BE_USER exists.
>> Could you report that issue through the bug tracker? Thanks!
>
> sorry - I forgot to mention that it was put into bug tracker
> http://bugs.typo3.org/view.php?id=16844
>
> but it was decided that its fault of extensions and not the core.
>
> See the whole story here:
> http://lists.typo3.org/pipermail/typo3-dev/2010-December/042219.html
Thanks for the pointers. I understood the thread and the proposed
solutions. Cool to have that fixed in that extensions which used to call
the TCEmain methods without a BE_USER (non documented use of the API).
Nevertheless, if someone comes up with a patch which restores the old
4.4 behavior of this particular cache clearing procedure (so that old
extensions work as before), I wouldn't have anything against it being
included in 4.5, since we want to make the transition path to 4.5 as
"smooth" as possible.
The fix seems to be pretty easy (simply check if BE_USER is available
before calling the writelog() method on it). Maybe adding a call to
sysLog() in this situation so that we get more awareness of "bad use" of
TCEmain.
Cheers,
Ernesto
More information about the TYPO3-project-v4
mailing list