ECSHOP在PHP5.3以上出现构造函数报错的解决方法
PHP高版本ECSHOP报错,在PHP5.3以上的版本会出现下面这些错误:
Strict Standards: Redefining already defined constructor for class chinabank in /data/web/includes/modules/payment/chinabank.php on line 85
Strict Standards: Redefining already defined constructor for class paypal_ec in /data/web/includes/modules/payment/paypal_ec.php on line 96
Strict Standards: Redefining already defined constructor for class shenzhou in /data/web/includes/modules/payment/shenzhou.php on line 81
Strict Standards: Redefining already defined constructor for class ips in /data/web/includes/modules/payment/ips.php on line 82
Strict Standards: Redefining already defined constructor for class balance in /data/web/includes/modules/payment/balance.php on line 79
Strict Standards: Redefining already defined constructor for class alipay in /data/web/includes/modules/payment/alipay.php on line 85
Strict Standards: Redefining already defined constructor for class tenpay in /data/web/includes/modules/payment/tenpay.php on line 83
Strict Standards: Redefining already defined constructor for class post in /data/web/includes/modules/payment/post.php on line 79
Strict Standards: Redefining already defined constructor for class paypal in /data/web/includes/modules/payment/paypal.php on line 82
Strict Standards: Redefining already defined constructor for class tenpayc2c in /data/web/includes/modules/payment/tenpayc2c.php on line 83
Strict Standards: Redefining already defined constructor for class cappay in /data/web/includes/modules/payment/cappay.php on line 81
Strict Standards: Redefining already defined constructor for class bank in /data/web/includes/modules/payment/bank.php on line 79
Strict Standards: Redefining already defined constructor for class kuaiqian in /data/web/includes/modules/payment/kuaiqian.php on line 83
Strict Standards: Redefining already defined constructor for class cod in /data/web/includes/modules/payment/cod.php on line 82
解决办法:
将所有的构造函数放到前面:
如alipay.php
将
function __construct() { $this->alipay(); }
放到
function alipay() { }
前面。
- ECSHOP提示Strict Standards: Only variables should be passed by reference in报错的解决方法
- ECSHOP提示Deprecated: preg_replace()报错的解决方法
- 批量设置ECSHOP广告下线时间
- ECshop的/admin/shopinfo.php文件SQL注入漏洞修复方法
- ECshop的/admin/shophelp.php文件SQL注入漏洞修复方法
- ECshop的/admin/comment_manage.php文件SQL注入漏洞修复方法
- ECshop的/includes/lib_insert.php文件SQL注入漏洞修复方法
- ECshop的/admin/affiliate_ck.php文件SQL注入漏洞修复方法
- ECshop批量修改商品详情图片路径中的二级目录地址
- ECshop网站后台管理员密码重置方法