1、ECSHOP错误Redefining already defined constructor for class如何解决
打开includes/cls_capcha.php,将函数
function captcha($folder = ‘‘, $width = 145, $height = 20) { if (!empty($folder)) { $this->folder = $folder; } $this->width = $width; $this->height = $height; /* 检查是否支持 GD */ if (PHP_VERSION >= ‘4.3‘) { return (function_exists(‘imagecreatetruecolor‘) || function_exists(‘imagecreate‘)); } else { return (((imagetypes() & IMG_GIF) > 0) || ((imagetypes() & IMG_JPG)) > 0 ); } }
与函数
function __construct($folder = ‘‘, $width = 145, $height = 20) { $this->captcha($folder, $width, $height); }
位置调换。
二、其他的错误,详细修改措施,可根据以下链接做处理
http://my.oschina.net/xiaohui249/blog/335867
时间: 2024-10-08 21:43:43