[TYPO3-dev] ExtDirect failure with new Extension Manager

Helmut Hummel helmut.hummel at typo3.org
Thu Nov 10 17:14:44 CET 2011


Hi Taras,

thanks for your answer.

Taras Sajuk wrote:

> here are some further details:
>
> The error is occuring on the current versions of Chrome, Firefox and IE.

Which is Chrome 15, Firefox 8, IE 9?

> BTW I just experienced a couple tab crashes in IE while being in the
> Extension Manager.

What do you mean with "tab crashes"?

> The PHP log has two entries on error:
>
>> PHP Fatal error:  Cannot use object of type stdClass as array in
>> /usr/local/typo3/typo3_src-4.6.0/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
>> on line 297
>> PHP Fatal error:  Cannot use object of type stdClass as array in
>> /usr/local/typo3/typo3_src-4.6.0/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
>> on line 297

This is a subsequent error.

> this is where the ExtDirect message is routed to. Basically the server
> expects the parameters/values array in data but gets the empty object
> crated by {}.

This is the main problem. There should be at least the post parameters 
extAction, extMethod, extTID set, which is obviously not the case.

> The error is shown for every extension which has a configuration or
> database update offered on the EM tab

The problem is, that I cannot reproduce that, using IE8, FF7, Safari 5.1 
or Chrome 15

> The present installation is v 4.6.0 but the errors did show up even before
> using the new EM in 4.5.6.

A bug has been fixed for 4.6.0 and the upcoming 4.5.8. Maybe there is 
another nested form tag, but to find it I would need to reproduce it.

Did you try a clean 4.6.0 install? If it fails for you, can you give me 
access to that plain install where the error occurs?

> But with 4.5.x the old EM still was an option.

Put this in your localconf.php to activate the old EM modules:

$TYPO3_CONF_VARS['EXT']['showOldModules'] = TRUE;

> I would be happy to look further into the JavaScript code. But I don't see
> how to get firebug started to intercept the generation of the post data.

Please use firebug to look at the response when switching to the 
configuration tab. This response contains HTML in the "result" property 
and this HTML must *not* contain a <form> tag.

> How does the submit button fire up the ExtJS code? But even if this would
> somehow work out I just have a compressed version of the ExtJS ...

No need to debug at first, because I assume that ExtJS works in general.

> It looks like the bug is crawlig around for a while:
>
>     - There is an unanswered post on the TYPO3-German list:
>     http://lists.typo3.org/pipermail/typo3-german/2011-April/077364.html which
>     points to the unresolved Bug #25170
> <http://forge.typo3.org/issues/25170>on forge.
>     - The thread on typo3.net
>     http://www.typo3.net/forum/beitraege/sonstiges-1/104869/ stops witout
>     resolution.
>     - Some people here
>     http://webdesign-forum.net/Thread-Kann-htmlArea-RTE-nicht-aktualisieren even
>     had the brain dead idea to "solve" the problem with a patch in the sysext
>     code.

Thanks. Seems there is a problem we need to tackle.

Kind regards,
Helmut

-- 
Helmut Hummel
TYPO3 Security Team Leader, TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list