安装ecshop出错,Strict Standards: Non-static,Only variables should be passed by referen
1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in C:Apache2.2htdocsyecshopincludeslib_base.php on line 347
找到include/cls_image.php中的678行,发现gd_version()方法未声明静态static,所以会出错。这时候只要:
1)将function gd_version()改成static function gd_version()即可。
1.安装Ecshop首页出现报错:Only variables should be passed by referen
第406行:$tag_sel = array_shift(explode(' ', $tag));
解决办法 1
5.3以上版本的问题,应该也和配置有关 只要406行把这一句拆成两句就没有问题了
$tag_sel = array_shift(explode(' ', $tag));
改成:
$tag_arr = explode(' ', $tag);
$tag_sel = array_shift($tag_arr);
(实验过,绝对可行)
因为array_shift的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值
来源://作者:/更新时间:2013-05-16
顶
踩
相关文章:
最新文章
新热推荐
- 解决Strict Standards: Only variables should be passed by reference in C:\Apache24\htdocs\ecshop\in
- 解决Strict Standards: Non-static method cls_image::gd_version() should not be called statically in ecs
- 解决Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in D:
- 解决Warning: mkdir() [function.mkdir]: No such file or directory in install/includes/lib_installer.php
- ecshop文章自动发布[ecshop帮助文档]