【问题标题】:Bootstrap Package PHP Runtime Deprecation NoticeBootstrap 包 PHP 运行时弃用通知
【发布时间】:2014-11-22 17:12:26
【问题描述】:

尽管官方介绍包 RealUrl 无法正常工作,并且引导包正在生成这些消息:

Core: Error handler (FE): PHP Runtime Deprecation Notice: Non-static method BK2K\BootstrapPackage\Service\CompileService::getVariablesFromConstants() should not be called statically, assuming $this from incompatible context in /Applications/XAMPP/xamppfiles/htdocs/cms/typo3conf/ext/bootstrap_package/Classes/Service/CompileService.php line 52

Core: Error handler (FE): PHP Runtime Deprecation Notice: Non-static method BK2K\BootstrapPackage\Service\CompileService::getCompiledFile() should not be called statically, assuming $this from incompatible context in /Applications/XAMPP/xamppfiles/htdocs/cms/typo3conf/ext/bootstrap_package/Classes/Hooks/PageRendererRender/PreProcessHook.php line 47

其他信息

  • Mac OS X Yosemite
  • XAMPP for Mac OS X
  • php 5.6.3
  • TYPO3 6.2.6
  • 引导程序包 6.2.6
  • 官方介绍包2.0.0
  • RealUrl 1.12.8
  • .htacces rewriteEngine 开启

【问题讨论】:

  • 感谢洛伦兹!我理解并将等待 :-) realUrl 尚未在 TYPO3 V7 下工作。我从一个核心成员那里了解到,这是已知的并将得到解决。

标签: typo3 typo3-6.2.x realurl


【解决方案1】:

您使用的是 PHP 5.6,显然扩展“bootstrap_package”还没有为 PHP 5.6 做好准备。在 PHP 5.6 之前,静态调用非静态方法没有弃用通知,但在 PHP 5.6 中已弃用并引发警告,请参阅 http://php.net/manual/de/migration56.deprecated.php

由于这只是一个弃用警告,这不是问题 ATM,我猜它会由扩展开发者修复。

RealURL“不工作”不是很有帮助的描述。请提供有关发生或未发生的事情的更多信息。

【讨论】:

  • 感谢洛伦兹!我理解并将等待 :-) realUrl 尚未在 TYPO3 V7 下工作。我从核心成员那里了解到,这是已知的,将得到解决
  • 在 Github 上有一个非官方的、友好的 RealURL 分支,只要没有官方发布就可以与 TYPO3 7 一起使用:github.com/helhum/realurl。 RealURL 的维护者关于兼容性的公告可以在这里找到:dmitry-dulepov.com/2014/12/typo3-70-and-realurl.html
  • 再次感谢。唉,出现了一个新问题:ect_emconf.php 无效,整个站点都消失了。
猜你喜欢
  • 2022-07-09
  • 2017-01-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-11
  • 1970-01-01
相关资源
最近更新 更多