TYPO3: предупреждение PHP с последней версией EXT: новости - PullRequest
0 голосов
/ 28 декабря 2018

Я использую TYPO3 8.7.22 с tx_news 7.0.8.При открытии подробного представления любой новости я получаю следующую ошибку:

#1476107295: PHP Warning: explode() expects parameter 2 to be string, array given in /Volumes/web/src/typo3_src-8.7.22/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 1302 (More information)

TYPO3\CMS\Core\Error\Exception thrown in file
/Volumes/web/src/typo3_src-8.7.22/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 107.

52 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "explode() expects parameter 2 to be string, array given", "/Volumes/web/src/typo3_src-8.7.22/typo3/sysext/core/Classes/Utility/GeneralUtility.php", 1302, array)
51 explode(",", array)

/Volumes/web/src/typo3_src-8.7.22/typo3/sysext/core/Classes/Utility/GeneralUtility.php:
01300:     public static function trimExplode($delim, $string, $removeEmptyValues = false, $limit = 0)
01301:     {
01302:         $result = explode($delim, $string);
01303:         if ($removeEmptyValues) {
01304:             $temp = [];

50 TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(",", array, boolean)

/Volumes/web/sites/lkg-augsburg/web-8/typo3conf/ext/news/Classes/Utility/TypoScript.php:
00024:     public function override(array $base, array $overload)
00025:     {
00026:         $validFields = GeneralUtility::trimExplode(',', $overload['settings']['overrideFlexformSettingsIfEmpty'], true);
00027:         foreach ($validFields as $fieldName) {
00028:

Есть идеи?

1 Ответ

0 голосов
/ 28 декабря 2018

Похоже, settings.overrideFlexformSettingsIfEmpty не установлен в TypoScript.Вы включили TypoScript по умолчанию для новостей?Если нет, сделайте это или установите plugin.tx_news.settings.overrideFlexformSettingsIfEmpty = в шаблоне TypoScript, чтобы вместо null.

это была пустая строка.
...