ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法

简介: 引用其他网络已解决文章,收藏起来,以便翻阅。侵删装ecshop之后有些可能出现这样的错误:Strict Standards: Only variables should be passed by reference in F:\www.

引用其他网络已解决文章,收藏起来,以便翻阅。侵删

装ecshop之后有些可能出现这样的错误:

Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418

原因:

我的PHP版本是5.4.19,PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,所以这段代码中的explode就得移出来重新赋值了

解决方法:

找到“cls_template” =====》的第418行,你会发现这段代码
$tag_sel = array_shift(explode(' ', $tag));
修改为:
$tagArr = explode(' ', $tag); $tag_sel = array_shift($tagArr);

最后

这样之后顶部的报错没掉了,左侧和底部的报错还需要去ecshop的后台点击清除缓存才能去除。

相关文章
|
3天前
|
JavaScript
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
220 0
|
5月前
Error: Plugin/Preset files are not allowed to export objects, only functions……
Error: Plugin/Preset files are not allowed to export objects, only functions……
|
5月前
|
Rust 小程序
小程序警告:Now you can provide attr wxkey for a wxfor to improve performance
首先,无论什么程序,控制台中的警告都是会影响程序性能的。我们需要减少此类警告的出现,以提高程序的运行性能。 小程序开发的时候,遇到了如下的警告:
85 0
|
缓存 PHP
Composer报错: require(): Failed opening required ‘.../markbaker/matrix/.../functions/adjoint.php‘
Composer报错: require(): Failed opening required ‘.../markbaker/matrix/.../functions/adjoint.php‘
209 0
错误解决办法:‘NULL’ was not declared in this scope
错误解决办法:‘NULL’ was not declared in this scope
225 0
Duplicate methods named spliterator with the parameters () and () are inherited from the types Colle
Duplicate methods named spliterator with the parameters () and () are inherited from the types Colle
50 0
|
前端开发 开发工具 git
|
PHP
Notice: Only variable references should be returned by reference(PHP版本兼容性问题)
摘自:http://sushener.spaces.live.com/blog/cns!BB54050A5CFAFCDD!435.entry PHP5一个很让人恼火的一点就是BC(向后兼容)不是很理想。
1125 0