[TYPO3-core] RFC: Bug #9608: Frontend Editing does not work anymore
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Oct 21 17:09:44 CEST 2008
Oliver Hader wrote: on 21.10.2008 16:50:
> Problem:
> Due to a change of loading JavaScript libraries in the back-end by a
> commond handler function, the front-end editing does not work anymore
> and shows the following PHP error:
>
> Fatal error: Call to undefined method stdClass::loadJavascriptLib() in
> t3lib/class.t3lib_tceforms.phpon line 5079
>
> Solution:
> In back-end the JavaScript resources of t3lib_TCEforms get added to the
> HTML <head> tag by using [template]->loadJavascriptLib('file.js').
> However, in front-end mode, there is no instance of the "template" class
> available.
> To solve this issue a new function loadJavascriptLib() was integrated to
> t3lib_TCEforms that calls the template object in back-end disposal - and
> in front-end disposal it gets overridden in t3lib_TCEforms_FE and adds
> the JavaScript library to $GLOBALS['TSFE']->additionalHeaderData.
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9608
>
> Branches: TYPO3_4-2, Trunk
Hi,
+1 on testing and reviewing. 4.2.3 should go out "soon", as 4.2.2 was
pretty buggy (for a bugfix release...).
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list