PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > ecshop教程 > 正文

    ECShop出现Strict Standards: Only variables should be passed by

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference inF:\www.xxx...
    今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference inF:\www.xxxx.com\cls_template.phpon line418
     
    解决办法:
     
    打开cls_template.php文件中发现下面这段代码:
     
    $tag_sel = array_shift(explode(' ', $tag));
     
    忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,所以这段代码中的explode就得移出来重新赋值了
     
    $tagArr = explode(' ', $tag);
     
    $tag_sel = array_shift($tagArr);
     
    这样之后顶部的报错没掉了,左侧和底部的报错还需要去ecshop的后台点击清除缓存才能去除。
     
    多思考,多创新,才是正道!
     
    http://www.aspku.com/cms/ecshop/64511.html
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-104-2906-1.html
    相关热词搜索: