Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gouera
V2EX  ›  Linux

关于nginx网站的问题

  •  
  •   gouera · Nov 15, 2013 · 3932 views
    This topic created in 4589 days ago, the information mentioned may be changed or developed.
    同样的内容,在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 replies    1970-01-01 08:00:00 +08:00
    SAGAN
        1
    SAGAN  
       Nov 15, 2013
    6.2 5.5是什么?

    把"报错"的服务器php.ini里error_reporting的E_STRICT和E_DEPRECATED去掉
    shiny
        2
    shiny  
    PRO
       Nov 15, 2013
    PHP 的写法有点问题,没有适应新版本,解决方法用楼上的就行了,或者能改改更佳。
    gouera
        3
    gouera  
    OP
       Nov 16, 2013
    @SAGAN 谢谢, 6.2是centos的版本。。。5.5的rh。。
    这种错误和nginx的配置没有关系吧,
    php测试页面已经能显示了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3393 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    ♥ Do have faith in what you're doing.