[ECShop]出現Strict Standards: Only variables should be passed by reference in的解決方法

ironman 2023-1-11 128

今天安裝ecshop的時候最上面出現了一個錯誤提示:Strict Standards: Only variables should be passed by reference in /cls_template.php

解決辦法:

開啟cls_template.php檔案中發現下面這段程式碼:

$tag_sel = array_shift(explode(' ', $tag));

PHP5.3以上預設只能傳遞具體的變數,

而不能通過函式返回值傳遞,

所以這段程式碼中的explode就得移出來重新賦值了

$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);

這樣之後頂部的報錯沒掉了,

左側和底部的報錯還需要去ecshop的後臺點選清除快取才能去除。


i love you 3000
最新回復 (0)
返回
發新帖