Ecshop and Ucenter Communication fail the ultimate solution! (with php5.3 above, there are other problem solving methods)

Source: Internet
Author: User
Tags deprecated rar

The situation is as follows: After the site transfer server, rebuild the database and transfer files, there is a communication failure, workaround:

1. Login Ecshop Backstage--member management--member integration, point Ecshop

2. Also in the member integration, point Ucenter, and then enter the information, the completion will let you re-login backstage.

3. After completion, in the application of ucserver, the situation should be communication failure. Click Edit, pull down the bottom, and copy the app's ucenter configuration information.

4. Open the Ecshop under the data/config.php, paste the copied things to the bottom.

5. Update the various caches.

6.ecshop home try to log in, the head will show

Phpstrict standards:declaration of Ucenter::login () should is compatible with Integrate::login ($username, $password, $re member = NULL) in \includes\modules\integrates\ucenter.php on line php Strict standards:declaration of Ucenter::add_us ER () should is compatible with Integrate::add_user ($username, $password, $email, $gender =-1, $bday = 0, $reg _date = 0, $ Md5password = ") in \includes\modules\integrates\ucenter.php on line-php Strict standards:declaration of Ucenter::set _cookie () should is compatible with Integrate::set_cookie ($username = ", $remember = NULL) in \includes\modules\integrate S\ucenter.php on line 52

Here the explanation has been transferred, but the system has a problem because the parent object of the loaded module does not define the name of the function parameter that is inconsistent with the child class.

7. Open the prompt file and edit it. For example the first one above is \includes\modules\integrates\ucenter.php, open him and then find login (), instead he prompts for login ($username, $password, $remember = NULL). After the completion of the update cache, then go to Ucenter to see there will be surprises.

-----------------------------------The following are the ways to modify other ecshop issues----------------------------------------------

1, php5.4 to deal with problems when installing, Strict Standards:non-static method Cls_image::gd_version () should not being called statically in \instal l\includes\lib_installer.php on line 31
Resolution: Find the 31st line in Install/includes/lib_installer.php return Cls_image::gd_version (); and then find the Include/cls_ 678 rows in image.php, the Gd_version () method is found to not declare static statics, so an error occurs. As long as:
Change function gd_version () to static function Gd_version ().

2, installed after the Warning:require (languages//common.php): Failed to open stream:no such file or directory in \includes\init.php o N Line 120
Cache problem missing configuration information missing file temp\static_caches/shop_config.php
Tested in Ecshop forum Http://help.ecshop.com/data/backup/ECShop_V2.7.3_UTF8_release1106.rar downloaded file There is a problem, go back to/HTTP Download.ecshop.com/2.7.3/ecshop_v2.7.3_utf8_release1106.rar Test after download is no problem.

3, after installation appears Strict standards:only variables should be passed by reference in \includes\lib_main.php on line 1329
$ext = End (Explode ('. ', $tmp));
Modified to:
$ext = Explode ('. ', $tmp);
$ext = End ($ext);
Strict standards:only variables should be passed by reference in \includes\cls_template.php on line 418
Tag_sel = Array_shift (Explode (", $tag));
Modified to:
$tag _arr = Explode (", $tag); $tag _sel = Array_shift ($tag _arr);
Array_shift () argument is passed by reference, more than 5.3 by default can only pass specific variables, and not through the function return value end (&array) also the same (there will be a function of end, also need to split into two lines).
Update cache to background after modification

4, backstage Strict standards:redefining already defined constructor for class Alipay in \includes\modules\payment\alipay.php on Line 85
Background Update cache

5, Strict standards:mktime (): You should is using the time () function instead in \admin\sms_url.php on line 31
PHP version Problem Mktime () modified to time ()

6, Strict standards:redefining already defined constructor for class Alipay in \includes\modules\payment\alipay.php on Li NE 85Call Stack
This is the difference between PHP4 and PHP5.
The constructor method in PHP4 is a method with the same name as the class, starting with PHP5 and using __construct () as the construction method, but still supports the PHP4 construction method. If used at the same time, if the same name method is in the previous case, the error will be

Only need to move function __construct () to functions with the same name

7, deprecated:assigning The return value of new by reference was Deprecated in \admin\sitemap.php on line 46

$SM =& new Google_sitemap ();

The "=&" symbol is not allowed to be used in the program after version 5.3. If your site appears deprecated:assigning the return value of the new by reference was deprecated in error, do not worry, first locate the wrong file, find out if it is used in the program "=& ", for example, the Aztec cat has just located the program found in the website program, found that the use of" =& "symbol, remove the ' & ' symbol after the program runs normally.

8, ecshop2.7.3 GBK version after installation in php5.4, the classification name text does not display the problem
Htmlspecialchars () from the php5.4.0 version of the third parameter string encoding the default value changed to UTF-8, and ecshop2.7.3 GBK version of the Chinese encoding is GB2312 encoded, with the current default parameters inconsistent, Causes all Htmlspecialchars () characters to be processed cannot be displayed.
Workaround:
$str _converted = Htmlspecialchars ($str, Ent_compat, ' GB2312 ');
It is recommended that you do not install GBK encoding ecshop under php5.4.

Ecshop and Ucenter Communication fail the ultimate solution! (with php5.3 above, there are other problem solving methods)

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.