Upgrade: Upgrade ucenter to version 1.6.0 or later.

Source: Internet
Author: User

After the ucenter upgrade is complete on some sites, you are still prompted to upgrade the ucenter to version 1.6.0 or later. The reasons for incorrect ucenter version numbers and solutions are as follows, there may be several files and solutions:

1. ucenter files are not completely uploaded, at this time you can download a ucenter Program (http://download.comsenz.com/UCenter/1.6.0/), re-override the program and then re-upgrade.

2. It may be discuz! X has not accessed the correct ucenter:

1) check that your directory contains several ucenter directories, such as uc_server, ucenter, and UC.

2) If there are multiple ucenter directories, go to the database and check which ucenter database has more Member tables. The table names may be pre_ucenter_members, uc_members, and cdb_uc_members, write down the Database Name and table prefix of the table.

3) If there are multiple ucenter directories, check data/config in the ucenter directory one by one. inc. the Database Name and table prefix of the database in the PHP file. Check which directory's config information is consistent with the database name and table prefix noted down in step 1, and then write down the ucenter directory name, this ucenter is the ucenter you actually use.

4) finally go to discuz! In the config/config_ucenter.php file of X, check whether the address of uc_api is consistent with the ucenter address, database name, and table prefix you noted down. If not, change it to the information you noted down earlier, then use discuz! X. You can access the ucenter again in the background.

3. The ucenter 1.6.0 version is saved in the setting table. During the upgrade, the following SQL statement is executed to update the version:

  1. Replace into uc_settings (K, v) values ('version', '1. 6.0 ');
Copy code

If the version number is incorrect, you can execute the above statement in the backend-webmaster-database-upgrade and manually update the ucenter version.

4. If you are sure that you have successfully upgraded the UC to version 1.6, you can modify the upgrade file code.

Open the updata. php file and find the code.

  1. If (version_compare ($ version, '1. 5.2 ') <= 0 ){
Copy code

Modify the code:

  1. If (version_compare ($ version, '1. 5.2 ')> = 0 ){
Copy code

This skips the check.

5. You can directly access http: // your website/install/update. php? Step = prepare upgrade

Check and eliminate the preceding four methods to solve the problem of incorrect ucenter version number. If you have better methods, please share them with us.

 

Upgrade: Upgrade ucenter to version 1.6.0 or later.

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.