Project

General

Profile

Actions

Bug #46642

closed

Fatal error: Cannot unset string offsets in typo3/sysext/em/classes/tools/class.tx_em_tools.php on line 382

Added by Peter Linzenkirchner over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2013-03-25
Due date:
% Done:

100%

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

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

46642.diff (737 Bytes) 46642.diff Franz Holzinger, 2013-07-26 17:36

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #46611: 4.5 EM crashes, if ext_emconf entry is string instead of arrayClosed2013-03-23

Actions
Has duplicate TYPO3 Core - Bug #44282: EM: fatal error if 'conflicts' is empty string in stead of arrayClosed2013-01-03

Actions
Actions

Also available in: Atom PDF