技术解析

关于nginx网站的问题
0
2021-07-20 08:17:29
idczone
同样的内容,在6.2的服务器上面就能访问,php是5.2.17的。
然后我把内容放到5.5的服务器上面去,php是5.3.6的。
就报以下的错误了。 这个是PHP方面的问题还是NGINX设置的问题啊?
trict Standards: Non-static method ECMall::startup() should not be called statically in /usr/local/nginx/html/index.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/nginx/html/eccore/controller/app.base.php on line 141

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/nginx/html/includes/ecapp.base.php on line 185

Strict Standards: Declaration of FrontendApp::jslang() should be compatible with that of ECBaseApp::jslang() in /usr/local/nginx/html/app/frontend.base.php on line 551

Strict Standards: Declaration of Message::display() should be compatible with that of FrontendApp::display() in /usr/local/nginx/html/eccore/controller/message.base.php on line 379
6.2 5.5是什么?
把"报错"的服务器php.ini里error_reporting的E_STRICT和E_DEPRECATED去掉

PHP 的写法有点问题,没有适应新版本,解决方法用楼上的就行了,或者能改改更佳。

谢谢, 6.2是centos的版本。。。5.5的rh。。
这种错误和nginx的配置没有关系吧,
php测试页面已经能显示了

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服
请您留言

感谢您的关注,当前客服人员不在线,请填写一下您的信息,我们会尽快和您联系。

提交