本文共 889 字,大约阅读时间需要 2 分钟。
1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:wwwecshopinstallincludeslib_installer.php on line 31
lib_installer.php的31行调用了gd_version()函数,但是该函数未申明静态调用。
解决方法:
找到include/cls_image.php中的678行将 function gd_version() 改为 static function gd_version();
2.Strict Standards: Only variables should be passed by reference
解决方法:
找到\includes\cls_template.php 将 $tag_sel = array_shift(explode(' ', $tag)); 改为$tagArr = explode(' ', $tag);$tag_sel = array_shift($tagArr);
3.Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
还是5.5版本PHP 所触发的问题。
解决方法:
`找到includescls_template.php 288行return preg_replace("/{(*)}/e", "$this->select('\\1');", $source);改为return preg_replace_callback("/{(*)}/", function($r) { return $this->select($r[1]); }, $source);`转载地址:http://qhuta.baihongyu.com/