首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TYPO3:最新版本EXT:news的警告

TYPO3:最新版本EXT:news的警告
EN

Stack Overflow用户
提问于 2018-12-28 18:32:59
回答 1查看 116关注 0票数 0

我正在使用带有tx_news 7.0.8的TYPO3 8.7.22。当打开任何新闻的详细信息视图时,我得到以下错误:

代码语言:javascript
复制
#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:

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-12-28 18:38:49

看起来TypoScript中没有设置settings.overrideFlexformSettingsIfEmpty。您是否包含了新闻的默认TypoScript?如果不是,请执行此操作或在TypoScript模板中设置plugin.tx_news.settings.overrideFlexformSettingsIfEmpty =,使其为空字符串而不是null

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53957085

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档