Medi Deletion: Error in deleting the attachment.
-
When trying to delete (Delete permanently link) media files from the media library, we are receiving this error as a JavaScript alert “Error in deleting the attachment.” If the page is reloaded, the media file is actually gone/deleted.
In the browser dev console, the AJAX details for the /wp-admin/admin-ajax.php call are as follows:
Headers Tab:
Response Headers –HTTP/1.1 200 OK
Date: Wed, 13 Jul 2022 00:35:26 GMT
Server: Apache/2.4.52 (Ubuntu)
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Access-Control-Allow-Origin: hcny.projectmiso.biz
Access-Control-Allow-Credentials: true
X-Robots-Tag: noindex
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
X-Frame-Options: SAMEORIGIN
Access-Control-Allow-Methods: POST, GET
Cache-Control: public, no-transform
Content-Length: 4
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8`Request Tab:
action=delete-post&id=205771&_wpnonce=xxxxxxxResponse Tab:
1The issue can be reproduced in Production, Staging and Dev servers – all running Ubuntu 20.04 and Apache 2.
Already checked dir/file permissions and looks okay (664)
Any guidance would be appreciated. We are a software development team. So, feel free to be technical.
Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Medi Deletion: Error in deleting the attachment.’ is closed to new replies.