Home>Support>SiteOrigin Breaking on Json Import

SiteOrigin Breaking on Json Import

I am trying to import a json file. This seems to break the siteorigin on import.
Upon some investigation is seems it could be one of the following

1. Serialization issue
2. In some cases the post meta comes as empty
3. It could do with commas copy/paste from MS Word

php version – PHP Version 7.2.5
WordPress 4.9.8
Other Plugins – none (all disabled/delted)

file – https://drive.google.com/file/d/1KLQr744aIjixD3cQOrK2gg4fB_y7jUox/view?usp=sharing

Also shared the code below, better to use the file though

{"widgets":[{"text":"<img class="alignnone size-full wp-image-638" src="https://domain.com/wp-content/uploads/2018/10/Screen-Shot-2018-10-01-at-4.13.48-pm.png" alt="" width="429" height="321" />

n<span style="font-size: 18px;">Marcela is an accent coach specialising in English, Italian and Spanish.</span>

n<span style="font-size: 18px;">Born in Chile into an expat family. Raised in Chile, Italy and the UK. She has many years of teaching experience. These include teaching undergraduate courses such as “Public Speaking and Presentation”, Introduction to mass Media and Communications at The American University of Rome as well as ESL. Marcela is tri lingual (English, Italian and Spanish) and has a passion for languages she describes herself as a “sound geek”. She also speaks some French and Portuguese.</span>

n<span style="font-size: 18px;">She has extensive training in accents and phonetics at The Actor’s centre in London, City Academy in London and online Knight Thompson Speechwork. She also has extensive training in music and singing which she often uses with her actors.</span>

n<span style="font-size: 18px;">Marcela holds a BA in International Relations and a Masters degree in Business Communication and also has a qualification to teach English to adults.<span class="Apple-converted-space"> </span></span>

n<span style="font-size: 18px;">Over the years Marcela has helped actors develop and reduce accents as well as work on English with a foreign accent. She has worked with Donald Sutherland, Jonathan Pryce, Romain Duris, Ayelet Zurer, Jude Law, Emilia Clarke, Marton Csokas, Andrew Buchan, Pryanka Chopra, Sebastian Koch, Martina Gedeck, Bruce Willis, Greta Scacchi, Harris Dickinson, Brendan Fraser, Alejandra Onieva, Blanca Romero, Marisa Paredes, Candela Pena.</span>

","text_selected_editor":"html","_sow_form_id":"5bb225e499cdf","_sow_form_timestamp":"1538406894431","panels_info":{"class":"so_text_editor_widget","raw":false,"grid":0,"cell":0,"id":0,"widget_id":"417c83c7-86e9-4fba-9b80-2e0fb77675eb","style":{"background_image_attachment":false,"background_display":"tile"}}}],"grids":[{"cells":1,"style":[]}],"grid_cells":[{"grid":0,"index":0,"weight":1,"style":[]}],"name":"Marcela Marambio"}

Thanks

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ali,

    3. It could do with commas copy/paste from MS Word

    I suspect this is breaking the JSON file. Microsoft Word will rewrite and encode things slightly different than a basic text editor (ie. Notepad) so I wouldn’t use it in situations like this as that is very likely to break serialized data. Please try exporting the data again but don’t use Microsoft Word.

    To clarify, what was the specific reason for opening it in Microsoft Word?

  2. 5 years, 10 months ago Ali Hussain

    I initially copy/pasted form Word, thats how client do it.
    Anyway we can have a fix for this in future? i mean via some php code that once the code is being saved, it is cleaned?

  3. 5 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ali,

    Unfortunately, copying and pasting from Microsoft Word is notorious for modifying and filtering how certain things work – so much so, WordPress has a dedicated Paste from WordPress button (this isn’t something that we can reuse). It’s strongly recommended you don’t use Microsoft Word.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More