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.
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.
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
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.
2. Go toElementor > Settings > PerformanceThe
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.
To resolve this issue, do the following:
- Log in to WP Admin.
- leave for"Settings" > "General"The
- Enter the correct URL. (Extra characters may not be visible, so delete the entire URL and re-enter it manually).
No comments