【发布时间】:2014-12-09 22:46:03
【问题描述】:
我最近将旧的 SilverStripe 2.3 网站从旧的 Apache 2.0 服务器迁移到使用 PHP 5.4 的新 nginx。
虽然我设法解决了大部分问题并且我可以访问 admin/assets 文件夹,但我仍然无法访问重要的 admin 页面、站点管理器和仪表板。当我尝试转到站点管理器或仪表板页面时,我得到一个没有错误的空白屏幕。
谁能告诉我为什么会这样?
Nginx 日志
FastCGI sent in stderr: "PHP message: PHP Strict Standards: Declaration of Controller::handleRequest() should be compatible with RequestHandler::handleRequest($request) in /var/www/mydomain/sapphire/core/control/Controller.php
call_user_func() expects parameter 1 to be a valid callback, non-static method Hierarchy::extraStatics() should not be called statically in /var/www/mydomain/sapphire/core/model/DataObjectDecorator.php
【问题讨论】:
-
新版本的 php 在编码标准方面更具限制性。您需要修复这些错误
标签: php nginx silverstripe