Project

General

Profile

Actions

Bug #25170

closed

Overriding local extension fails: Cannot use object of type stdClass as array

Added by Claus Harup about 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-24
Due date:
% Done:

0%

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

Description

When trying to upload and override a local extension I get the following in the debug:
Fatal error:
Cannot use object of type stdClass as array in typo3_src-4.5.1/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php on line 1352

(issue imported from #M17757)


Files

em_verbindungsproblem.jpg (61 KB) em_verbindungsproblem.jpg Lutz Wulfestieg, 2011-07-27 19:18
screen.png (44.6 KB) screen.png Steffen Gebert, 2011-12-26 22:00

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #32284: Fatal Error in EM: use stdClass as arrayClosedSteffen Gebert2011-12-04

Actions
Actions #1

Updated by Chris topher about 13 years ago

This duplicates http://forge.typo3.org/issues/13355

Closed.

Actions #2

Updated by Manuel Schneider almost 13 years ago

Sorry the link http://forge.typo3.org/issues/13355 ist no reachable (403)

I get the same error. If i try to upload an t3x extension i get also the same error.

With Google Chrome I see that the params includes an object (data).
[[{"action":"ExtDirect","method":"settingsFormSubmit","data":[{},"f97d90c3b5d86f2298c65a5004c6c1cc-extDirect"],"type":"rpc","tid":15}]]

Actions #3

Updated by Chris topher almost 13 years ago

  • Status changed from Closed to New
  • Target version deleted (0)

Manuel Schneider wrote:

Sorry the link http://forge.typo3.org/issues/13355 ist no reachable (403)

Indeed, it is not reachable anymore.

Actions #4

Updated by Lutz Wulfestieg almost 13 years ago

The same error. Tried out in a fresh installation (4.5.4 with the introduction package). When I change something with the EM, I´ll get this message:
PHP Fatal error: Cannot use object of type stdClass as array in /is/htdocs/wp1053463_XBLCQOVPEE/emtestl/typo3_src-4.5.4/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php on line 262, referer: http://cdn.feelfreeconsult.de/typo3/mod.php?&id=0&M=tools_em&SET[function]=extensionmanager
PHP 5.2.17
Soap Client and Server enabled
allow_url_fopen = on
[curlUse] = 1
It´s not possible, to use the old EM anymore. It´s not shown.

Actions #5

Updated by Pascal Naujoks over 12 years ago

I can confirm that. "Fatal error: Cannot use object of type stdClass as array in /typo3_src-4.5.4/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php on line 1354" after i upgraded from 4.5.3 to 4.5.4

It's kind of strange that i upgraded two typos today and both had that errors but one did install the extension somehow...?! The other does not do anything with it expect throwing the error.

Actions #6

Updated by Alban Cousinie over 12 years ago

The problem is still present in Typo3 4.5.8
When I save any extension's configuration, I get the following error :

Fatal error: Cannot use object of type stdClass as array in /var/www/clients/client1/web1/web/typo3_src-4.5.8/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php on line 262

The error only pops-up with the new extension manager, but with the former extension manager it seems the configuration is not being saved either and it is likely the saving fails silently.
I also tried to access the duplicate mentioned http://forge.typo3.org/issues/13355, but the given URL is unreachable.

This Typo3 installation was upgraded from 4.3.9 to 4.4.12 then to 4.5.8

I have tried to uninstall and reinstall the extension. The EM claims the database needs an update. I do agree on this action, but the problem still occurs. If I try to reinstall the extension again, the EM still claims the database needs an update so it is possible the EM database update operation fails. (Notice : using the database analyzer, my database is up to date)

I claim this is a MAJOR bug because any extension's configuration can no longer be updated. Please give back access to issue 13355 if possible so we might get a clue on what's going on.

Actions #7

Updated by Jan Simbera over 12 years ago

This error shows on updating extension configuration in 4.5.7 too. But only on our old php 5.2.0-8+etch16 version. On 5.2.6 shows no signs of error. Both typo3 versions have the EM extension version 4.5.1.

Actions #8

Updated by Michael Stucki over 12 years ago

Christopher wrote:

Manuel Schneider wrote:

Sorry the link http://forge.typo3.org/issues/13355 ist no reachable (403)

Indeed, it is not reachable anymore.

That's because the project is marked as private. I have files a "bugreport" and asked Steffen to open it: #32313
(However, the issue will be unaccessible as well for now...)

Actions #9

Updated by Michael Stucki over 12 years ago

  • Status changed from New to Needs Feedback

That's interesting to know! Can anyone else confirm that please?

Jan Simbera wrote:

This error shows on updating extension configuration in 4.5.7 too. But only on our old php 5.2.0-8+etch16 version. On 5.2.6 shows no signs of error. Both typo3 versions have the EM extension version 4.5.1.

Actions #10

Updated by Jan Simbera over 12 years ago

Minor update:
I checked if i can upload extensions and it shows the same error as reported(php 5.2.0), works on 5.2.6:

Fatal error:
Cannot use object of type stdClass as array in typo3_src-4.5.1/typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php on line 1352

Actions #11

Updated by Steffen Gebert over 12 years ago

  • File deleted (screen.png)
Actions #12

Updated by Steffen Gebert over 12 years ago

Actions #13

Updated by Steffen Gebert over 12 years ago

Can you confirm that this only occurs with PHP 5.2.0 (and maybe .1.2, too)?-

I've just debugged it and can't find any reason that this fails. In both places (saveExtensionConfiguration, line 262 and uploadExtension, line 1352), $parameter resp. $parameter['extupload-path'] is an array, not an object. I see no reason, why this should fail.

EDIT: Lutz wrote that he as PHP 5.2.17.

Sorry.. no clue at the moment.. either I need access to an installation or more feedback.

Actions #14

Updated by Steffen Gebert over 12 years ago

Please continue here: #32284

Actions #15

Updated by Steffen Gebert over 12 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF