1. Solution for installing ECShop in PHP 5.4.X environment & ldquo; schemdes/cls_template.php on line 406 & rdquo.
Split $ tag_sel = array_shift (explode (& lsquo;, $ tag) into two sentences.
$ Tag_arr = explode (& lsquo;, $ tag );
$ Tag_sel = array_shift ($ tag_arr );
The array_shift () parameter is passed by reference. By default, more than 5.3 can only pass specific variables, but cannot return the end (& array) function, you also need to split it into two rows ).
2. Solution for installing ECShop in PHP 5.4.X environment & ldquo; schemdes/lib_base.php on line 346 & rdquo.
Change function gd_version () in cls_image.php to static function gd_version.
3. Click the solution of the shop opening Wizard warning in the background.
Several file constructors under admin/include/modules/payment are incorrect. Delete them.
4. Handle problems during php5.4 installation. Strict Standards: Non-static method cls_image: gd_version () shocould not be called statically in \ 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:
Change function gd_version () to static function gd_version.
5. Strict standards: Only variables shocould be passed by reference in \ mongodes \ lib_main.php on line 1329 appears after installation.
$ Ext = end (explode ('.', $ tmp ));
To:
$ Ext = explode ('.', $ tmp );
$ Ext = end ($ ext );
6. Strict standards: Only variables shocould be passed by reference in \ shortdes \ cls_template.php on line 418
Tag_sel = array_shift (explode ('', $ tag ));
To:
$ Tag_arr = explode ('', $ tag); $ tag_sel = array_shift ($ tag_arr );
7. When the ECSHOP background "shop settings" error is reported, Strict Standards: mktime (): You shocould be using the time () function instead in/www/web/zhuli/public_html/admin/sms_url.php on line 31.
Php version problem mktime () changed to time ()
8. the ECSHOP background "shop settings" error "Strict Standards: mktime (): You shocould be using the time () function instead in/www/web/zhuli/public_html/admin/shop_config.php on line 32.
Php version problem mktime () changed to time ()
3 Strict standards: Only variables shocould be passed by reference in \ mongodes \ lib_main.php on line 1329 appears after installation
$ Ext = end (explode ('.', $ tmp ));
To:
$ Ext = explode ('.', $ tmp );
$ Ext = end ($ ext );
Strict standards: Only variables shocould be passed by reference in \ shortdes \ cls_template.php on line 418
Tag_sel = array_shift (explode ('', $ tag ));
To:
$ Tag_arr = explode ('', $ tag); $ tag_sel = array_shift ($ tag_arr );
The array_shift () parameter is passed by reference. By default, more than 5.3 can only pass specific variables, but cannot return the end (& array) function, you also need to split it into two rows ).
Update cache in the background after modification
4 Background Strict standards: Redefining already defined constructor for class alipay in \ des \ modules \ payment \ alipay. php on line 85
Update cache in the background
5 Strict standards: mktime (): You shocould be using the time () function instead in \ admin \ sms_url.php on line 31
Php version problem mktime () changed to time ()
6 Strict standards: Redefining already defined constructor for class alipay in \ des \ modules \ payment \ alipay. php on line 85 Call Stack
The difference between php4 and php5
In PHP4, the constructor is a method with the same name as the class. Starting from PHP5, _ construct () is used as the constructor, but PHP4 constructor is still supported. If the same name method is used at the same time, an error will be reported
You only need to move function _ construct () to a function with the same name.
7 Deprecated: Assigning the return value of new by reference is deprecated in \ admin \ sitemap. php on line 46
$ Sm = & new google_sitemap ();
The "= &" symbol cannot be used in programs after version 5.3. If the Deprecated: Assigning the return value of new by reference is deprecated in error occurs on your website, do not worry. First locate the file with the error, find out if "= &" is used in the program. For example, azcat just located the website program and found that the program shown in the figure below uses the "= &" symbol, the program runs normally after removing the '&' symbol.
8 PHPStrict Standards: Declaration of ucenter: login () shocould be compatible with integrate: login ($ username, $ password, $ remember = NULL) in \ includes \ modules \ integrates \ ucenter. php on line 52 PHP Strict Standards: Declaration of ucenter: add_user () shocould be compatible with integrate: add_user ($ username, $ password, $ email, $ gender =-1, $ bday = 0, $ reg_date = 0, $ md5password = '') in \ des \ modules \ integrates \ ucenter. php on line 52 PHP Strict Standards: Declaration of ucenter: set_cookie () shocould be compatible with integrate: set_cookie ($ username = '', $ remember = NULL) in \ includes \ modules \ integrates \ ucenter. php on line 52
PHP5.4: If the method name of the subclass is the same as that of the parent class, the parameter list of the subclass must be the same as that of the parent class.
Modify the methods in the interface file
9 after ecshop2.7.3 gbk is installed in php5.4, the category name text is not displayed
Htmlspecialchars () from php5.4.0 the default value of the third parameter string encoding is changed to the UTF-8, and ecshop2.7.3 gbk version of the Chinese encoding is GB2312 encoding, and the current default parameters are inconsistent, as a result, all characters processed by htmlspecialchars () cannot be displayed.
Solution:
$ Str_converted = htmlspecialchars ($ str, ENT_COMPAT, 'gb2312 ');
We recommend that you do not install gbk-encoded ecshop in php5.4.