【问题标题】:TYPO3 Error: Uncaught TYPO3 Exception: Class 'TYPO3\CMS\Core\Core\Environment?TYPO3 错误:未捕获的 TYPO3 异常:类 'TYPO3\CMS\Core\Core\Environment?
【发布时间】:2020-06-30 10:01:42
【问题描述】:

我的 TYPO3 网站有问题。昨天网站运行没有问题,但今天我有这个错误:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Class 'TYPO3\CMS\Core\Core\Environment' not found | Error thrown in file /mnt/web524/e2/72/510353872/htdocs/typo3_grau_01/typo3conf/ext/ws_scss/Classes/Hooks/RenderPreProcessorHook.php in line 76. Requested URL: http://flughaefen.eu/index.php?id=1

有人可以帮我吗?

RenderPreProcessorHook.php in line 76 
 $sitePath = \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/';

【问题讨论】:

  • 嗨@TamilTHL 你能告诉我们导致这个问题的代码部分吗?
  • 你的意思是第 76 行? $sitePath = \TYPO3\CMS\Core\Core\Environment::getPublicPath() 。 '/';

标签: php typo3 content-management-system


【解决方案1】:

在 TYPO3 9 中添加了 Environment 类。我看到您使用的是 TYPO3 8.7。所以错误是正确的。您可能更新了扩展 ws_scss。看起来 1.1.14 版是与 TYPO3 8.7 兼容的最后一个版本,因此降级到该版本应该可以解决问题(或更新到 TYPO3 9.5 或 10.4)。

在此处查看 ws_scss 的更多版本历史和兼容性:https://extensions.typo3.org/extension/ws_scss/

【讨论】:

    猜你喜欢
    • 2022-01-23
    • 1970-01-01
    • 2017-11-02
    • 2015-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多