Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Errors moving posts to trash WordPress

  • SOLVED

Hello, im getting an error when i try to delete posts.

when i hit trash i simply get a page that says - ''Are you sure you want to do this?'' with a link ''try again'' that takes me back to the original page.

its so anoying! ive searched everywhere, theres little about it an ive tried to deactivate all my plugins and updating my config file with

define('EMPTY_TRASH_DAYS', 10 );


but nothing works!

If anyones knows whats wrong please let me know!

Thanks

dave

Answers (2)

2010-12-14

Dan | gteh answers:

Try setting it to
define('EMPTY_TRASH_DAYS', 0 );

That disables the trash so when you delete a post/page, it immediately gets deleted. Do this temporarily.

and then try to delete a post. See if you can at least delete posts while the trash is disabled. Will help you narrow down the problem further.

Then you can add this to your wp-config.php file
define('WP_ALLOW_REPAIR', true);

And visit /wp-admin/maint/repair.php to repair your database.

If that doesn't work I suggest upgrading WordPress to 3.03. There was a bug in 2.9 where this 'try again' error could happen with the trash.


davidsidhom comments:

thanks for quick responce, i tried that but still same problem...im also on wordpress 3.0.3

= /


davidsidhom comments:

it might be worth mentioning that there was a migration which i think is whats caused all this..


Dan | gteh comments:

Do you have access to your database phpmyadmin to run an optimize/repair manually?

Also make sure you've disabled any cache plugins


Dan | gteh comments:

Also can I see the link?


davidsidhom comments:

I dont have access atm...can get it tho...its with One

Ive disabled all my plugins but no change..

link: http://digitallysick.com/wp-admin/post.php?post=2147483647&action=delete&_wpnonce=22bf53fa48


Dan | gteh comments:

Ok here's another suggestion. Re-upload the /wp-admin folder from a new wordpress 3.03 zip file. It's possible some files got corrupt during the upgrade.


davidsidhom comments:

will i lose anything?


Dan | gteh comments:

No. As long as you only replace the wp-admin folder. Don't upload any other files.

To be on the safe side, move your existing wp-admin folder to a temp location like wp-admin-back. Then re-upload the new wp-admin folder.


davidsidhom comments:

still no change....thanks for you help so far. this is fustrating!


Dan | gteh comments:

Ok sorry then.. I'm all out of ideas on this one. Tough to troubleshoot without access to the database and admin section.

I know this is a dumb question but are you logged in as admin? If you are logged in as another user such as an 'contributor' or 'author' you may not be able to delete posts written by other users.


davidsidhom comments:

well i just realised its only the 2 test posts i cant delete, and then when i change the category to archives the author disapears and i still cant seem to delete it.

I could give you access to have a look i would really appreciate it!