Common Problems and Solutions After WordPress Website Migration

When migrating a website, you may encounter a number of issues, commonly such as mixed media errors (after migrating from http:// to https://), or missing images and other data. This guide will help you resolve these issues and ensure that your website works properly after the migration.

图片[1]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

prescription

Follow the steps below after migration to avoid other problems.

Using the Replace URL Tool

Use the Replace URL tool to ensure that all instances of the URL have been replaced. The plugin may already be doing this, but it may be missing some instances because Elementor stores some of them in files instead of in the database.

Please follow the steps below:

1. Go toElementor > Tools > Replace URLThe

2. Enter your old URL and your new URL.

图片[2]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

3. Click "Replace URL"The

Re-generating CSS

After the migration, the CSS should be regenerated. it will clear the CSS and then generate the cache again. Sometimes it is necessary to clear the cache layers (server cache, plugin cache) because the caching software can prevent Elementor from rewriting the CSS files.

Please follow the steps below:

1. Go toElementor > Tools > GeneralThe

图片[3]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

2. Click"Re-generation of documents and data"The

3. Click"Save changes"The

Programming migration using self-written code

If you're doing the migration programmatically with code you've written yourself, you need to take into account that Elementor's add_post_meta uses WP's wp_unslash function to remove JSON escape strings.

To avoid problems when searching and replacing in the database, you can mimic the code of Elementor's Replace URL tool. This can be found in the file utils.php Find the code in:Website Name\app\public\wp-content\plugins\elementor\includes

It is also possible to migrate your site using the WP CLI.

Other Troubleshooting Tips

Migration background image

Background images are stored in CSS files with absolute URLs. To prevent migration issues associated with these images, theCSS Printing MethodsSet it to inline instead of using an external file. Please follow the steps below:

1. Log in to WP Admin.

图片[4]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

2. Go toElementor > Settings > PerformanceThe

图片[5]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

3. Use the drop-down menu to move theCSS Printing Methodsset toInternally embedded.

Text editor not accessible

If you use the Text Editor widget after migration and find that its editor panel is grayed out, this is because the site's new URL has an extra character, such as a space.

图片[6]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识

To resolve this issue, do the following:

  1. Log in to WP Admin.
  2. leave for"Settings" > "General"The
  3. Enter the correct URL. (Extra characters may not be visible, so delete the entire URL and re-enter it manually).
图片[7]-WordPress网站迁移后的常见问题及解决方案-光子波动网-免费分享跨境知识和技术知识
© copyright statement
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments