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 ');