码迷,mamicode.com
首页 > 其他好文 > 详细

ECShop 环境搭建报错处理集锦

时间:2015-03-13 12:21:43      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

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

ECShop 环境搭建报错处理集锦

标签:

原文地址:http://www.cnblogs.com/amalieSmile/p/4334491.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!