Home Support General HivePress Can’t delete ads, account, etc.

Can’t delete ads, account, etc.

  • Author
    Posts
  • Mind_and_Tits

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

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

    And we attach 2 screenshots:
    https://drive.google.com/file/d/1TbzhsjlV9EDu7aQ12lpCyEp7FDOfWfgM/view?usp=sharing, https://drive.google.com/file/d/1wTe3RKT-n-x8MpnF6kxOOddhnsELJJGQ/view?usp=sharing

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

    Mind_and_Tits

    https://***.net/

    ihor 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

    Mind_and_Tits

    When you click on the “delete” button, the specified error is triggered

    Mind_and_Tits

    And in this screenshot the error is indicated in more detail

    https://drive.google.com/file/d/14FF89GVXjmsJ3xhAMv81i5gMahRg2RMA/view?usp=sharing

    ihor 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

    Спасибо большое, все заработало!

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Can’t delete ads, account, etc.’ is closed to new replies.