How to solve some common problems in WordPress migration _php Skills

Source: Internet
Author: User
Tags import database wordpress migration

One, import database hint datasheet already exists

Zhou Liang Blog To use the host-host 91 for example, to provide the phpMyAdmin function, import database only need to select a convenient database, import on it. Although the method is simple, it is possible to encounter the prompt database XXX table has existed. The reason for this problem may be that the site file was uploaded to the host space after the previous transfer, and once the site was installed, resulting in a new database, creating a new datasheet, causing the data table to be duplicated when the database was re-import. The workaround is to find the existing XXX table for the hint, delete it, and then import it again.

Second, the website files and data upload success, typesetting disorder

First of all, we need to check the site's PHP version of the correct settings, WordPress, the general is the use of 5.3 or 5.4 of the PHP version, if it is 5.2, is likely to lead to the confusion of Web site layout problems. Take the host 91 used by Zhou Liang blog As an example, log in to the control Panel and modify it to version 5.3 in select PHP.

If you modify the PHP version still cannot be effective, then we need to check the site to load the Web site files to load the path is correct. Right-click Browser-Review elements to view the loading of the site, it is possible to find a lot of files are not loaded out, and then see Access Path will find the site access path and site file loading path is inconsistent, so we need to connect to the site's database, Modify the path of the Web site data file loaded in the options table in the database in accordance with the Web site access path.

If you modify the PHP version still cannot be effective, then we need to check the site to load the Web site files to load the path is correct. Right-click Browser-Review elements to view the loading of the site, it is possible to find a lot of files are not loaded out, and then see Access Path will find the site access path and site file loading path is inconsistent, so we need to connect to the site's database, Modify the path of the Web site data file loaded in the options table in the database in accordance with the Web site access path.

Third, access to the home page blank

Log in to WordPress background, appearance-topics to see if you have uploaded a topic that corresponds to enabling migrating sites. If you don't see the previous topic, you will need to add the theme again or wp-content/themes the topic in the Control Panel, and then enable the topic in the WordPress background theme Management Office.

Some of the functions in the website can not be used

Login WordPress background, plug-in management-installed Plug-ins to see whether the Web site plug-ins are all enabled, the corresponding Web site features Plug-ins enabled.

Five, the homepage of the website is accessible, other options click no response or hint 404 error

Login to the host Space Control Panel, open the view hidden file in the file management office to see if the htaccess has the correct content. The contents of the. htaccess file that are generally initialized are:

<p># BEGIN WordPress
<ifmodule mod_rewrite.c>
rewriteengine on
rewritebase/wp/
Rewriterule ^index\.php$-[L]
rewritecond%{request_filename}!-f rewritecond%{request_filename
}!-d
Rewriterule. /wp/index.php [L]
</ifmodule></p><p># End wordpress</p>


You also need to add the same content as the previous site if you have settings redirection or static links.

PS: Recommended method of Plug-in backup
WordPress move is a very good backup of the Web site restore Plug-ins, supporting a full backup of the entire Web site all files and databases, a key restore, you can also send backup files through FTP to other host space, to achieve the site moving. The backup package for this plug-in is very intelligent, and each compressed package can be decompressed separately.

After the plug-in is enabled, set the FTP information for the remote backup host, the maximum volume of each database package and package in the settings > WordPress move.

Then access tools > Backup Manager for Backup, you can back up the database separately, or you can back up the whole station. The backed up files are saved in the backup directory under the plugin, so make sure your host space has enough space for backup files before you back up

After backup, Access tools > Migration Assistant, there are 3 features available:

Change the domain name--You can change the domain name of the current Web site, it will bulk replace the old domain name in the database;

Migration-You can send back files and databases to the remote host space (that is, the FTP set up above), before using this feature, please install the same wordpress and WordPress move in the remote host space, and then the above FTP The remote backup path is set to the backup directory under this plugin, so that when you send a complete file, you can access the remote host space of WordPress move, through the "restore" function to restore, the site moved to achieve.

Restore--You can select a backed-up file to restore from the backup directory.

In the background plugin installation interface Search WordPress move can be installed online

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.