Broken Styles After Site Migration in wordpress 6.1 and Later
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
Bottom line: using a Block Theme caused the styles to go missing.
Background
I wanted to migrate from the BaoTa panel to 1panel, which required migrating my wordpress files. I followed my usual migration process.
- Migrate the website directory
- Migrate the database
1panel has a few quirks, so the full process was:
- Create a new site, still using a php runtime environment
- Copy everything from the test1 site's index directory to the test2 site's index directory
- Keep using the original test1 database, which already had the data imported
- Set the user and permissions under Configuration - Website Directory
- Open the test2 site
Solution
Don't import the database; importing files is fine.
Export and import pages and posts using wordpress's built-in xml export/import feature.
Other styles need to be tweaked manually
Last updated 2024-01-14
Comments 0