I lost all the classes in my whole website, this is about 100 classes at least. I was editing the website, just one tab open at the same time in the builder, and when creating a template and populating it’s preview content to an individual post, on the automatic refresh it creates to apply it, all my classes disappear site-wide.
This is a huge loss, is there any way to recover them? I read on the forum some similar cases, but in my case if I go to my database to wp_options there’s no “bricks_global_classes”, just “bricks_global_classes_trash” (which is empty).
Hi,
Welcome to the forum, and thanks so much for your report(s)!
Usually, it’s sufficient to report either in the forum or by email
Unfortunately, I cannot reproduce the issue, and it’s almost impossible to tell what happened.
However, when I look at your website, I see a handful of classes that are available and in use. Did you create them later, or what kind of classes are they, and where are they coming from?
The only effective means would be a backup, which you hopefully have.
This issue happened last night so I had to solve it asap. I did have a somewhat recent backup locally, so what I did was to simply create a bricks_global_classes and paste the value from my backup, this recovered most of the classes. Still there was work which was done afterwards which I had to manually redo.
This leaves me a bit puzzled though, I have been doing all my client work on Bricks lately and it’s a huge risk the fact that this can happen. I never had such an issue with Oxygen…
I can do daily backups but even then there might be work done on the day that potentially gets lost. Is there any way to prevent this from happening?
I don’t know for certain but it’s possible that some of the people working for the client had been working at the same time on the website (usually on Gutenberg).
EDIT: I see this was flagged as v1.12.1 - this is indeed my current version, but I updated after the issue happened just to see if it might solve it. The bug happened in the previous version of Bricks.
I’m very sorry that this has happened to you. The essential question is what led to it. Maybe it was a plugin conflict, or perhaps someone else was working in the builder in parallel (which is a known issue that should be prevented by the experimental “Global data sync” setting).
The only way to find out what caused it is to find out how to reproduce the problem reliably. Then, we would have a starting point to solve it. Without it, it’s a needle in a haystack…
Global data sync was activated, I always leave it on because I had a similar case a year ago on another website, and in that case it was because I had multiple tabs open editing different pages.
For some context I was trying to set up a template to work with Paid Memberships Pro, but on that moment specifically there was no involvement from the plugin as it was an empty Custom Post Type that I was assigning the template to. So the plugin was active and with some settings on it but not on that post / post type.
I understand it’s very hard to reproduce and find what’s the cause but still it seems unacceptable that a professional tool simply deletes options from the database in such a way and without recovery.
I can understand your frustration - of course this shouldn’t happen, and we do everything we can to prevent/fix these kinds of problems if they do occur.
We must know how to “force” the problem to tackle it, especially in such a complex environment.
I understand, thank you for giving it some time. I’m not sure how it could be implemented, but given that this is not a isolated case, there seems to be loss of class related information in a not-so rarely basis, it could be worth looking at a backup or secondary place to store class information on Bricks internally, to be able to recover in an emergency situation. Bricks is really an amazing tool but it also needs to be hard to break. Thank you again for your time!