导航
点击关闭

ecshop报错提示PHP Strict Standards Only variables should be passed by reference in

2018-12-28 14:58:29   稿源:
PHP5.6环境下报错出现如下提示: PHP Strict Standards  Only variables should be passed by reference in 解决方法: includes/lib_main.php 查找:     $ext = end(explode(
PHP5.6环境下报错出现如下提示:
PHP Strict Standards  Only variables should be passed by reference in 

解决方法:
includes/lib_main.php
查找:
    $ext = end(explode('.', $tmp));
    $tmp = basename($tmp,".$ext");

替换为:
    $tmp_arr = explode('.', $tmp);
    $ext = end($tmp_arr);
    $tmp = basename($tmp,".$ext");

includes/cls_template.php
查找:
$tag_sel = array_shift(explode(' ', $tag));

替换为:
            $tag_arr = explode(' ', $tag);
            $tag_sel = array_shift($tag_arr);

后台清除缓存问题完美解决。
标签: ecshop
移动手机端
扫码二维码
返回顶部