Problems During ecshop installation: cls_image: gd_version () and JPEG not supported

Source: Internet
Author: User
Tags echo date

When installing ecshop, there are two problems:

1. Strict standards: non-static method cls_image: gd_version () shocould not be called statically in D: \ x \ www \ ecshop \ install \ des \ lib_installer.php on line 31

Solution: Find row 31st in install/cmddes/lib_installer.php, return cls_image: gd_version (), and find row 678 in include/cls_image.php. The gd_version () method does not declare static, therefore, an error occurs. At this time, as long:

1) Change function gd_version () to static function gd_version.

2) or change the 31st line return cls_image: gd_version () in install/cmddes/lib_installer.php:

 

1 $ P=NewCls_image ();2 Return $ P-> Gd_version ();

2. When checking the environment, the system prompts: whether JPEG is supported is not supported.

Solution: Check that the libjpeg. Lib library and GD2 library are both loaded and normal. Check the source code of ecshop and find row 100th in install/mongodes/lib_installer.php. JPEG is written as JPG,

Which of the following statements is true:

 
$ Pai_enabled= ($ Gd_info['Jpeg support '] =True)?$ _ Lang['Support']:$ _ Lang['Not _ support'];

Why is it that ecshop is wrong, because when I print the array $ gd_info, the key name in it is: JPEG support. The values in the $ gd_info array directly call the system environment variables.

 

3.Default Time Zone problems:Warning: Date_default_timezone_get (): it is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected the timezone 'utc' for now, but please set date. timezone to select your timezone. inD: \ x \ www \ ecshop \ install \ des \ lib_installer.phpOn Line225

Solution: Method 1: Remove ";" before date. timezone in PHP. ini and change it to date. timezone = PRC;

Method 2: Use ini_set ('date. timezone ', 'Asia/Shanghai') in the page header ');

Method 3: Use date_default_timezone_set () in the header to set date_default_timezone_set ('prc'); // echo date ('Y-m-d h: I: s') in the East eight time zone ');

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.