TransWikia.com

Q: Error 400 Bad Request on basic admin actions like admin/actions/elements/get-modal-body

Craft CMS Asked by Adam Tsai on July 13, 2021

Context:
The client recently upgraded their Craft version along with several of their plugins. I believe this issue started post-upgrade. They are now on Craft 3.4.26.

Problem:
Certain admin actions, like opening a modal or quick saving an entry result in an error 400. We thought it was a CSRF issue so we disabled that in general.php, but still get the same result in Chrome (oddly, disabling CSRF works in Firefox). Also oddly, there is still a cookie called CRAFT_CSRF_TOKEN and if you delete that before performing your action, it will work.

The last piece of information is that I began disabling plugins one by one to see if the functionality was being affected by any of them. We figured out that disabling SEOmatic (v3.3.8) resolved the issue. I’ve also submitted an issue with NYStudio107, but I’m curious how/why a plugin might affect basic functions of the admin like opening a modal.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP