Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

cannot DELETE

Questions regarding the API
Application Programming Interface
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
verus001
Posts: 22
Joined: Wed Nov 09, 2016 1:12 pm

cannot DELETE
  • Quote

Post by verus001 » Thu Jun 20, 2019 10:16 am

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.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: cannot DELETE
  • Quote

Post by skamasle » Thu Jun 20, 2019 1:14 pm

Hi

What exactly you need to delete ?

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

verus001
Posts: 22
Joined: Wed Nov 09, 2016 1:12 pm

Re: cannot DELETE
  • Quote

Post by verus001 » Thu Jun 20, 2019 1:20 pm

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 [email protected]. 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 [email protected]. 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.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password