WordPress.org

Ready to get started?Download WordPress

Forums

Error in deleting (posts, images, categories) (34 posts)

  1. garbokaas
    Member
    Posted 6 years ago #

    Hi, I have recently upgraded to WP2.5. Almost everything works fine but I get an error when I try to delete a post or an image or an category through the corresponding manage tabs.

    Any ideas on this? I already tried re-uploading the WP files but that didn't help.

    Thanx in advance!

  2. bork
    Member
    Posted 6 years ago #

    I've been getting that message too; I can't delete anything from the "manage posts" page.

    A workaround is to edit the post (ie the "write post" page), then click the "delete post" button - this works but isn't nearly as convenient.

    Anyone found a solution to this problem?

  3. Yemoonyah
    Member
    Posted 6 years ago #

    I have a very similar problem, every time I try to delete a post or page I get error messages. I posted about this before (here)

  4. garbokaas
    Member
    Posted 6 years ago #

    Still haven't found a solution fot this problem.

    It looks like not many people have this same problem otherwise we would have found many more posts on this subject. So this makes me suspect it has to do with an installation error. I think I will try to re-install my wordpress software.

  5. Yemoonyah
    Member
    Posted 6 years ago #

    I tried that...didn't help (but at least my uploader and gallery finally work)...groetjes uit Berlijn!

  6. uladz
    Member
    Posted 6 years ago #

    Crap, I can't delete pages and posts too from manage page. Though the workaround proposed by bork works for me.

  7. magicwand
    Member
    Posted 6 years ago #

    Same problem here ... I've even got some empty draft posts that I can't delete

  8. bork
    Member
    Posted 6 years ago #

    I thought 2.5.1 might have fixed this but it's still happening.

  9. dariusofthedark
    Member
    Posted 6 years ago #

    I'm having the same problem...it would be great to actually be able to delete more than one post at a time.

  10. rawalex
    Member
    Posted 6 years ago #

    If you attempt to delete more than one post at a time, the delete processing seems to run completely for each post, and that includes triggering any plugins that react to site changes, such as the Sitemaps plugin or similar.

    I can delete posts one at a time, but it takes LONG time for it to run, and comes very close to timing out PHP to do it.

    It doesn't make any sense because I can go into PHPMyAdmin and delete a post in about 1/10 of a second.

  11. exposeIt
    Member
    Posted 6 years ago #

    I have similar problem with this difference wordpress shows error but it deletes post. I've looked inside of the wp scripts but have no idea why it shows error.

  12. bobiasg
    Member
    Posted 6 years ago #

    Sorry about my english

    I found a solution for this problem.

    In wp-admin/edit-page.php, wp-admin/edit.php. It have code below:

    :::line 160

    $sendback = wp_get_referer();
    
    	if (strpos($sendback, 'post.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/post-new.php';
    	elseif (strpos($sendback, 'attachments.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/attachments.php';
    	$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
    	wp_redirect($sendback);
    	exit();

    function wp_get_referer() return false if $_REQUEST['_wp_http_referer'] or $_SERVER['HTTP_REFERER'] same $_SERVER['REQUEST_URI']. Then, wp_redirect return false on $sendback as is empty. No page to redirect, and white page return to browser.

    My solution:

    Add code below line $sendback = wp_get_referer();

    $sendback = wp_get_referer();
    	// fix error after delete
    	// return false if same RequestUri
    	if ($sendback === false) $sendback = $_SERVER['REQUEST_URI'];

    Thanks.

  13. magicwand
    Member
    Posted 6 years ago #

    Nope, that didn't work either.

  14. nibb
    Member
    Posted 6 years ago #

    This is a massively irritating problem and frankly a major issue with the functionality and usability of the admin interface. Has it not been raised in TRAC? No developer looking at it?

    We are using WPMU which already has a number of glitches we still haven't found answers for, but such a problem in the admin interface is affecting all our blog users too.

  15. Anonymous
    Unregistered
    Posted 6 years ago #

    Im having the same problem too .. pretty anoying. Has anyone found a solution for this issue yet??

  16. relaxedg
    Member
    Posted 6 years ago #

    bump

  17. Gauhar Kachchhi
    Member
    Posted 6 years ago #

    Hell, I came here to find a solution... I have more than 300 old posts that I need to get rid off. I could have don it through PHPmyAdmin if I knew how to use that interface. I am now on WordPress 2.6, but the problem persists...

  18. magicwand
    Member
    Posted 6 years ago #

    You mean there's still no solution?

    I don't know how to raise this issue in TRAC, perhaps someone can do this for us?

    And no, 2.6 does not fix this.

  19. atdblog
    Member
    Posted 5 years ago #

    I'm having the same problem. I tried the solution by bobisag and it didn't work for me either.

    It appears that it's caused by, or having a conflict with, the Google XML Sitemaps plugin (http://wordpress.org/support/topic/189766?replies=7). I tested it with and without the plugin activated and it seems pretty definite that there's an issue with that plugin when deleting posts or drafts. Not to diss the author! I appreciate his hard work. Just saying, it appears to be the problem. His plugin page says to post the problem under the correct tag in this forum.

  20. Anonymous
    Unregistered
    Posted 5 years ago #

    I have the same problem, haven't got the Google Sitemaps Plugin installes, so it's not caused by this.

    Dunno what's causing this, but it is really annoying.

  21. Shaooxz
    Member
    Posted 5 years ago #

    google XML Sitemaps plugin was the problem here. I hope the author will fix it next release.

  22. searchen
    Member
    Posted 5 years ago #

    I can confirm that it was also Google XML Sitemaps that caused the same issue for me.

    Now what?

  23. atdblog
    Member
    Posted 5 years ago #

    I wish I knew. I definitely need the sitemaps plugin so I don't intend to deactivate it. As a workaround I'm going to avoid deleting posts, leaving drafts as drafts and changing any published post I may want to delete to a draft and leaving it in that status (until this is resolved).

  24. arnee
    Member
    Posted 5 years ago #

    Thank you very much for your bug reports. I will release a new version which will try to detect these bulk modifications shortly.

    In the meantime, it should also help to activate the "Build in a background process" option, since this schedules the build process with a delay of 15 seconds. In bulk mode the scheduled process will be cleared and set again for every post so there should only be one build at the end.

    Please let me know if this works for you!

    Thanks and best regards,

    Arne

  25. iPodAddict181
    Member
    Posted 5 years ago #

    I'm having the same problem, whenever I try to delete a page it says "Error in deleting..."

    But I can say that Google Sitemaps is not causing this problem because I do not have it installed.

  26. MNguyen
    Member
    Posted 5 years ago #

    For me, I deactivated all my plugins, and then could delete the posts.

  27. traclist
    Member
    Posted 5 years ago #

    This is a plugin issue. Whenver you install a new plugin you should also test your post to make sure you can delete. Some plugins have not been updated to work with WordPress version 2.6.1

    Some plugins will still work with 2.6.1 but others may not. Check with your plugin provider for a plugin upgrade.

  28. VikiTech
    Member
    Posted 5 years ago #

    Yes Indeed, Deactivation of plugins did help.

    Couldn't quite locate as to which plugin was causing this, but it wasn't XML Site map plugin that caused it. I haven't installed it yet, still the issue was occurring.

    I hope the new version of WP doesn't have this issue! Am on 2.6.2 right now.

  29. issy-m
    Member
    Posted 5 years ago #

    MNguyen,
    Your suggestion worked for me!!
    I can delete all posts...

    Thanks

  30. tonyfloyd
    Member
    Posted 5 years ago #

    worked for me too...however....i updated plugin....to latest version....activated it....and now i get this error when trying to delete post.....

    Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 37684 bytes) in /home/italianh/public_html/madhollywood/wp-content/plugins/google-sitemap-generator/sitemap.php on line 2487

    any ideas?

    i need to have plugin activated....

Topic Closed

This topic has been closed to new replies.

About this Topic