Project

General

Profile

Actions

Bug #24013

closed

htmlArea RTE: JS-Error when closing "Insert Picture" dialogue

Added by Chris topher about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

rtehtmlarea_bugfix_16343_trunk.patch (2.06 KB) rtehtmlarea_bugfix_16343_trunk.patch Administrator Admin, 2010-11-18 23:51
Actions #1

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) {

Actions #2

Updated by Stanislas Rolland about 14 years ago

I wonder why I can't reproduce this error...

Did you clear the configuration cache?

Actions #3

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?

Actions #4

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.

Actions #5

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.

Actions #6

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.

Actions #7

Updated by Stanislas Rolland about 14 years ago

Committed to SVN TYPO3core trunk (revision 9490).

Actions #8

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF