ecshop在php5.4下报错的解决办法:1、打开“cls_template”文件,并修改“$tag_sel=array_shift(explode(' ',$tag));”;2、修改“static”;3、修改cls_captcha文件。
本教程操作环境:windows7系统、PHP5.4版、Dell G3电脑。
PHP5.4环境下ECSHOP网站报错问题集锦
运行Ecshop首页出现报错:
出现下面这就话:
Strict Standards: Only variables should be passed by reference in D:\**\includes\cls_template.php on line 406 第406行:$tag_sel = array_shift(explode(' ', $tag));解决办法 1 5.3 5.4以上版本的问题,应该也和配置有关 只要406行把这一句拆成两句就没有问题了
$tag_sel = array_shift(explode(' ', $tag));改成:
$tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr);打开 includes/cls_captcha.php
找到下面这段代码
function __construct($folder = '', $width = 145, $height = 20) { $this->captcha($folder, $width, $height); }将它移到
function captcha($folder = '', $width = 145, $height = 20)的上边。
以上就是ecshop在php5.4下报错怎么办的详细内容!
查看更多关于ecshop在php5.4下报错怎么办的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did52645
ecshop在php5.4下报错怎么办
阅读:42次