- This topic has 5 replies, 3 voices, and was last updated 4 years, 5 months ago by Tom.
August 11, 2015 at 3:12 am #128369carlo bazzo
I moved a site from the development domain to production, everything is fine but I lost every setting about the Sections add-on, e.g. my Home which had several sections it is now empty.
Is there a way to export Sections settings? Also tried your import/export add-on but it seems not effective on Sections. Thank you
CarloAugust 11, 2015 at 8:55 am #128401TomLead DeveloperLead Developer
That’s weird – the Sections settings are stored with all of your content and the other metabox settings.
How did you go about moving your site from development to production? Did you move the entire database over?
There’s no easy way to import/export sections yet, but it is something on my list.
Let me know 🙂August 11, 2015 at 9:38 am #128414carlo bazzo
yes I moved the entire database changing all the strings affected. The pages where we defined some Sections appear empty in the editor, as we did not define any section. We are copying and pasting the sections from the old site to the new one, not so much work, but I would be curious to know the way your add on saves section meta data as I did not see any special table in the database. Thank you
carloAugust 11, 2015 at 9:54 am #128416TomLead DeveloperLead Developer
All of the Sections data is saved into the
When it comes to transferring websites, I like to go with a plugin like this: https://wordpress.org/plugins/duplicator/
It makes quick work of the process and brings everything over 🙂May 2, 2016 at 6:56 am #191055Kevin
today I had the same problem and found the solution for this issue.
When moving from development to production you usually take your database-script and replace all strings with your development-url to the strings of your production-url (e.g. http://localhost/mysite to http://domain.com).
The settings of the sections are saved in JSON format in your database and always consist of the “content”-strings and a checksum (sum of the characters in the content string).
s:62:"Your content with a <a href="http://localhost/mysite">link</a>"
Now, if there is an image or link with your dev-url in one of the sections and you replace it with the production-url, the characters of the “content”-string and the checkum don’t fit together and the sections will not be displayed.
So you always if to check if the strings and the checksums are fitting.
KevinMay 2, 2016 at 9:54 am #191105TomLead DeveloperLead Developer
Ah yes, it’s always a little risky doing mass find and replace URLs in your database.
I prefer using a plugin like this: https://en-ca.wordpress.org/plugins/velvet-blues-update-urls/
- You must be logged in to reply to this topic.