Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISBAT ... #2604

Open
3 tasks done
jbachman04 opened this issue Apr 16, 2024 · 3 comments
Open
3 tasks done

ISBAT ... #2604

jbachman04 opened this issue Apr 16, 2024 · 3 comments
Labels
[Priority] Low This issue/pull request is not immediate [Type] Bug Something that is not working as expected

Comments

@jbachman04
Copy link

jbachman04 commented Apr 16, 2024

Describe the bug:

When viewing a page in the editor that has the "Services" block and the "Services" block has several entries in it, only the first entry is showing up after the latest update to the CoBlocks plugin.

To reproduce:

  1. Open a page that you have the "Services" block on that has multiple entries in the editor.
  2. If you had multiple entries in the "Services" block, only the first one should be showing up in the editor.

As long as the AutoSave doesn't save the page you are viewing or you manually press Update, the actual published page will display fine to the general public. It only appears to be having issues on the backend.

Expected behavior:

When opening a page in the editor on WordPress, all previous entries in the "Services" block should appear.

Screenshots:

image

image

Isolating the problem:

  • This bug happens with no other plugins activated
  • This bug happens with a default WordPress theme active
  • This bug happens without the Gutenberg plugin active
  • [x ] I can reproduce this bug consistently using the steps above

WordPress version:

6.5.2

Gutenberg version:

Unknown... No Gutenberg Plugin is listed...

@jbachman04 jbachman04 added [Priority] Low This issue/pull request is not immediate [Type] Bug Something that is not working as expected labels Apr 16, 2024
@jbachman04
Copy link
Author

Update: I have tried reloading from a backup and still get the same results. I also tried installing and activating and then deactivating the Gutenberg plugin (latest version) and even tried downgrading the CoBlocks plugin to an earlier version along with an earlier version of WordPress and the same thing still happens.

Any help on this matter would be great as I really don't want to have to recreate over 40 profiles on this site.

@rickcurran
Copy link

I am also seeing this issue occurring, it is a significant loss of block data in a page with almost 70 Services blocks columns in place. I am however struggling to consistently reproduce the issue, I first made a test page, added some services blocks, saved the page and then reloaded and I saw the same loss of block data for some of them. But I then made a second test page and I have yet to see this page fail to work. As such I cannot consistently reproduce it, all I can see is that there is definitely an issue but I can't say if there are mitigating circumstances such as clashes with other plugins etc.

@rickcurran
Copy link

rickcurran commented May 13, 2024

Hi, I've been digging further into this to see what might be happening and I did notice one thing about the page that I was experiencing the error on. Each Services block on the page was set to 3 x Services columns, but looking at the underlying block markup there were 4 there, with the last one containing no block data, title description, image etc. Whereas when I made a new test page with Services blocks the only block markup there was the actual 3 x Services columns.

Here's a sample block markup from the page I was getting the data loss on:

<!-- wp:coblocks/services {"columns":3} -->
    <div class="wp-block-coblocks-services">
        <div class="has-columns has-3-columns has-responsive-columns has-medium-gutter">
            <!-- wp:coblocks/service {"imageId":43754,"focalPoint":{"x":"0.40","y":"0.57"}} -->
            <div class="wp-block-coblocks-service">
                <figure class="wp-block-coblocks-service__figure"><img src="https://placehold.co/600x400" alt="" style="object-position:40% 56.99999999999999%" /></figure>
                <div class="wp-block-coblocks-service__content">
                    <!-- wp:heading {"textAlign":"none","level":3,"placeholder":"Write title…"} -->
                    <h3 class="wp-block-heading has-text-align-none" id="joe-smith">Joe Smith</h3>
                    <!-- /wp:heading -->

                    <!-- wp:paragraph {"align":"none","placeholder":"Write description…"} -->
                    <p class="has-text-align-none">Donec id elit non mi porta gravida at eget metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Vestibulum id ligula porta felis euismod semper. Sed posuere consectetur est at lobortis.</p>
                    <!-- /wp:paragraph -->
                </div>
            </div>
            <!-- /wp:coblocks/service -->

            <!-- wp:coblocks/service {"imageId":43753,"focalPoint":{"x":"0.51","y":"0.39"}} -->
            <div class="wp-block-coblocks-service">
                <figure class="wp-block-coblocks-service__figure"><img src="https://placehold.co/600x400" alt="" style="object-position:51% 39%" /></figure>
                <div class="wp-block-coblocks-service__content">
                    <!-- wp:heading {"textAlign":"none","level":3,"placeholder":"Write title…"} -->
                    <h3 class="wp-block-heading has-text-align-none" id="jane-doe">Jane Doe</h3>
                    <!-- /wp:heading -->

                    <!-- wp:paragraph {"align":"none","placeholder":"Write description…"} -->
                    <p class="has-text-align-none">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id elit non mi porta gravida at eget metus. Sed posuere consectetur est at lobortis. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec ullamcorper nulla non metus auctor fringilla. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis.</p>
                    <!-- /wp:paragraph -->
                </div>
            </div>
            <!-- /wp:coblocks/service -->

            <!-- wp:coblocks/service {"imageId":35787,"focalPoint":{"x":"0.63","y":"0.37"}} -->
            <div class="wp-block-coblocks-service">
                <figure class="wp-block-coblocks-service__figure"><img src="https://placehold.co/600x400" alt="" style="object-position:63% 37%" /></figure>
                <div class="wp-block-coblocks-service__content">
                    <!-- wp:heading {"textAlign":"none","level":3,"placeholder":"Write title…"} -->
                    <h3 class="wp-block-heading has-text-align-none" id="bill-smith">Bill Smith</h3>
                    <!-- /wp:heading -->

                    <!-- wp:paragraph {"align":"none","placeholder":"Write description…"} -->
                    <p class="has-text-align-none">Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
                    <!-- /wp:paragraph -->
                </div>
            </div>
            <!-- /wp:coblocks/service -->

            <!-- wp:coblocks/service -->
            <div class="wp-block-coblocks-service">
                <div class="wp-block-coblocks-service__content">
                    <!-- wp:heading {"textAlign":"none","level":3,"placeholder":"Write title…"} -->
                    <h3 class="wp-block-heading has-text-align-none"></h3>
                    <!-- /wp:heading -->

                    <!-- wp:paragraph {"align":"none","placeholder":"Write description…"} -->
                    <p class="has-text-align-none"></p>
                    <!-- /wp:paragraph -->
                </div>
            </div>
            <!-- /wp:coblocks/service -->
        </div>
    </div>
    <!-- /wp:coblocks/services -->

You'll see that it's set to 3 columns but there are four wp-block-coblocks-service blocks contained within the parent wp-block-coblocks-services block. So I think that somehow this extra one may be part of the issue as to why this is occurring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] Low This issue/pull request is not immediate [Type] Bug Something that is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants