文章給大家介紹在使用ecshop時提示Strict Standards: Only variables should be passed by reference in錯誤問題解決辦法。
ecshop提示Strict Standards: Only variables should be passed by reference in
E:/Tools/ECShop_V2.7.3_UTF8_release1106/upload/includes/cls_template.php
on line 418
這個錯誤,搜索問題原來是php版本的問題,我是用的php5.4版本的,解決辦法如下:
只要418行把這一句拆成兩句就沒有問題了
代碼如下 | 復制代碼 |
$tag_sel = array_shift(explode(' ', $tag)); 改成: $tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr); |
(實驗過,絕對可行) 因為array_shift的參數是引用傳遞的,5.3以上默認只能傳遞具體的變量,而不能通過函數返回值
新聞熱點
疑難解答