Project

General

Profile

Actions

Bug #30598

closed

PHP warning on each Extension Manager invocation

Added by Dmitry Dulepov about 13 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Category:
Extension Manager
Target version:
Start date:
2011-10-06
Due date:
% Done:

100%

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

Description

The following warning appears each time in the sys_log when the Extension Manager is callled:

Core: Error handler (BE): PHP Warning: Invalid argument supplied for foreach()
in /...../Projects/TYPO3/TYPO3-master/t3lib/class.t3lib_div.php line 1559

The cause is near line 176 in class.tx_em_extensionmanager.php. Here is how this line looks like:

'selectedLanguages' => t3lib_div::trimExplode(',', $globalSettings['selectedLanguages'], TRUE),

Above that near line 139:

$globalSettings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['em']);
if (!is_array($globalSettings)) {
    $globalSettings = array(
        'displayMyExtensions' => 0,
        'selectedLanguages' => array(),
        'inlineToWindow' => 1,
    );
}

There should be a string assignment, not array.

Actions

Also available in: Atom PDF