Tagged: Code block, white screen of death
-
AuthorPosts
-
September 13, 2015 at 7:50 pm #502381
Hi,
I’m getting some weird behavior when inserting a Google Swiffy animation inside a Code Block element. I wonder if there might be some JS conflict when saving and/or showing page.
How to reproduce it:
1. Convert a SWF simple animation to HTML5 at
https://developers.google.com/swiffy/convert/upload
The resulting HTML renders perfectly in any browser. I’ve tried multiple times, with different animations.2. Create a page, inserting a Code Block element inside a Color Section.
3. Paste generated code, removing html, head, body tags.
Advanced Layout Builder debug field will show something like this:[av_section min_height='' min_height_px='500px' padding='default' shadow='no-shadow' bottom_border='no-border-styling' scroll_down='' id='' color='main_color' custom_bg='' src='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' video_mobile_disabled='' overlay_enable='' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern=''] [av_codeblock wrapper_element='' wrapper_element_attributes='' deactivate_shortcode='aviaTBdeactivate_shortcode' custom_class=''] <script type="text/javascript" src="https://www.gstatic.com/swiffy/v7.3.0/runtime.js"></script> <script> swiffyobject = {"as3":true,"frameRate":29.96875,"frameCount":100,"backgroundColor":-13421773,"frameSize":{"ymin":0,"xmin":0,"ymax":8000,"xmax":11000},"fileSize":7634,"v":"7.3.0","internedStrings":[":::::8c","::::::0T:",":::::6g","::::::1D:","::::::1C:",":::::5k","::::::9R:","::::::R:","::::::3V:","::::::E:","::::::5V:","::::::5U:","::::::C:","::::::5T:","::::::J:", (a lot of code - do not try to use this) "3407D::3634D068g545e"},{"type":2},{"depth":690,"replace":true,"type":3,"matrix":"3407D::3634D922f841b"},{"depth":692,"replace":true,"type":3,"matrix":"3407D::3634D093g550e"},{"type":2},{"depth":690,"replace":true,"type":3,"matrix":"3407D::3634D019g857b"},{"depth":692,"replace":true,"type":3,"matrix":"3407D::3634D109g552e"},{"type":2},{"depth":690,"replace":true,"type":3,"matrix":"3407D::3634D117g873b"},{"depth":692,"replace":true,"type":3,"matrix":"3407D::3634D117g553e"},{"type":2}]}; </script> <div id="swiffycontainer" style="width: 550px; height: 400px"> </div> <script> var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), swiffyobject, {}); stage.start(); </script> [/av_codeblock] [/av_section]
4. When the page is updated, the whole site crash for some minutes.
Any ideas?
Thanks!
September 14, 2015 at 4:08 am #502425Please ignore above issue… There was some kind of silent HTTP request blocking in server, still unknown.
September 14, 2015 at 6:09 am #502482Hi,
Glad you found the problem, please let us know if you should need any more help on the topic.
Regards,
RikardSeptember 15, 2015 at 3:34 am #503099Just in case it could help someone with the same issue, I think I have finally found a solution described in
http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/The only suggestion that worked for me was adding the code below in my wp-config.php file:
/** Trick for long posts */ ini_set('pcre.recursion_limit',20000000); ini_set('pcre.backtrack_limit',10000000);
I guess the original solution was first published at
http://www.undermyhat.org/blog/2009/07/sudden-empty-blank-page-for-large-posts-with-wordpress/September 15, 2015 at 11:52 am #503249 -
AuthorPosts
- You must be logged in to reply to this topic.