今天安裝ecshop的時(shí)候最上面出現(xiàn)了一個(gè)錯(cuò)誤提示:Strict Standards: Only variables should be passed by reference inF:/www.xxxx.com/cls_template.phpon line418
解決辦法:
打開(kāi)cls_template.php文件中發(fā)現(xiàn)下面這段代碼:
$tag_sel = array_shift(explode(' ', $tag));
忘記說(shuō)了,我的PHP版本是5.4.19,PHP5.3以上默認(rèn)只能傳遞具體的變量,而不能通過(guò)函數(shù)返回值傳遞,所以這段代碼中的explode就得移出來(lái)重新賦值了
$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);
這樣之后頂部的報(bào)錯(cuò)沒(méi)掉了,左側(cè)和底部的報(bào)錯(cuò)還需要去ecshop的后臺(tái)點(diǎn)擊清除緩存才能去除。
多思考,多創(chuàng)新,才是正道!
新聞熱點(diǎn)
疑難解答