ECSHOP在PHP5.5及高版本上报错的解决方法
php  /  管理员 发布于 7年前   199
Ecshop却没来得及修改,如果在高版本的php虚拟主机上安装ecshop程序,出现兼容性问题。 小编在本地环境php5.5上安装出现以下两种报错提示: Only variables should be passed by reference php 通过在网络上查找,小编发现并不是只能在低版本的php中安装,也是找到了解决办法,方便大家在php5.5版本上调试程序。小编就在这里把解决方法分享给大家: 先说明第一个问题的解决方法: php 5.3以上版本的问题,和配置有关 只要418行把这一句拆成两句就没有问题了。 将下列: 修改为: 因为array_shift的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值 第二个报错解决办法: 找到文件:include/cls_template.php 将以下代码: 修改成: 小编目前只遇到这样两个报错,如果在程序调试和开发过程中遇到其他的问题,如果能够解决,小编也是会整理出解决方法的。 ecshop 在高版本PHP下报错的解决方法 1 .ecshop提示Strict Standards: Non-static method cls_image 找到346行吧 替换成: 2 .ecshop的时候出现如下错误: 打开ecshop的目录找到includes/cls_template.php 到第300行 把 替换成 3. Strict Standards: Only variables should be passed by reference in E:/web/shopex/includes/cls_template.php on line 422 改成: 4 .会员整合出现 修改成 ucenter.php vbb.php也是这样修改 ucenter.php 210行修改成 127行修改成 5. 数据库备份出现 移到function cls_sql_dump(&$db, $max_size=0)前面 打开includes/cls_sql_dump.php 479行 修改成
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead…?$tag_sel = array_shift(explode(' ', $tag));
$tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr);
return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source);
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source);
::gd_version() should not be called statically inE:/wwwroot/weirenchou/includes/lib_base.php on line 346
return cls_image::gd_version()
$p = new cls_image();return $p->gd_version();
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /ecshop/includes/cls_template.php on line 300
return preg_replace("/{([^/}/{/n]*)}/e", "/$this->select('//1');", $source);
return preg_replace_callback("/{([^/}/{/n]*)}/", function($r) { return $this->select($r[1]); }, $source);
$tag_sel = array_shift(explode(' ', $tag));
$tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr);
phpbb::set_cookie() should be compatible with integrate/includes/modules/integrates/phpbb.php on line 232110行function set_cookie ($username="")
function set_cookie ($username="", $remember = NULL)includes/modules/integrates/phpwind6.php
function add_user($username, $password, $email, $gender = -1, $bday = 0, $reg_date = 0, $md5password = '')
function login($username, $password, $remember = NULL)
edefining already defined constructor for class cls_sql_dump/admin/includes/cls_sql_dump.php on line function __construct(&$db, $max_size =) { $this->cls_sql_dump($db, $max_size); }
Non-static method cls_sql_dump::get_random_name() admin/database.php on line 64
function get_random_name()
static function get_random_name()
您可能感兴趣的文章:
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号