I have a page that I created and then the page was deleted. Going back into a database backup I have, I still have the serialized data entry from the mfn-page-items value in the post-meta table.
Essentially, how would I go about taking the following code (not the full serialized data): and making it the same format as the code that is used when importing/exporting a page in the builder.
Serialized code from database table:
a:5:{i:0;a:2:{s:4:\"attr\";a:17:{s:5:\"title\";s:36:\"Add Background Image to this section\";s:8:\"bg_color\";s:0:\"\";s:8:\"bg_image\";
What I am trying to turn it into (code that is given when you choose to export the builder contents from the page):
Overall, because wp revisions do not work on the builder, I am unable to roll back a page once it has been edited or changed. Is there a better way to do this?
Maybe you should to change format type of database stuff with Builder | Data Storage option under Theme options > Global > Advanced section? Sorry but except this option, we do not have any other solution.
When you go to export a page from the builder, what format is the generated code that is being given to the user for a later import? This is the format I am trying to get the serialized data into so I can import the page properly.
Sorry to bump this thread, but I am trying to achieve the same thing. I have the serialized data from the database - taken from the meta_value field with the 'mfn-page-items' meta_key - this definitely appears to be the Muffin Builder content for the page.
If I update this field in the database with a value from a backup (to try and restore a page) the Muffin Builder (and therefore front end page) are empty.
Based on your instructions to serialize and then encode with base64 I have tried using these tools to:
Thanks for the response. What do you mean by ensuring that both versions are the same though?
I want to overwrite an existing page with an older version. I have the old content from a database backup in serialised form. I thought updating just that database row with the old content would work but it doesn't.
If I take that serialised data and encode it with base64, then paste that into the Muffin Builder Import it doesn't work either.
I'd just like to know if there's a way to make this process work.
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.
Cookies are small text files that can be used by websites to make a user's experience more efficient.
The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.
This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.
You can at any time change or withdraw your consent from the Cookie Declaration on our website.
Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.
Please state your consent ID and date when you contact us regarding your consent.
Comments
sorry but we do not understand what you are looking for exactly. Would be great if you can try to explain it once again more clearer.
If I update this field in the database with a value from a backup (to try and restore a page) the Muffin Builder (and therefore front end page) are empty.
Based on your instructions to serialize and then encode with base64 I have tried using these tools to:
Importing the string this process produces still gives an empty Muffin Builder. Can anyone advise on how to complete this process correctly?
I want to overwrite an existing page with an older version. I have the old content from a database backup in serialised form. I thought updating just that database row with the old content would work but it doesn't.
If I take that serialised data and encode it with base64, then paste that into the Muffin Builder Import it doesn't work either.
I'd just like to know if there's a way to make this process work.