【问题标题】:typo3 backend does not parse: syntax error, unexpected 'class' (T_CLASS)错字3后端不解析:语法错误,意外的“类”(T_CLASS)
【发布时间】:2016-03-21 14:22:47
【问题描述】:

我刚刚在 Typo3 6.2.19 上安装了 Yet Another Gallery 4.0.7。当我尝试打开后端模块时,我只收到此错误:

解析错误:语法错误、意外的“类”(T_CLASS)、需要标识符 (T_STRING) 或变量 (T_VARIABLE) 或 /var/www/clients/client6/web32/web/typo3conf 中的“{”或“$” /ext/pt_extlist/Classes/Domain/Configuration/Filters/FilterConfig.php 在第 351 行

截图:

【问题讨论】:

    标签: typo3 typo3-6.2.x


    【解决方案1】:

    错误来自扩展“列表生成器”。该代码使用您的 PHP 版本可能不支持的 Class::class 语法。检查您是否正在运行 PHP 5.5 或更高版本。

    【讨论】:

      【解决方案2】:

      你应该尝试像这样调用类:

      'Vendor\YourController\Task\Yourclass'
      ,而不是
      \Vender\YourController\Task\YourClass::class

      【讨论】:

        猜你喜欢
        • 2016-03-05
        • 1970-01-01
        • 1970-01-01
        • 2015-11-19
        • 1970-01-01
        • 2018-07-23
        • 1970-01-01
        • 2013-10-11
        • 2023-03-18
        相关资源
        最近更新 更多