安装ECMall后报PHP Strict Standards错误,请问如何解决

Strict Standards: Non-static method ECMall::startup() should not be called statically in /htdocs/ecmall/index.php on line 22
Deprecated: Assigning the return value of new by reference is deprecated in /htdocs/ecmall/eccore/controller/app.base.php on line141
Deprecated: Assigning the return value of new by reference is deprecated in /htdocs/ecmall/includes/ecapp.base.php on line 137
Strict Standards: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in /htdocs/ecmall/app/frontend.base.php on line 363

Strict Standards: Declaration of Message::display() should be compatible with BaseApp::display($n) in /htdocs/ecmall/eccore/controller/message.base.php on line 329

等类似错误提示的时候(PHP5.2.*版本的同样有这情况),可以考虑我们下面给出的解决方法:

1)问题分析:该错误是PHP环境配置的问题,并非程序问题;

2)找到php.ini 文件,将 error_reporting 的值改为:error_reporting  =  E_ALL & ~E_NOTICE

3)重启Apache或者IIS。

4)完毕

时间: 2024-08-28 01:17:32

安装ECMall后报PHP Strict Standards错误,请问如何解决的相关文章

ECSHOP安装或使用中提示Strict Standards: Non-static method cls_image:

随着ECSHOP的不断发展,越来越多的人成为了ECSHOP的忠实粉丝.由于每个人的服务器环境和配置都不完全相同,所以ECSHOP也接二连三的爆出了各种各样的错误信息.相信不少新手朋友在ECSHOP安装过程中都碰到过类似下面这样的错误提示吧.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /....../install/includes/lib_instal

android手机上安装apk时出现解析包错误的一个解决办法

今天下午在学习安卓开发时,学习开发文档中的gridview时,在模拟器上调试程序一切正常,如下图所示: 但当将bin目录下的HelloGridView.apk拷贝到M8安卓系统后进行安装时,出现了“解析包错误”的提示,在网上搜索答案未果后,经过和以前的例子相对比,发现了我在创建android工程时,由于使用的SDK为2.3.3版本,所以选择的minSdkVersion="10",而m8的android版本为2.2.所以试着将AndroidManifest.xml中的minSdkVers

ldap安装配置过程中遇到的错误,以及解决方法

错误1: [[email protected] openldap]# ldapsearch -LLL-W -x -H ldap://etiantian.org -D "cn=admin,dc=etiantian,dc=org" -b"dc=etiantian,dc=org" "(uid=*)" Enter LDAP Password: ldap_bind: Invalid credentials (49) 错误描述: 搜选的时候,提示ldap_b

ecshop安装过程中的问题:cls_image::gd_version();不支持JPEG;Deprecated: preg_replace();Strict Standards;

在安装Ecshop的时候,遇到好多好多问题: 1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\X\www\ecshop\install\includes\lib_installer.php on line 31 解决:找到install/includes/lib_installer.php中的第31行   return cls_image::gd

php 错误 Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of 解决办法

错误原因:这是由于 php 5.3版本后.要求继承类必须在父类之后定义.否则就会出现Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的错误提示.也就是说必须父类在前,继承类在后.错误参考页面.bugs点php点net/bug.php?id=46851  (不能发表带链接的网址) 上面清楚地解释了出现此类错误的具体原因.解决办法:在wordpress

ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法

今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418 解决办法: 打开cls_template.php文件中发现下面这段代码: $tag_sel = array_shift(explode(' ', $tag));忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传

已解决:Strict Standards: Only variables should be passed by reference in

今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418 解决办法: 打开cls_template.php文件中发现下面这段代码: $tag_sel = array_shift(explode(' ', $tag));忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传

PHP Strict standards:Declaration of … should be compatible with that of…(转)

今天把原来一份很老的PHP代码导入到了PaaS上,出现了许多Strict standards:Declaration of … should be compatible with that of…这样的错误,字面意思好像是说函数不匹配,看了下出错的函数,都是子类重写的基类函数. 上网搜索了一下,发现许多帖子基本都抄的一样,说什么这是由于 php5.3版本后,要求继承类必须在父类之后定义,如果父类定义在前,继承类在后,就不会出现这个错误.尤其是http://bugs.php.net/bug.php

安装M版本错误问题及解决

1.  openstack认证? 大多数情况下openstack认证后来都会报错,建议在到达生成一个随机值在初始的配置中作为管理员的令牌时,不操作这一步,在后期的配置文件中直接修改admin_token即可.比如配置admin_token=1234567890. [问题描述]openstack认证报如下错误: [解决方法] 1.重新安装openstackclient # yum install python-openstackclient 2.重新配置认证 # export OS_TOKEN=1