SOLVED: Very slow saving behavior

Hi Teddy,
Are there any errors in the console or the server logs while saving?

Hi @timmse , there are no errors. I have tried that trick with disable MOD SECURITY and works fine
 ok, in this case I can disable mod security but I have other websites/domains on different hosting where mod secuirty disable option is not possible. What can I do in this case? of course slow to save on page.

I have tried the code below in htaccess but doesn’t work.

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
SecRuleEngine Off
SecRequestBodyAccess Off
</IfModule>```

Have you already tried if there’s a difference using Bricks 1.11 beta (in a staging environment)?

Hi @timmse, I haven’t tried yet, I will try today and come back to you with updates.
Thanks.

Hey @teddypetcu, please see: Known issues – Bricks Academy

Hi @timmse I have tried with the latest version bricks 1.11 beta and doesn’t make any difference, the same time of saving a page 50 seconds. I can’t work like this so I have decided to do the development on another server and when I finish the project to move back to the customer’s hosting server. I am preparing now to move to server where I can disable Mod Security for the respective subdomain. Thank you.

@timmse I did use the code:

SecFilterEngine Off SecFilterScanPOST Off SecRuleEngine Off SecRequestBodyAccess Off

from @Riccore, but I have a question. Would it be possible to fix this directly with the Bricks team instead? Disabling mod_security doesn’t seem like the most ideal solution, security-wise. If you know :wink:

Hi @Demas,

The saving delay or error with ModSecurity happens because the server’s firewall is blocking or slowing down the save requests. This isn’t something Bricks can control as it depends entirely on how ModSecurity is set up on your server.

Sometimes this happens if the data being saved (like lots of elements or global classes) is larger than ModSecurity allows. But payload size isn’t the only possible cause. Other ModSecurity rules could also be interfering, so figuring out what’s triggering the issue will depend on your server setup.

While some WordPress products suggest disabling ModSecurity during development, a better approach imo is to configure it appropriately. This is something that whoever is managing the server would need to address. If you’re on managed hosting, your provider should be able to help diagnose and adjust the settings.

As mentioned in our Known Issues article, restrictive ModSecurity rules can sometimes cause this problem. Sharing request logs with your hosting provider and walking them through how to reproduce the issue should help them figure out the cause and adjust ModSecurity for your setup.

1 Like

I dont have modsecurity but i have a AWS WAF activated.

I’m facing this slow saving issue and also it’s very often i get an error while saving saying [object, object]

i only can copy the whole thing, refresh, delete the whole structure and paste, it’s happening very very often.

I could whitelist some request on the WAF but not sure exactly to which urls those save request are calling.

Any ideas?

Hi @danidorado,

the [object Object] issue is probably this one here:

Matej