国内外VPS
主机测评与优惠

ECShop报错:Strict Standards: Only variables should be passed by reference in D:XXXincludescls_template.php on line 422的原因及解决办法

在PHP5.3以上版本安装并运行ECShop时,安装完毕后打开商城时,程序会报错:Strict Standards: Only variables should be passed by reference in D:phpStudyWWWpublicshopincludescls_template.php on line 422,出现这个错误的原因就是PHP版本过高,在PHP5.3以上版本中默认只能传递具体的变量,而不能通过函数返回值传递。

解决办法有两种:

1.降低PHP版本到5.3。

2.按照错误信息中的路径找到并打开cls_template.php文件,把 

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

改成:

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

然后删除程序根目录下tempcaches下所有的文件或者通过后台清除缓存,之后刷新页面即可。

赞(0)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《ECShop报错:Strict Standards: Only variables should be passed by reference in D:XXXincludescls_template.php on line 422的原因及解决办法》
文章链接:https://www.liuzhanwu.com/3364.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

登录

找回密码

注册