Tagged: ajax 403 editing
For some reason, we have a couple of pages on which I cannot edit the main “Text Block” module. When I try to, I see the pop-up for editing the Text Block module, however it shows just white – it never loads the content or any other fields or settings. And I see this in the JS Console when it happens:
POST https://www.seidengroup.com/wp-admin/admin-ajax.php 403 (Forbidden)
I tried disabling the security plugin and the caching plugin, but that did not help. Other pages can be edited just fine, and the pages can be edited if I copy the site to a Staging server (without deactivating any plugins).
Please help!
Hey aseiden,
Are you using any of the word below in the blocks? If so, it might be getting blocked by the server firewall:
Troubleshoot: Text Block element not loading
This is a rare case but if typing certain words, such as “get“,”include“, “select” or “head” in Text Block element breaks it after saving, there might be a modsec rule in firewall settings causing this issue.
This is a security measure taken by hosting providers and it is not a theme issue. You can contact your hosting providers and ask them to whitelist those words and that should fix the issue.
https://kriesi.at/documentation/enfold/intro-to-layout-builder/#troubleshoot
Best regards,
Rikard
Thank you so much for this suggestion. When I disable ModSecurity for the domain, the editing issue does indeed goes away and the problem is fixed. I will reach out to the host for a fix.