Ecshop installation cls_image :: gd_version () and does not support JPEG Solution

In the installation Ecshop when encountered two problems:

一、Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\X\www\ecshop\install\includes\lib_installer.php on line 31

Solution:

Find the install / includes / Line 31 lib_installer.php in return cls_image :: gd_version (); then find include / 678 ​​line of cls_image.php found gd_version () method is not declared static static, it will go wrong. This time as long as:

1) The function gd_version () into a static function gd_version () can be.

2) the line 31 or install / includes / lib_installer.php the return cls_image :: gd_version (); changed:

$p new cls_image();return $p->gd_version();

 

 

Second, the environment is detected when the prompt: whether to support JPEG is not supported.

Solution: Check found libjpeg.lib library, GD2 library also are loaded, they are also normal. View ecshop source code found install / includes / lib_installer.php in line 100, JPEG written JPG, correct should be:

$jpeg_enabled = ($gd_info['JPEG Support']        === true) ? $_LANG['support'] : $_LANG['not_support'];

 

Why is Ecshop wrong, because I print an array $ gd_info time, which is key name: JPEG Support. The $ gd_info array values ​​are directly call system environment variables.

Third, the default time zone issues:

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. in D:\X\www\ecshop\install\includes\lib_installer.php on line 225

Solution:

1, will be in front of php.ini date.timezone ";" removed, replaced: date.timezone = PRC;

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

Method 3 is used in the page header date_default_timezone_set () provided date_default_timezone_set ( 'PRC'); // East eight time zone echo date ( 'Ymd H: i: s');

 

Guess you like

Origin www.cnblogs.com/ecshopcx/p/12081741.html