You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 1, 2019. It is now read-only.
This is probably not a bug specific to CMS Toolkit, but I couldn't think of a better place to put it.
Example:
The milestonemeta_value is stored in an array of strings:
…"milestones": [
"Determine how much you can afford to spend on a home",
"Decide if it’s the right time to buy a new home",
"Gather your application paperwork"
],
…
This data is exported to WordPress's XML format in a serialized form, like so:
…
<wp:postmeta>
<wp:meta_key>milestones</wp:meta_key>
<wp:meta_value><![CDATA[a:3:{i:0;s:52:"Determine how much you can afford to spend on a home";i:1;s:50:"Decide if it’s the right time to buy a new home ";i:2;s:34:"Gather your application paperwork ";}]]></wp:meta_value>
</wp:postmeta>
…
After attempting to import into a different WordPress installation, the JSON output for the field shows:
…"milestones": [
"a:0:{}",
"a:3:{i:0;s:52:\"Determine how much you can afford to spend on a home\";i:1;s:50:\"Decide if it’s the right time to buy a new home \";i:2;s:34:\"Gather your application paperwork \";}"
],
…
For some reason, the data is not being correctly unserialized. It could be being exported incorrectly, imported incorrectly, or both.
Things we've tried:
Using WP-CLI to export and import the data. WP-CLI definitely doesn't export it correctly. It shows an empty serialized array: