Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7223

Editor page breaks with Timeline block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Should have Should have
    • None

      https://www-stage.greenpeace.org/denmark/wp-admin/post.php?post=12710&action=edit

      I stumbled upon this issue just now on the
      staging site (the same page on the dev site has no issues), when I open the
      editor of the page the gutenberg interface breaks and nothing can undo it,
      I tried hard refresh, purging cache, disabling the child theme and the
      custom leads plugin we use, copied to a new draft (new one crashed too),
      deactivation the media library plugin and ticking the new beta substitute
      for it, nothing had any effect. I think the problem is with the timeline
      block, because I tried the content code without it on a new draft and the
      problem was gone. Then I added it back and it crashed again.

      Here is the error I get: TypeError: this.activateMode is not a function
           at
      https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:59604

           at se
      (https://cdn.knightlab.com/libs/timeline3/3.8.12/js/timeline-min.js:11:4747)
           at Function.oo
      (https://cdn.knightlab.com/libs/timeline3/3.8.12/js/timeline-min.js:11:40893)
           at n._createModes
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:59564)
           at n.initialize
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:58973)
           at n.initialize
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:79857)
           at n.initialize
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:73432)
           at h.View
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/backbone.min.js?ver=1.4.1:2:14648)
           at n.constructor
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/wp-backbone.min.js?ver=6.2.2:2:2602)
           at n.constructor
      (https://www-stage.greenpeace.org/denmark/wp-includes/js/media-views.min.js?ver=6.2.2:2:106817)

      And here is the block that I think is triggering it:
      <!-- wp:planet4-blocks/timeline

      {"google_sheets_url":"[https://docs.google.com/spreadsheets/d/e/2PACX-1vT0Fie3_h4p_gOl4YSu-7C_r4NEA01CbSI2i5AGOQJaN5F55yvdMrlwNzzybjV-K85XA85qs6muSa56/pubhtml]"}

      -->
      <div class="wp-block-planet4-blocks-timeline"
      data-render="planet4-blocks/timeline"
      data-attributes="{"attributes":

      {"timeline_title":"","description":"","google_sheets_url":"[https://docs.google.com/spreadsheets/d/e/2PACX-1vT0Fie3_h4p_gOl4YSu-7C_r4NEA01CbSI2i5AGOQJaN5F55yvdMrlwNzzybjV-K85XA85qs6muSa56/pubhtml","language":"en","timenav_position":"","start_at_end":false}

      ,"innerBlocks":[]}"></div>|https://docs.google.com/spreadsheets/d/e/2PACX-1vT0Fie3_h4p_gOl4YSu-7C_r4NEA01CbSI2i5AGOQJaN5F55yvdMrlwNzzybjV-K85XA85qs6muSa56/pubhtml","language":"en","timenav_position":"","start_at_end":false%7D,"innerBlocks":[]%7D%22%3E%3C/div%3E];
      <!-- /wp:planet4-blocks/timeline -->

            dtovbein Dan Tovbein
            skoleva Svilena Koleva
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: