Can’t delete ads, account, etc.
Mind_and_Tits 2 weeks, 2 days ago
Hello! Prompt, for some reason users cannot delete their images from the site, they cannot delete ads, account. With what it can be connected?ihor 2 weeks, 1 day ago developer
This issue may occur if your hosting provider blocks the DELETE method for REST API, you can check the browser developer console for errors when you click the Delete button, if there’s an error please contact your hosting provider.Mind_and_Tits 1 week, 6 days ago
Hi! We contacted the hosting support service, passed on your assumptions. They checked the site for their part and sent a response with the following content:
“From our side, there are no restrictions on the REST API.
In the developer’s console, when trying to uninstall, a 404 error is observed. It is generated by the WP engine.
The error can be caused by the work of themes or plugins of your CMS. Some plugin or theme is blocking requests.
Try to disable all plugins on the site and check. Then enable plugins one at a time. This will help you identify the problematic plugin.
If disabling plugins doesn’t help, then try switching your site to one of the standard WordPress themes.
Unfortunately, hosting technical support does not provide maintenance and customization of custom CMS and their components. For more detailed information, we recommend contacting the support service of the CMS you are using, or its documentation. ”
We followed the algorithm and found that the Hivepress plugin itself creates this error (images, ads, account are not deleted). With what it can be connected?ihor 1 week, 5 days ago developer
Thanks for the details, you can send a link to your site and I’ll check this issue, but I’m 99% sure that it’s caused by the hosting provider restrictions since HivePress registers API routes via the WordPress REST API.ihor 1 week, 2 days ago developer
Yes, it seems to be a hosting provider issue, all DELETE requests return 404 error, and the request URL exists so the request is blocked with 404 error on the hosting provider side.
DELETE /wp-json/hivepress/v1/attachments/2684/ 404
Could it be that the script shown in the screenshots is responsible for this error?
https://drive.google.com/file/d/12PxlEJOXso3Vb-TSq_Mje43mEVHRvbqb/view?usp=sharing, https://drive.google.com/file/d/1FGdzc8JVccitxhPZbNXOiGRZQccmkZ3A/view?usp=sharing, https://drive.google.com/file/d/1ZEydB3XDgopB4NVqGDLtzHN0GuDKtKve/view?usp=sharing
When you click on the “delete” button, the specified error is triggered
And in this screenshot the error is indicated in more detailihor 6 days, 19 hours ago developer
Yes, HivePress registers this API route but for some reason your server returns the 404 error (“not found”). Please try refreshing permalinks in Settings/Permalinks section, if this issue persists then this route is 100% blocked by the hosting provider. The DELETE requests are often blocked for security reasons but this is a standard REST API method, they shouldn’t block it.Mind_and_Tits 6 days, 10 hours ago
Спасибо большое, все заработало!
The topic ‘Can’t delete ads, account, etc.’ is closed to new replies.