[wp-trac] [WordPress Trac] #48268: Updating failed. Error message: The response is not a valid JSON response.

WordPress Trac noreply at wordpress.org
Tue Jan 21 08:22:52 UTC 2020


#48268: Updating failed. Error message: The response is not a valid JSON response.
-------------------------------+------------------------------
 Reporter:  phpdocs            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by stidch):

 Replying to [comment:7 stidch]:
 > I don't know if the issue I face is exactly the same, but at least looks
 similar.
 >
 > I cannot save any page, which contain a shortcode, which contain a call
 to a java-script method
 >
 > For example:
 >
 > {{{
 > onload="resizeIframe(this)"
 > }}}
 >
 >
 > In my case I try to resize an iframe with the advanced-iframe plugin.
 The full shortcode looks like this:
 >
 > {{{
 > advanced_iframe src="https://xxx.com/script.php?parameter=value"
 frameborder="0" scrolling="no" onload="resizeIframe(this)"
 > }}}
 >
 >
 > In an html block above I'v defined the resizeIframe method.
 >
 > {{{
 > <script>
 > function resizeIframe(iframe) {
 >   iframe.height = "10px" // required for reducing the size
 >   iframe.height = iframe.contentWindow.document.body.scrollHeight +
 "px";
 > }
 > </script>
 > }}}
 >
 >
 > If I remove the part
 >
 > {{{
 > onload="resizeIframe(this)
 > }}}
 >
 > from the shortcode I can successfully save the page. With I can't.
 >
 > I've tried already with disabled plugins and default theme.

 Just found out that my issue is most probably the one which is filed here:
 https://core.trac.wordpress.org/ticket/48698

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48268#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list