V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gouera
V2EX  ›  Linux

关于nginx网站的问题

  •  
  •   gouera · 2013-11-15 17:41:37 +08:00 · 3198 次点击
    这是一个创建于 3826 天前的主题,其中的信息可能已经有所发展或是发生改变。
    同样的内容,在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
    3 条回复    1970-01-01 08:00:00 +08:00
    SAGAN
        1
    SAGAN  
       2013-11-15 19:23:52 +08:00
    6.2 5.5是什么?

    把"报错"的服务器php.ini里error_reporting的E_STRICT和E_DEPRECATED去掉
    shiny
        2
    shiny  
       2013-11-15 21:00:43 +08:00
    PHP 的写法有点问题,没有适应新版本,解决方法用楼上的就行了,或者能改改更佳。
    gouera
        3
    gouera  
    OP
       2013-11-16 08:14:52 +08:00
    @SAGAN 谢谢, 6.2是centos的版本。。。5.5的rh。。
    这种错误和nginx的配置没有关系吧,
    php测试页面已经能显示了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3344 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 713ms · UTC 13:38 · PVG 21:38 · LAX 06:38 · JFK 09:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.