Layout missing after migration

Dear ThemeCo,

I’m trying to migrate a single WP multisite ‘blog’ into a stand-alone site. By copying over all themes, plugins and the WP tables specific to the one blog I’ve managed to get it up and running. The multisite is running X-theme and so is the stand-alone site. When opening / editing a page I can see the shortcodes cornerstone uses but when I open the page in the Cornerstone editor, I get a blank page. When viewing the page at the front-end, I do see most of the layout but some styles are missing and the main page template is wrong (it shows the sidebar for instance instead of one of the Cornerstone templates). Is there something in the options table or post meta table that ‘triggers’ Cornerstone into recognizing a page as a Cornerstone page? Do you have any tips in how to migrate an X-theme / Cornerstone site from multisite to standalone?

Many thanks in advance,
Sander.

Hi Sander,

It seems that the issue is related to improper migration, I would suggest you re-migrate the site once again by going through the following article on how you can migrate your site.

Please remember that we don’t troubleshoot any migration issues as they are outside the control of our products.
Thanks

Thanks for your reply. I have imported a multisite into my localhost environment and did a wp-cli search-replace on the urls. The site(s) work it’s just that Cornerstone doesn’t recognize the layout. In order to upgrade my clients from X-theme to Pro I need a working local development environment. I have done migrations like this lots of times and sometimes Cornerstone seems to get confused. Most times it works like a charm. Some more insight into why this is happening would be helpful. Could it be the gui’s? How does Cornerstone know if a page has Cornerstone layout or is just a page with a bunch of shortcodes?

Hi Sander,

I think the problem is with the URL which needs to be replaced after the migration process. To replace the URL in place of WP CLI commands, you can use the Velvet Blues Update URLs plugin, which will help you same on this. And Cornerstone recognize the page having the related content with a few parameters, and checking the shortcode is one of those.

Thanks for understanding

I see. I’ve managed to trace the point where CS decides if a page has Cornerstone layout back to the uses_cornerstone() function, and noticed that a page needs to have at least the _cornerstone_data meta field. It seems the import DID fail and imported only SOME post_meta but not all. So you were right :wink:
I prefer to fully understand an issue, using a plugin might work but then I might not understand fully what is causing the problem. Many thanks for your patience.

Hi Sander,

You are most welcome :blush:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.