安装ECMall后报PHP Strict Standards错误,请问如何解决
2015-12-06 12:47
661 查看
[b]Strict Standards[/b]: Non-static method ECMall::startup() should not be called statically in [b][b]/htdocs[/b]/ecmall/index.php[/b] on line 22
Deprecated: Assigning the return value of new by reference is deprecated in [b][b][b]/htdocs[/b]/ecmall[/b]/eccore/controller/app.base.php[/b] on line141
Deprecated: Assigning the return value of new by reference is deprecated in [b][b]/htdocs/[/b]ecmall/[/b]includes/ecapp.base.[b]php[/b] on line 137
[b]Strict Standards[/b]: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in [b][b][b]/htdocs[/b]/ecmall[/b]/app/frontend.base.php[/b] on line 363
[b]Strict Standards[/b]: Declaration of Message::display() should be compatible with BaseApp::display($n) in [b]/htdocs/ecmall/eccore/controller/message.base.php[/b] on line 329等类似错误提示的时候(PHP5.2.*版本的同样有这情况),可以考虑我们下面给出的解决方法:
1)问题分析:该错误是PHP环境配置的问题,并非程序问题;
2)找到php.ini 文件,将 error_reporting 的值改为:error_reporting = E_ALL & ~E_NOTICE
3)重启Apache或者IIS。
4)完毕
相关文章推荐
- 探索PHP7(一)--性能
- laravel的安装
- cakePHP 入门与应用
- cakephp 框架
- 《PHP+MySQL八大动态Web应用实践》源码修正及分享
- 《PHP+MySQL八大动态Web应用实践》源码修正及分享
- php+apc 安装与优化
- 自定义ContentProvider
- 自定义ContentProvider
- 自定义ContentProvider
- php+apc 缓存
- 自定义ContentProvider
- php生成 二维码
- ThinkPHP框架八验证码和用户的验证
- php的大小写敏感问题整理
- PHP学习随想之“思维逻辑”与“记忆”
- php连接MySQL失败问题解决
- Windows下尝试PHP7提示丢失VCRUNTIME140.DLL的问题解决
- php 入门基础 三
- php入门基础 二