Bug #17563
closedPHP Fatal error: Call to a member function on a non-object in ..class.tx_rtehtmlarea_base.php on line 1493
0%
Description
When using Firefox 2.0.0.6 on some systems, it seams that in some cases $TSFE->csConvObj is not instantiated when using RTEhtmlarea.
We could reproduce this on some systems here, but others are working, with the same installation out of the box
We suggest to add a check also to $TSFE->csConvObj, so replace
if(is_object($TSFE)) {
by
if(is_object($TSFE) && is_object($TSFE->csConvObj)) {
(issue imported from #M6218)
Files
Updated by Martin Kutschker about 17 years ago
This is strange as the object is instantiated in the constructor of tslib_fe.
Updated by Ingo Schmitt about 17 years ago
Yes, but a check if the instantiated object is still existing shouldn't be to expensive
Updated by Martin Kutschker about 17 years ago
But how to proceed if it's missing? I think it should be traced why this happens instead of adding a seemingly pointless check.
Updated by Ingo Schmitt about 17 years ago
There is already an else part in rtehtmlarea, it TSFE is missing, so we could use this.
Updated by Stanislas Rolland about 17 years ago
Is this happening in the backend when "Editforms on page" is used or is it happening when the RTE is used on a frontend page?
Updated by Ingo Schmitt about 17 years ago
Is happening in the Backend when editing Forms on pages.