Page 1 of 1

cannot DELETE

Posted: Thu Jun 20, 2019 10:16 am
by verus001
Hi,
For an application I need to DELETE something but I can't.
The information from the programmers is:
https://simplyscheduleappointments.com/ ... ment-type/

I tried to make changes in .htacces and also in /home/[USER]/conf/web/[SITE.httpd.conf]

But nothing works.
Anybody an idea?
thanks, Verus.

Re: cannot DELETE

Posted: Thu Jun 20, 2019 1:14 pm
by skamasle
Hi

What exactly you need to delete ?

I not understand the issue, and you not provide any error log

Re: cannot DELETE

Posted: Thu Jun 20, 2019 1:20 pm
by verus001
I can make appointment types and I need to delete one.
When I hit delete, nothing happens.
The programmer told me that the error is this:

Unable to delete an appointment or an appointment type
If Simply Schedule Appointments is working fine, but you are unable to delete an appointment type, it’s likely because of a server configuration issue. Here are some steps you can take to resolve the problem.

For non-developers
Contact your hosting company and let them know that your server is rejecting API requests using the DELETE method. Ask if they can allow DELETE requests.
If that doesn’t work, get in touch with us at support@simplyscheduleappointments.com. We’ll do our best to help you out and get this working. (Or use the chat bubble at the bottom right to get in touch.)
For developers
Check your .htaccess file for rules that might be rejecting or blacklisting DELETE requests
Check your server configuration to make sure you’re not rejecting DELETE requests
If you’re using Windows hosting, check your applicationhost.config file to make sure you’re not rejecting DELETE requests
If you need help, get in touch with us at support@simplyscheduleappointments.com. We’ll do our best to help you out. (Or use the chat bubble at the bottom right to get in touch.)


So I triend changing the .htaccess file, but had no success.
I also changed the .conf file in /home/[USER]/conf/web/[SITE.httpd.conf] but no succes either.

In the apache log file I can find this:

X.X.X.X - - [20/Jun/2019:13:30:37 +0200] "DELETE /wp-json/ssa/v1/appointment_types/[object%20MouseEvent] HTTP/1.0" 404 113 "https://XXXXXX/wp-admin/admin.php?page= ... ntments%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0"

So, the program tries to delete it but it cannot do that because of restrictions.