Strict Standards: Only variables should be passed by reference in /var/www/wordpress/ecshop/includes/cls_template.php on line 422
根据提示信息找到指定目录下的文件
我php是5.6的版本,系统是Ubuntu的
用vim 打开cls_template.php
找到其中的一段代码 $tag_sel = array_shift(explode(' ', $tag));
将其改为 $tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);
原因是因为PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,所以这段代码中的explode就得移出来重新赋值