I'm getting an error when trying to publish an update on my site. The error says:
"There was an error generating the XML document."
Can you give me an idea of why this would occur? All other pages are updating just fine.
I'm getting an error when trying to publish an update on my site. The error says:
"There was an error generating the XML document."
Can you give me an idea of why this would occur? All other pages are updating just fine.
I've narrowed it down to an HTML5 code for a SCRIBD embed code. Not sure what the deal is though...
Are you using the FTP-XML method for publishing?
Yeah, I am. I've figured out that is has something to do with the HTML 5 code from SCRIBD embed function. Not sure what is causing it. I've resorted to using the flash embed code (yuck!). Any ideas?
Can you post the embed code here?
Worship Musician! Magazine - SeptOct 2011<iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/66886070/content?start_page=1&view_mode=list&access_key=key-1y9cq6lodhoos3hokpdu" data-auto-height="true" data-aspect-ratio="0.769811320754717" scrolling="no" id="doc_18900" width="100%" height="600" frameborder="0"></iframe><script type="text/javascript">(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })();</script>
Hey, so here's the issue:
Cannot have ']]>' inside an XML CDATA block.
Seems like the JS is generating some client side code that's causing the XML publishing to fail. Essentially - you can't have this code inside an editable area from what I can tell, or at least you have to find a way to disable it while inside Pagelime. So you could do:
<iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/66886070/content?start_page=1&view_mode=list&access_key=key-1y9cq6lodhoos3hokpdu" data-auto-height="true" data-aspect-ratio="0.769811320754717" scrolling="no" id="doc_18900" width="100%" height="600" frameborder="0"></iframe><script type="text/javascript">if (window. isCmsPageEditorPreview) { (function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })(); }</script>
Note the window. isCmsPageEditorPreview check before running the JS.
Give that a shot and let me know.
You must log in to post.