Site logo

[Resolved] Reusable Block Keeps Disappearing

Home Forums Support [Resolved] Reusable Block Keeps Disappearing

Home Forums Support Reusable Block Keeps Disappearing

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1743710
    Ian

    I have installed GP 2.0 RC2. Created a new reusable block as to not used older ones. After inserting it into a new page, it disappears after saving the page. Doing to edit the reusable block shows a blank block even in code editor mode.

    Any ideas?

    #1743725
    Ian

    So odd. I just created a brand new reusable block. Inserted into new pages. After a few minutes of working on the page, the reusable block is showing an empty HTML section in code editor. Anyone run into this issue before? Contact forms on every page is blank, kind of panicking here.

    #1743891
    Elvin
    Staff
    Customer Support

    Hi there,

    Have you tried disabling all plugins and creating a reusable block again and see if it works? To check if it’s a plugin conflict.

    What were the contents of the reusable block? Can you tell what steps were done? So we can attempt to replicate the issue and see if it’s an actual bug. (Reusable block has been buggy since the recent WP updates)

    Let us know.

    #1743917
    Ian

    I actually did not have time to test. Site is running pay per click 24/7 and all pages lost the Contact Form after I added the reusable block to a new page. So crazy.

    I can say that I was not able to create a new reusable block without it going blank. The solution was to create said block on all pages manually. Was not fun.

    This site is running WP 5.7.1. Maybe something is conflicting but I cannot say for sure. Contents of this reusable block are BG Container with GB Headline + WP Fluent Form block + GB Headline. Not sure that’s much help.

    #1743926
    Elvin
    Staff
    Customer Support

    I actually did not have time to test. Site is running pay per click 24/7 and all pages lost the Contact Form after I added the reusable block to a new page. So crazy.

    If that’s the case, I suggest setting up a staging site so the operations on the live site doesn’t get interrupted. It’s good webdev practice to have one.

    This site is running WP 5.7.1. Maybe something is conflicting but I cannot say for sure. Contents of this reusable block are BG Container with GB Headline + WP Fluent Form block + GB Headline. Not sure that’s much help.

    We’ll have to make sure it’s not a conflict between the mentioned plugins or something else. But since this is a live site. We may really have to go with a staging site to do some tests.

    Can you try making a reusable block with only GB Headline blocks?

    #1875102
    Ian

    So I just ran into this reusable block breaking once again. I am pretty sure I nested it into a Container, saved the Element and voila, the reusable block lost all content inside. I wonder if there is an issue with Reusable blocks + Block Elements?

    #1875218
    Elvin
    Staff
    Customer Support

    Hi Ian,

    If you create a 2 new reusable blocks (one exactly the same, another, completely different) does the same issue still occur?

    There’s a new WordPress update (5.8) since then and the error may be new and is related to the update. It’s worth checking.

    Let us know how it goes.

    #1876575
    Ian

    Hi Elvin,

    This has been an on-going issue for a few months. It happens after setting things up, placing them in locations. Then when I go an edit an existing reusable block, click save, all content disappears. This may not be a GB problem as other publishers have also reported the disappearing of reusable blocks after doing an update on the original content.

    Has anyone on your team encountered this? Hoping someone has a fix somewhere. I thought read somewhere about nesting a reusable block within another reusable block causes an issue so I am not doing that. Maybe this is also related? Any hint on this matter would be greatly appreciated!

    #1876592
    Ian

    Hey Elvin,

    I just did some testing and noticed this:

    1. If I create a reusable block and not nest it in a GB container, everything seems to work fine.
    2. Once I add a reusable block within the GB Container, then things begin to break or behave oddly. These include:

    a. not being able to see the proper icon when I bring up a reusable block using + sign > Reusable tab
    b. inserting a reusable block into a GB Container show no content, just the reusable block itself.
    c. disappearing content when you return to Manage Reusable block to edit original content

    Can you see if this happens on your end?

    #1876636
    Elvin
    Staff
    Customer Support

    I did a simple nested block with this structure:

    Container Block
    > Reusable Block
    >> Container Block
    >>> Headline Block
    >>> Social Icon Block

    And it seems to be working on my end as seen on this link – https://dev-generate-press.pantheonsite.io/?page_id=4043.

    You can see here that the headline and the social icons are showing.

    Can you share an example of a block that’s breaking? It may have something to do with the content of the reusable block.

    #1876728
    Ian

    Thx for testing this with me. Now mind going to your reusable block and make an edit > Save.

    Then open up your page where the reusable block was inserted. Does the updated reusable block content display properly? And what if you edit this page (of where the reusable block was inserted). Does the reusable block display properly?

    #1877064
    David
    Staff
    Customer Support

    Hi there,

    could you edit one of your ‘problem’ Re-usable blocks, switch to Code View ( in the 3 dot menu in tool bar ) and copy the code you have. Then paste it here in the forum. If you can make sure to highlight the code and hit the code button before submitting, i can then take a look to see if there is an issue with the code.

    This will help us eliminate a localised issue, as i can’t replicate the issue locally.

    #1877718
    Ian

    Hey David,

    Thanks for the troubleshooting tips. When the glitch occurs, I see this in code editor:

    <!– wp:block {“ref”:218} /–>

    I spent some time trying to replicate the issue and noticed that all the glitches began when a reusable block is created when I an inside a Block Element. I utilize Elements heavily and it must be when I inside an Element Block, then decide to recreate a ReUsbale block within here that the issues arise. In short:

    1. Create Block Element > save a reusable block that has a GB Container
    2. Inserting the reusable block into another page works fine
    3. It’s after I try re-saving the block, then the glitches begin to show

    Hope that helps.

    #1878900
    Tom
    Lead Developer
    Lead Developer

    Hi Ian,

    Can you share the full code of the re-usable block so we can test it on our end?

    When the content disappears, does it still exist when you edit the re-usable block inside the Reusable block manager?

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