Issue Bug Closed

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

Peter Linzenkirchner 03/25/13, 12:55 updated 10/02/18, 12:13

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.

Reviews 2