您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop模板更新版本的实现方法
梁兴力2025-01-06 09:06:15ecshop商城教程已有3人查阅
导读问题一:商城首页报错 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422
问题一:商城首页报错 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422
解决方法:
找到提示错误的文件 cls_template.php 及行号
把 改成: 并且删除 D:\wamp\ \ecshop\temp\caches下所有的文件
问题二:后台首页报错 Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp\ \ecshop\includes\lib_base.php on line 346
解决办法
找到D:\wamp\ \ecshop\includes\cls_image.php文件
搜索 function gd_version 改成 static function gd_version
问题三:后台-商店设置
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\ \ecshop\admin\sms_url.php on line 31
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\ \ecshop\admin\shop_config.php on line 32
解决办法
根据错误提示 把 mktime() 改成 time()
问题四:后台-起始页
Strict Standards: Redefining already defined c**tructor for class alipay in D:\ \es\includes\modules\payment\alipay.php on line 85
解决办法
1)、错误原因:
PHP 类,有两种构造函数,一种是跟类同名的函数,一种是 __contruct()。从PHP5.4开始,对这两个函数出现的顺序做了严格的定义,必须是 __c**truct() 在前,同名函数在后
2)、
解决方法:
调换一下两个函数的前后位置即可。
以 includes/modules/payment/alipay.php 为例:
将下面这两个函数的位置互换一下就OK了,__contruct()在前,alipay()在后 3)、ECSHOP的很多类文件 都存在这个问题,都需要修改掉。
问题五:后台-数据备份
Strict standards: Redefining already defined constructor for class cls_sql_dump in D:\wamp\ \ecshop\admin\includes\cls_sql_dump.php on line 90
Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in D:\wamp\ \ecshop\admin\database.php on line 64
解决办法
根据错误提示 把 cls_sql_dump的 function __construct()改到 function cls_sql_dump()的前面
把 cls_sql_dump的 function get_random_name()改成 static function get_random_name()
问题六:
Deprecated: Assigning the return value of new by reference is deprecated in \admin\sitemap.php on line 46
$sm =& new google_sitemap();
解决办法
在5.3版本之后已经不允许在程序中使用”=&”符号。如果你的网站出现了Deprecated: Assigning the return value of new by reference is deprecated in 错误,别着急,先定位到出错的文件,查找下是不是在程序中使用了”=&”,例如刚才定位到网站程序中发现了下图的程序,发现使用了”=&”符号,去掉‘&’符号之后程序运行正常
问题七:
Declaration of phpbb::set_cookie() should be compatible with integrate::set_cookie...
解决办法:把function set_cookie ($username="") 改为function set_cookie ($username="", $remember = NULL)即可
问题八:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in..
解决办法:
我遇见了有两处,都在cls_template.php文件中:
1、return preg_replace("/{([^\}\{\n]*)}/e", "\$this->sel ect('\\1');", $source);
替换为 问题解决。
2、 替换为 问题解决
解决方法:
找到提示错误的文件 cls_template.php 及行号
把 改成: 并且删除 D:\wamp\ \ecshop\temp\caches下所有的文件
问题二:后台首页报错 Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp\ \ecshop\includes\lib_base.php on line 346
解决办法
找到D:\wamp\ \ecshop\includes\cls_image.php文件
搜索 function gd_version 改成 static function gd_version
问题三:后台-商店设置
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\ \ecshop\admin\sms_url.php on line 31
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\ \ecshop\admin\shop_config.php on line 32
解决办法
根据错误提示 把 mktime() 改成 time()
问题四:后台-起始页
Strict Standards: Redefining already defined c**tructor for class alipay in D:\ \es\includes\modules\payment\alipay.php on line 85
解决办法
1)、错误原因:
PHP 类,有两种构造函数,一种是跟类同名的函数,一种是 __contruct()。从PHP5.4开始,对这两个函数出现的顺序做了严格的定义,必须是 __c**truct() 在前,同名函数在后
2)、
解决方法:
调换一下两个函数的前后位置即可。
以 includes/modules/payment/alipay.php 为例:
将下面这两个函数的位置互换一下就OK了,__contruct()在前,alipay()在后 3)、ECSHOP的很多类文件 都存在这个问题,都需要修改掉。
问题五:后台-数据备份
Strict standards: Redefining already defined constructor for class cls_sql_dump in D:\wamp\ \ecshop\admin\includes\cls_sql_dump.php on line 90
Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in D:\wamp\ \ecshop\admin\database.php on line 64
解决办法
根据错误提示 把 cls_sql_dump的 function __construct()改到 function cls_sql_dump()的前面
把 cls_sql_dump的 function get_random_name()改成 static function get_random_name()
问题六:
Deprecated: Assigning the return value of new by reference is deprecated in \admin\sitemap.php on line 46
$sm =& new google_sitemap();
解决办法
在5.3版本之后已经不允许在程序中使用”=&”符号。如果你的网站出现了Deprecated: Assigning the return value of new by reference is deprecated in 错误,别着急,先定位到出错的文件,查找下是不是在程序中使用了”=&”,例如刚才定位到网站程序中发现了下图的程序,发现使用了”=&”符号,去掉‘&’符号之后程序运行正常
问题七:
Declaration of phpbb::set_cookie() should be compatible with integrate::set_cookie...
解决办法:把function set_cookie ($username="") 改为function set_cookie ($username="", $remember = NULL)即可
问题八:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in..
解决办法:
我遇见了有两处,都在cls_template.php文件中:
1、return preg_replace("/{([^\}\{\n]*)}/e", "\$this->sel ect('\\1');", $source);
替换为 问题解决。
2、 替换为 问题解决
本文标签:
很赞哦! (0)
上一篇:ecshop添加上传图片的方法
暂无内容 |
暂无内容 |
相关文章
暂无内容 |
暂无内容 |
随机图文
在ecshop商品游客发表评论取消E-MAIL必填的方法
ECSHOP的商品详情页,在用户提交评论的时候,那个“E-MAIL”输入框默认是“必填”的。如果我想改成“E-MAIL非必填”或者干脆“删除这个E-MAIL输入框”ecshop后台新功能权限怎么添加
今天给大家分享一个ecshop必备技能_ecshop后台新功能权限的添加,这是对于每一个新手用ecshop做网赚的必备技能,今天会给大家详细的介绍ecshop商品列表页怎么显示每个商品的评论等级和评论数量
问题描述:我想让商品列表页(category.php)的每个商品的下面显示该商品的评论数量以及评论等级,该如何操作呢?ecshop搜索页标题Title里的商品搜索文字怎么删除
Ecshop搜索页Title里的“商品搜索”四个字,如何才能去掉呢?这个其实很简单的,修改 search.php 文件
留言与评论 (共有 0 条评论) |