Bug #46642
closedFatal error: Cannot unset string offsets in typo3/sysext/em/classes/tools/class.tx_em_tools.php on line 382
100%
Description
when uploading an extension to TER (TYPO3 4.5) the $EM_CONF[$_EXTKEY] = array becomes wrong:
original php code:
$EM_CONF[$_EXTKEY] = array ( //snip array ( 'depends' => array ( 'typo3' => '4.5.0-6.0.99' ), 'conflicts' => array( ), 'suggests' => array ( ), ), //snip
becomes after uploading:
array ( 'depends' => array ( 'typo3' => '4.5.0-6.0.99', '' => '', ), 'conflicts' => '', 'suggests' => array ( ), ),
which leads to the following error in the extension manager of TYPO3 4.5.x:
Fatal error: Cannot unset string offsets in typo3/sysext/em/classes/tools/class.tx_em_tools.php on line 382
I had to edit the em_conf.php manually in order to get rid of this error in the backend.
Files
Updated by Daniel Hürtgen over 11 years ago
Same here ... also fixed by edit ext_emconf.php manually.
Updated by Franz Holzinger over 11 years ago
Still present in TYPO3 4.5.28
Fatal error: Cannot unset string offsets in /var/www/user/typo3_src-4.5.28/typo3/sysext/em/classes/tools/class.tx_em_tools.php on line 390
Use this patch to get the Extension Manager running again.
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/22656
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/22657
Updated by Michael Stucki over 11 years ago
I investigated the problem and have submitted patches to fix the issue in 4.5 and 4.7.
Interestingly, the problem does not occur in 6.0+ versions because the new extension manager contained the fix since the beginning.
Updated by Michael Stucki over 11 years ago
- Project changed from 336 to TYPO3 Core
Moving to TYPO3 CMS: Core
Updated by Michael Stucki over 11 years ago
- Status changed from New to Accepted
- Assignee set to Michael Stucki
- TYPO3 Version set to 4.5
Updated by Michael Stucki over 11 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset 9731f60c0b2afc82eabc64e2ee63a8dc8431223e.