Hello!
Any ideas what might be causing this problem? After moving the Kirby installation to a dev server, I am unable to save changes in pages, getting the error pictured.
Thanks for the pointer. I did (see screenshot), but I honestly don’t know what the fix might be. I contacted the web hosting support to see if there might be a server settings/.htaccess entry that might be causing it.
The error seems to be thrown because the response is not proper JSON and therefore cannot be parsed. But I can’t see from that screenshot what is returned.
Have you also set ownership of the files correctly, not only permissions?
Hello Sonja, actually I just spoke to the hosting provider and it was a security setting on their part that rejected HTTP PATCH requests. Changing it resolved the issue.
The Http Request Method PATCH is not often enabled. I managed to get it working with the Apache Module mod_allowmethods. This is an experimental module from apache 2.3 onwards, meant to replace usage of Limit. Once enabled, you can add something like the following in your conf file(s):
<Location “/”>
AllowMethods GET POST OPTIONS PATCH
Does anyone know how to get this working on NGINX?
I can’t delete images through the panel … am getting the message “The JSON response from the API could not be parsed. Please check your API connection.”
Oops, see now that the var_dump outputs into the JSON response, causing incorrect JSON and throwing the error. Maybe not the best way to show a hooks example on the docs!