Bug #24013
closedhtmlArea RTE: JS-Error when closing "Insert Picture" dialogue
0%
Description
I experience the following problem with current trunk:
I open the dialogue "Insert picture". When I insert an image or just click on the close button, I get these errors:
Error: Ext.elCache is undefined
File: typo3temp/compressor/ext-base-288ac3dcc6ee5e4e6c41e219f62fe4b0.js
Line: 4406
This is around the 30th line in function getId(el){
...
if(!Ext.elCache[id]){
...
Error: e._flyweights is undefined
File: typo3temp/compressor/ext-all-c70aa5004c11e1e7a4794fb772b2cf25.js
Line: 1893
That is in El.fly = function(el, named){
...
(El._flyweights[named] = El._flyweights[named] || new El.Flyweight()).dom = el;
...
(issue imported from #M16343)
Files
Updated by Chris topher about 14 years ago
I just saw that I also get a PHP error:
Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in \typo3conf\temp_CACHED_FE_pr5bb5_ext_tables.php line 1429
Line 1429 comes from rtehtmlarea/ext_tables.php and is there line 27:
foreach ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'] as $pluginName => $config) {
Updated by Stanislas Rolland about 14 years ago
I wonder why I can't reproduce this error...
Did you clear the configuration cache?
Updated by Stanislas Rolland about 14 years ago
OK, yes, I see the error...
I am not sure that the php error is related, is it?
Updated by Chris topher about 14 years ago
Both crept up at the same time. I don't know, if both are related, but I did not want to hold back some information which might be important.
If you can fix the JS error, I will check, if the PHP error still is there.
Updated by Chris topher about 14 years ago
Fabrizio Branca reported the PHP error in #16347.
He also provided a patch there and posted it on Core List.
Updated by Stanislas Rolland about 14 years ago
ExtJS is trying to remove from cache an event listener on Ext.Element of dialogue window iframe document and fails.
Set the event on the htmlElement using Ext.EventManager.
Also, for WebKit, dragend listener should be on body rather than documentElement.
Updated by Stanislas Rolland about 14 years ago
Committed to SVN TYPO3core trunk (revision 9490).