This is on EE 2.7.2. I have just moved a site to a new server. The site was working perfectly before hand, but now that it was migrated all the backend form submissions only return JSON. Some examples:
- Save an entry, I get a page with just: {"message_success":"Entry Has Been Updated"}
- Clear the cache: {"message_success":"Cache files have been deleted"}
- Loading entries page: big list of JSON entries
- Saving an entry: {"message_success":"Entry Has Been Updated"}
- Sometimes while reloading one of these JSON pages, it just logs the user out and shows a page with "Logged Out" and I have to wait a few minutes before I can load the backend login form.
Some submissions seem to work: Saving Template General Configuration: works as expected
I was wondering what could cause this. I am assuming it is a path setting, but wasn't sure what would only output JSON instead of loading a page. I also noted that there are no JS errors, but the developer log is full of this message:
Deprecated function generate_json() called in system/expressionengine/third_party/structure/mcp.structure.php on line 220. Deprecated since 2.6. Use the native JSON extension (json_encode()) instead.
Is anyone familiar with this issue and what may be causing it? Thanks!