ecshop 首页报 Only variables should be passed by reference 错误的解

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

安装完ecshop后,进入其首页,有的人会出现以下的错误提示:

Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 418

在网上搜索了以下,在这里找到了答案:

http://blog.sina.com.cn/s/blog_7dc986fc01013acp.html

具体解决方法是:

到418行将以下代码:
$tag_sel = array_shift(explode(' ', $tag));

修改为:
$tag_arr = explode(' ', $tag);
$tag_sel = array_shift($tag_arr);

然后删除工程目录下的temp文件夹,重新拷贝一份原始的temp文件夹进来,再访问首页,就会发现一切正常了!

回答:
支持下,最模板记录下!