By Garrett Luttman on Thursday, 13 April 2017
Posted in General
Replies 1
Likes 0
Views 430
Votes 0
I'm trying to embed an infographic with the HTML block. It renders fine in the EB editor but when i go to publish article, it will not save and i get this error: Unexpected token < in JSON at position 0

Thanks for your help

Here is the code for graphic:
<div class="piktowrapper-embed" pikto-uid="20881940-caption-builder-efficient-adjusting" style="height: 300px; position: relative;"><div class="embed-loading-overlay" style="width: 100%; height: 100%; position: absolute; text-align: center;"><img width="60px" alt="Loading..." style="margin-top: 100px" src="https://magic.piktochart.com/loading.gif"/><p style="margin: 0; padding: 0; font-family: Lato, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 16px">Loading...</p></div><div class="pikto-canvas-wrap"><div class="pikto-canvas"></div></div></div><script>(function(d){var js, id="pikto-embed-js", ref=d.getElementsByTagName("script")[0];if (d.getElementById(id)) { return;}js=d.createElement("script"); js.id=id; js.async=true;js.src="https://magic.piktochart.com/assets/embedding/embed.js";ref.parentNode.insertBefore(js, ref);}(document));</script>
Hi Garrett Luttman,

I've tried to replicate this locally and in your site, seems like the blog post that consist html block (using code given above) was saved correctly: https://www.screencast.com/t/1WYdCJBH https://www.screencast.com/t/Jmxpgo0r . And I've suspected that you're using older version of EasyBlog, would you mind to update it to the latest version and see is the issue is still persist on your end?

p/s: as you undergo update it will effect your core file, you're suggested to backup your customization if any
·
Thursday, 13 April 2017 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post