ECShop出现Strict Standards: Only variables should be

今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418php

解决办法:缓存

打开cls_template.php文件中发现下面这段代码:函数


$tag_sel = array_shift(explode(' ', $tag));
忘记说了,个人PHP版本是5.4.19,PHP5.3以上默认只能传递具体的变量,而不能经过函数返回值传递,因此这段代码中的explode就得移出来从新赋值了spa

$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);
这样以后顶部的报错没掉了,左侧和底部的报错还须要去ecshop的后台点击清除缓存才能去除。orm

相关文章
相关标签/搜索