【发布时间】:2019-10-25 22:13:18
【问题描述】:
我正在使用带有新闻系统扩展的 TYPO3 版本 7.6.32,有时我会收到一个错误,然后他会独自消失而没有更改任何内容:
错误:
Call to undefined method
GeorgRinger\News\Domain\Model\FileReference::getType()
Error thrown in file /var/www/www.example.com/typo3conf/ext/in_news/Classes/ViewHelpers/IsVideoPlacedViewHelper.php in line 25.
因此我去看了著名的文件IsVideoPlacedViewHelper.php。
这就是我从第 24 行发现的:
foreach ($media as $key => $mediaEl) {
if ($mediaEl->getType() >= 101 && $mediaEl->getType() <= 103 ) {
return true;
}
}
当我检查日志文件时,我发现:
2019/06/10 08:17:51 [error] 119340#119340: *4509 FastCGI sent in stderr: "PHP message: http://www.example.com/ - Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to undefined method GeorgRinger\News\Domain\Model\FileReference::getType() | Error thrown in file /var/www/www.example.com/typo3conf/ext/in_news/Classes/ViewHelpers/IsVideoPlacedViewHelper.php in line 25. Requested URL: http://www.example.com/video/" while reading response header from upstream, client: 188.40.199.147, server: in.fo, request: "GET /video/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "www.example.com"
【问题讨论】:
标签: typo3 typo3-7.6.x view-helpers tx-news uncaught-exception