Bug #25170
closedOverriding local extension fails: Cannot use object of type stdClass as array
Added by Claus Harup over 13 years ago. Updated over 12 years ago.
0%
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 |
Updated by Chris topher over 13 years ago
This duplicates http://forge.typo3.org/issues/13355
Closed.
Updated by Manuel Schneider about 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}]]
Updated by Chris topher about 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.
Updated by Lutz Wulfestieg about 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.
Updated by Pascal Naujoks about 13 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.
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.
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.
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...)
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.
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
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.
Updated by Steffen Gebert over 12 years ago
- Status changed from Needs Feedback to Closed