Tell us what you are trying to do?
After migrating a site from development to live, we've noticed some query settings for views disappear.
This is the second time in a row this happens.
Do you have any idea what may be the cause of this?
Both times it happened with views for custom types.
After the first migration, we had to set the "content selection" again.
This time, we had to set up the taxonomy filter again.
Hi there,
Would you please give us more detailed information on how you move your website?
The Content Selection items are added to database and it seems the method you used to move the website has an issue.
To test the result, I suggest that you use a plugin such as the ones below to see if you see the same issue or not:
https://wordpress.org/plugins/all-in-one-wp-migration/
https://wordpress.org/plugins/duplicator/
Thanks.
Hi Christopher,
Site-migration maybe wasn't the correct word.
The process we followed:
The physical location of the website didn't actually change.
We've changed A-records to point to a new IP.
We ran a database script to change the baseURL from development to live URL.
This is the database script we ran:
UPDATE wp_options SET option_value = replace(option_value, 'hidden link', 'hidden link') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'hidden link','hidden link');
UPDATE wp_posts SET post_content = replace(post_content, 'hidden link', 'hidden link');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'hidden link','hidden link');
Maybe the MySQL query is altering something Toolset related?
Cheers
Hi,
Thank you for sharing these further details.
Toolset and some other plugins and themes store the data in serialized form in the database. But when a generic search and replace is performed for the domain or baseURL, it can cause an issue with that serialized data.
You'll find some suggestions to avoid this in the following official guide from WordPress:
https://wordpress.org/documentation/article/moving-wordpress/#changing-your-domain-name-and-urls
I hope this helps and please let me know if you need further assistance.
regards,
Waqar
Thanks Waqar,
We'll give it a try next time.
Cheers
My issue is resolved now. Thank you!