Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TYPO3 v9.5.0-引导程序包url错误消息_Typo3_Typo3 9.x - Fatal编程技术网

TYPO3 v9.5.0-引导程序包url错误消息

TYPO3 v9.5.0-引导程序包url错误消息,typo3,typo3-9.x,Typo3,Typo3 9.x,我有一个TYPO3 9.5.0LTS并使用引导包主题。这一切似乎都在起作用。。。我定义了网站配置,然后我得到了好看的URL。。。但我经常收到这样的错误信息: 核心:异常处理程序WEB:未捕获类型3异常:1436717266:标头过期的标头值无效。值必须是字符串或字符串数组在第208行的文件/is/www/typo3_src-9.5.0/typo3/sysext/core/Classes/Http/Message.php中抛出InvalidArgumentException。请求的URL:域/内容

我有一个TYPO3 9.5.0LTS并使用引导包主题。这一切似乎都在起作用。。。我定义了网站配置,然后我得到了好看的URL。。。但我经常收到这样的错误信息:

核心:异常处理程序WEB:未捕获类型3异常:1436717266:标头过期的标头值无效。值必须是字符串或字符串数组在第208行的文件/is/www/typo3_src-9.5.0/typo3/sysext/core/Classes/Http/Message.php中抛出InvalidArgumentException。请求的URL:域/内容示例/媒体/音频

这是什么原因造成的?如何预防

编辑:此部分可能位于第4244行的TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getHttpHeadersForTemporaryContent中:

/**
 * Returns HTTP headers for temporary content.
 * These headers prevent search engines from caching temporary content and asks them to revisit this page again.
 * Please ensure to also send a 503 HTTP Status code with these headers.
 */
protected function getHttpHeadersForTemporaryContent(): array
{
    return [
        'Retry-after' => '3600',
        'Pragma' => 'no-cache',
        'Cache-control' => 'no-cache',
        'Expire' => 0,
    ];
}
。。。所以我把它改为'Expires'=>0

似乎Expire标题中有一个输入错误,应该是Expires。 尝试在以下位置进行更改: TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getHttpHeadersForTemporaryContent 在他们解决这个问题的时候

UPD

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController,第4244行

“过期”=>0

改为

“Expires”=>“0”

正确的标题名称应为“Expires”afaik:
我想更改文件:

typo3_src-9.5.0/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

在线4244从

“过期”=>0

'到期'=>'0'


有帮助。此问题已报告,我确信将随下一次更新而更改。

。。。我不确定到底在哪里改变它。。。但很高兴看到已经有报道了。。我可能会找到它。。。唯一显示“过期”=>0的部分。。。也许它必须是“过期”=>0。。。不。。。现在我仍然得到'哎呀,一个错误发生了!标头过期的标头值无效。值必须是字符串或字符串数组。'他们刚从int生成字符串,希望对您有所帮助: