[TYPO3-dev] ExtDirect failure with new Extension Manager

Taras Sajuk taras.sajuk at googlemail.com
Thu Nov 10 14:59:37 CET 2011


Hi Steffen,

here are some further details:

The error is occuring on the current versions of Chrome, Firefox and IE.
BTW I just experienced a couple tab crashes in IE while being in the
Extension Manager.

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 where the ExtDirect message is routed to. Basically the server
expects the parameters/values array in data but gets the empty object
crated by {}.

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

The present installation is v 4.6.0 but the errors did show up even before
using the new EM in 4.5.6. But with 4.5.x the old EM still was an option.

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.
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 ...

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.


Taras Sajuk


2011/11/9 Steffen Gebert <steffen.gebert at typo3.org>

> Hi Taras,
>
> thank you very much for your posting. I appreciate your posting in a
> mailing list before filing a bug report. I hope that we can find out the
> root cause for your problem!
>
>
>  This is due to a 500 response on the ExtDirect POST request. A short look
>> on the request POST payload:
>>
>
> Error 500 means a server error. So I expect some useful information in the
> servers PHP error log. Could you please have a look there? Its location
> should be referenced in the output of phpinfo().
>
> Does it occur for every extension or only a specific one?
>
>
>  {"action":"ExtDirect","method"**:"saveExtensionConfiguration",**
>>> "data":[{},"**852fe958b76e38ef02ca7b29a03ac2**e05b11dfd5"
>>> ],"type":"rpc","tid":14}
>>>
>>
> That looks really weir.d The data is collected on the client side.. so
> maybe the server side really doesn't have to do anything with it.
>
> Could you have a look at the executed JavaScript code?
> You can disable merging with
> $TYPO3_CONF_VARS['BE']['debug'**] = 1
>
> Can you reproduce it in different browsers / installations?
>
> Kind regards
> Steffen
>
> --
> Steffen Gebert
> TYPO3 v4 Core Team Member
> TYPO3 Server Administration Team Member
>
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org
> ______________________________**_________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-dev<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev>
>



More information about the TYPO3-dev mailing list