Skip Navigation

[Resolved] Rearranging or grouping blocks causes content to be lost

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 13 replies, has 3 voices.

Last updated by Waqar 1 year ago.

Assisted by: Waqar.

Author
Posts
#2665139

I keep coming across an issue. When I rearrange blocks within a Toolset Grid block, or rearrange the Grid cells, or group multiple blocks, etc. the content for those blocks will be lost.

Some examples:
• A Heading block with a dynamic source of post title has changed to having that post title hard coded (no longer dynamic)
• A Heading block with a dynamic source of post title has changed to having a different field hard coded (in this case, a phone number) (no longer dynamic)
• All Fields & Text blocks that had some fields inserted have changed to a hard coded post title

This is incredibly frustrating – I cannot try different layout without losing all of the dynamic sources I have already set up. Surely this isn't intentional? Am I doing something wrong? Do others have this issue or could it be something specific to my site?

#2665339

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I struggled to reproduce this, but perhaps you could give a concrete example of it failing, perhaps share a screen recording with Loom.

On my test site I added a Grid block with several grid cells to a template, and added blocks using dynamic sources to some of the blocks, and a Fields and Text block using shortcodes to another.

You said re-arrange the grid cells, but that's not possible, they are locked, so instead I tried in the block outline dragging blocks between grid cells to move them around.

I didn't experience any problems, the dynamic sources and shortcodes were all still intact.

Before recording a video of the problem, you might want to check if it occurs in a minimal install, with all plugins except Toolset disabled, and using a default WordPress theme.

#2665633

I'm happy to do a video, but is there a way to duplicate my WordPress Archive so I have a copy I can test with? I've had to fix it multiple times, and there is no revision history (at least not that I've been able to find), so I'd rather not mess with the one that's currently working. Thanks

#2665761

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

No, duplicating the archive isn't an option.

You could create a copy of the site on a staging server and demonstrate the problem there (which could also be used for testing).

Or if it is not just a one-off problem, you could create a new archive with some sample content to demonstrate the problem.

#2665855

I created a new archive and quickly put in some of the elements, and was able to reproduce the problem. Here are a couple examples.
Videos:
hidden link
hidden link

I am not able to duplicate the site or play with a new install at this time. But I can provide you with access to this site and this archive if you'd like, the site is still in development.

#2666455

Hi,

Thank you for sharing these screencasts.

Even with the same block and shortcodes, I'm not able to reproduce this behavior on a test website. This suggests that something specific to your website or archive is involved.

Can you please share temporary admin login details, in reply to this message? We'll also need your permission to download a clone/snapshot of the website, in case it needs to be investigated on a different server.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2666665

While you're at it (if it's okay to add to this thread), I have a content template "Loop item in List Vacancies in a Property (detailed)"
Every time I edit this template it adds a row to each of the 6-column grids that are in the template, which adds white space I do not want.
I then have to individually unlock each grid cell and delete it (12 times!). But the next time I edit the content template, it has inserted an empty row again.

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-extra-row-getting-added-when-content-template-is-edited/

#2666947

I have another issue with the Properties Archive. I can open a new ticket if needed but since login info is in this thread I decided to start here.

hidden link uses Properties Archive.

The content is stretching to full width regardless of the theme settings I use. But, if there are no search results, it is boxed correctly (width 1140px; margin 0 auto). So it must be something with the Archive Output, which is a grid. But I cannot figure it out.

And, in trying to find a workaround, I discovered that assigning a class (in the Block's settings under Advanced) to any of the following blocks does not stick: WP Archive, WP Archive Search, WP Archive Output, Grid. In other words, I add a class and update the archive, but the class is never output on the page and the class has disappeared the next time I edit the archive.

I hope you can see why working with Blocks and Toolset is frustrating.

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-content-width-changing-with-the-number-of-results-from-the-view/

#2666949

I'm so sorry but I have another issue.
On the Properties Archive, the map should only show if the search produces results. How do I hide the map if there are no results?
I tried adding a conditional but do not see any options related to the field I am querying (Address).

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-map-should-only-show-if-the-search-produces-results-in-the-archive/

#2667243

Thank you for sharing these details and the permission.

I'll be performing some testing on your website's clone and will share the findings about these points, as soon as this testing completes.

Thank you for your patience.

#2668345

Just wanted to update you that I'm still working on this.

We had an unusually busy forum queue before the weekend but will be able to share the findings with you today.

#2669251

Thank you for waiting as I completed testing around this rather strange issue.

Despite a number of attempts, I couldn't reproduce this issue on a test website. Even on the clone from your website, I could only experience it intermittently.
( about 5-10% of the time)

And when the content of the 'Fields and Text' block changes, you don't have to actually complete the drag-and-drop operation of the blocks.

Selecting the heading block with the dynamic source and the 'Fields and Text' block is enough and when the autosave is processed, the content changes.

My recommendation would be to use the orange 'Heading' block from Toolset and not the default black one from WordPress, when the dynamic source is involved.

Another thing I noticed was that this exceptional issue also is fixed, the WordPress autosave feature is disabled.
( ref: hidden link )

I hope these recommendations will help and for your other questions, I'll follow-up on their respective separate tickets.

#2670779

Hello Waqar,
You said you were only able to reproduce this issue intermittently. Does that mean it's an issue specific to my server?

I can certainly use the orange Heading block instead of the default WP one. But that does not solve the problem for the Fields and Text blocks I am using. And it is worse when Fields and Text lose their settings, because I have often customized a string or multiple lines of fields and text, and I must then recreate it.

I'm confused by your wording: Are you saying that if autosave is turned off, this problem will no longer happen?

Also, is it possible to enable revision history for archive templates? Currently when this problem happens, there is no way for me to revert to a previous version, and I must do everything over again.

#2671377
WPA-autosave.png

> You said you were only able to reproduce this issue intermittently. Does that mean it's an issue specific to my server?

- It is not something specific to your server, since I was able to experience it on my test server.
( the intermittent part meant that it happens very rarely and without any set pattern or linked to any specific steps )

However, it is specific to this specific website, as I couldn't reproduce this on a test website, whenever I created a test website from scratch.

> I'm confused by your wording: Are you saying that if autosave is turned off, this problem will no longer happen?
> Also, is it possible to enable revision history for archive templates? Currently, when this problem happens, there is no way for me to revert to a previous version, and I must do everything over again.

- Yes, I meant that with the autosave feature turned off or with its interval to a higher value, I didn't experience this issue on your website's clone.

If you don't want to turn it off completely, you can set the interval to a higher value like '300' ( every 5 minutes ), by including the following code in your website's 'wp-config.php' file:


define('AUTOSAVE_INTERVAL', 300);

Note: Whether the autosave feature is turned on or off, the revision history is not available for the archives. It does notify you about the last unsaved changes when you visit the archive editor, next time.
( example screenshot attached )