Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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!

    #502425

    Please ignore above issue… There was some kind of silent HTTP request blocking in server, still unknown.

    #502482

    Hi,

    Glad you found the problem, please let us know if you should need any more help on the topic.

    Regards,
    Rikard

    #503099

    Just 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/

    #503249

    Hey!

    Glad you figured it out and thank you for sharing your solution :)

    Best regards,
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.