SOLVED: Variables "disconnected" after editing a component

Hi all,

So currently whenever I edit a component (just a tiny change like a padding for example) and hit save it seems to disconnect all the set variables everywhere. To be sure it wasn’t some plugin I deactivated them all and tried again. And what I mean with disconnect is that anything that has been setup in theme styles using variables seems to be gone. Text sizes going back to default for example, utility classes are still there on the elements but not with the actual css etc.

When I open the variables panel and select any spacing or other variable group and just hit save in the top right corner everything works again. Until I go edit a component again and it all gets disconnected again. Any idea if I am doing something wrong or what else could be causing it if not bricks?
There is no custom functions on this site yet, and plugins don’t seem to be the issue either.

Thanks in advance,
Stan

Hi @StanVDB,

If I understand correctly, then the values that I set within the theme styles are gone, if they are set up using variables created via style manager?

If yes, then I’m unable to replicate this issue. :frowning: Can you please record a video of how to replicate it where you show all the needed steps for this?

Thanks,
Matej

Hi Matej,

Thanks for the reply. Here is a video and to explain :

So to be sure, all plugins were deactivated for this to rule out any of those affecting anything.

I then showed a template with some sections text etc. The template has styling through variables that are setup inside bricks.

I then switch to another window where I have my “sandbox“ where I create components.

Quick note it only happens when editing a component.

I edit one of the existing components (doesn’t matter what styling you apply). Hit save and reload that first template page. All applied variables seem to be unlinked.

I then go back to the sandbox open the variable manager and just hit save (doesn’t matter what spacing is selected). I go back to that template hit reload and everything is linked up again.

Then I go back to undo that little change inside the component and hit save, everything gone again etc etc.

Hope you understand what I mean.

Thanks for your time!
Stan

Hi @StanVDB,

Thank you so much for the video. I was trying to replicate this locally on Bricks 2.2 version but I was unable to do so. Every time that I update the component, everything else stays the same and just the component updates over the website.

Because I can’t replicate the issue, can you send temporary login credentials to your website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?
If you have a staging website, then I prefer that one. Especially because I will be changing the style so I don’t want to break anything on live website.

Thank you so much.
Matej

Hi @Matej

Well thank you for your time. So I decided to dig some more myself first. Actually thought perhaps it was a corruption error. But after going through the DB nothing there. It ended up being a setting issue inside bricks…

The CSS loading method, when set to external in combination with guess siteground hosting it seems to cause the issue. I also tried on a clean local setup with that setting enabled and wasn’t able to reproduce.

So Inline it is I’m afraid..

Sorry for taking your time.

Best regards,
Stan

Hi @StanVDB,

So if I understand, you could only replicate this using on SiteGround hosting, but not locally? That might explain why I was unable to replicate it on my site.

If possible, I would still ask you if you can send me the login credentials for your staging website so that I can test and inspect the issue. Ideally, you can create a staging website, so I can disable plugins and change what I need to test this, without breaking the live website.
We would love to figure out what is happening.

Thank you,
Matej

1 Like

Hi @Matej ,

I’ve cleared one of my testing environments (on siteground hosting) and setup a little template. I can confirm that the exact same thing happens there, so definetly the combination of siteground hosting + that specific setting.

Anyhow I sent an email with all the info + login.

Best regards,
Stan

Hi @StanVDB,

As noted over email, we can now replicate the issue, and we’ll update this topic as soon as the fix is released.

Thank you,
Matej

We’ve addressed this in Bricks 2.3.1, now available as a one-click update in your WordPress Dashboard.

Please read the changelog entry before updating, and let us know if you experience any issues.