Bobcares

5 reasons for WordPress “error moving to trash” and how to fix them

by | Oct 26, 2018

WordPress is a commonly used CMS by website owners. WordPress is easy to manage and customer friendly, but it comes with its share of errors and hiccups.

One such error reported in WordPress site management is “Error moving to trash”, when site owners try to delete posts or pages via WordPress admin interface.

At Bobcares, resolving website errors for account owners is a major task we perform as part of ourSupport Services.

When do you see “Error moving to trash” in WordPress?

WordPress posts can be managed using an admin interface at ‘wp-admin’ URL. Website owners can create and delete posts, install plugins, and change themes from here.

The message “Error moving to trash” shows up in WordPress when website owners try to delete posts, pages, comments, etc. from this WordPress admin panel.

The error is reported when users try to delete both published and drafts posts, when deleting a single post or during Bulk deletion of posts.

At times, the post will not get deleted though no error message would be shown. In some other scenarios, moving a post to trash loads a blank page in return.

There are also situations where some posts get deleted and others don’t. Here, we’ll see the various reasons why this happens.

WordPress “Error moving to trash” – Major causes

1. WordPress cache

When a website owner deletes a WordPress post, the post may actually get deleted but still show up in the page or give out a blank page.

This usually happens due to WordPress cache or cache plugins. Browser specific cache, cookie settings or version issues can also lead to similar issues.

2. Plugin errors

Most website owners install and configure plugins in their WordPress site. There are plugins that serve a variety of purposes – SEO optimization, post deletion, cache management, etc.

But malfunctioning plugins or bugs in the code can cause WordPress sites to face issues when certain plugins are installed. The error while moving to trash can occur in such scenarios.

3. Database corruption

WordPress is database oriented CMS. Over time or usage, any tables in the database can get corrupted. This corruption can lead to WordPress “Error moving to trash”.

4. Permission issues

WordPress can have multiple user accounts. But not all users will have the privilege to delete the posts. If a user does not have adequate privilege, he will see error when moving to trash.

The folders and files within WordPress should be configured with proper permissions and ownership, for the site to work fine. Any wrong settings in these cause errors during deletion.

5. WordPress bug

Bugs in WordPress versions can also be a reason for this error. For instance, a bug in version 2.9 throws ‘try again’ error when moving posts to trash.

How to fix WordPress “Error moving to trash”

The error in WordPress while moving posts to trash, is debugged in a step-by-step manner.

1. Clear cache and cookies

If the WordPress still shows deleted posts or a blank page after post deletion, the first step is to clear the browser cache and cookies.

After clearing the cache, the browser is refreshed and site is reloaded. The deleted posts will no longer show up.

2. Disable problematic plugins

The next step is to disable the problematic plugin. One hint is to focus on the recently installed or updated plugins, after which the error started popping up.

Plugins that involve manipulating or managing the posts are another category of suspects. In extreme scenarios, we need to disable plugins one by one, and then test to pinpoint the problem maker.

3. Repair the database

Another fix that helps is to repair the WordPress database. WordPress itself has provision to repair the database via admin portal.

We put the site into maintenance mode and repair the database. Once the database repair is completed, the corrupt tables get fixed.

In certain scenarios, the database may be corrupt beyond repair and need restoration from backups. Repairing the database helps to fix the post deletion error mostly.

4. Check the permissions

If the post deletion error happens to users other than the admin user, verifying the privileges of the logged in user is a crucial step to be performed.

Non-admin users will not be able to delete posts created by other users. We also verify the ownership and permissions of the WordPress folders including trash, and confirm it is fine.

5. WordPress update

If the WordPress running in the site is old buggy version, the last step is to update it to the latest version. Proper backups are taken before updates to revert in case of failures.

Conclusion

“Error moving to trash” in WordPress happens due to various factors in the WordPress site. Today we saw the top causes for the error and how our Support Engineers fix them.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

12 Comments

  1. Eva Grey

    Great post!

    Reply
    • Maheen Aboobakkar

      Thank you Eva

      Reply
    • Maheen Aboobakkar

      Thank you !

      Reply
  2. Dilyana

    Great Post. My issues were fixed after I Clear cache and cookies.
    Thank you

    Reply
    • Maheen Aboobakkar

      We are pleased to learn that you were able to resolve the issue using the information in this article.

      Reply
    • Maheen Aboobakkar

      We are pleased to learn that you were able to resolve the issue using the information in this article.

      Reply
  3. Seema Sachan

    Well done i impress this blog too much and i have solved my problem after clearing cache

    Thanks

    Reply
    • Hiba Razak

      Thanks for the feedback.We are glad to know that it worked for you ? .

      Reply
  4. Daniel

    Invaluable to me! It really works, kudos to Bobcares

    Reply
    • Maheen Aboobakkar

      We are happy to hear that the solution you found in this article allowed you to solve the problem.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF