• Resolved beda69

    (@beda69)


    hello

    due to error message: “this URL is to long for this server to process” (after trying to delete over 50 images at once thorough the WP media manager), i went to cPanel and deleted all images in “uploads/2014/08” at once.

    so far so good, but the images are still in WP media manager,
    although they do appear with a interrogation symbol (of course because the image is in realty deleted and not anymore present in the database).
    BUT i am still able to see them as uploaded images and need them to delete all one by one in WP media manager in order to get rid of them (over 1000 images and this in steps of 20 imgs a time???).
    the seems strange to me.

    is this maybe another WP MultiLanguage issue?

    do i need to delete the images elsewhere in cPanel in order to not see them any more in WP media manager?
    no chance to delete more then 20 images a time in WP media manager???

    thank you if you have any advice ….

    beda

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve not used this so can’t guarantee you but this should work. Install this plugin first

    Regenerate Thumbnails

    Regenerate Thumbnails – Version 2.2.0

    In file regenerate-thumbnails.php locate this, at line 357:

    @set_time_limit( 900 ); // 5 minutes per image should be PLENTY
    
    $metadata = wp_generate_attachment_metadata( $image->ID, $fullsizepath );

    Add this block of code between the two lines:

    @set_time_limit( 900 ); // 5 minutes per image should be PLENTY
    
    // find and delete any previous image-sizes
    $info = pathinfo($fullsizepath);
    $ext = $info['extension'];
    $pattern = str_replace(".$ext", "-*x*.$ext", $fullsizepath);
    foreach (glob($pattern) as $filename) {
    	@unlink($filename);
    }
    
    $metadata = wp_generate_attachment_metadata( $image->ID, $fullsizepath );

    This should delete any previously generated image-sizes, including older outdated sizes before creating the new sizes.

    Thanks to Ov3rfly if it works.

    Thread Starter beda69

    (@beda69)

    solved by server adjustments

    thanks for effort on this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘deleting images’ is closed to new replies.