The MU forums have moved to WordPress.org

Old images not deleted (4 posts)

  1. orvar
    Member
    Posted 15 years ago #

    After upgrading to mu 2.6.2 I have a problem deleting images. Images uploaded after the upgrade are deleted without a problem. But images uploaded prior to the upgrade are only deleted from the system/db but not the hard disk of the server.

    This is not a due to file system permissions. My upgrade history is 1 to 1.5 to 2.6.2.

    Does anyone else have this problem?

  2. VentureMaker
    Member
    Posted 15 years ago #

    Do permissions of those images differ? Can you check this?

  3. orvar
    Member
    Posted 15 years ago #

    No this isn't due to different file permissions.


    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al
    total 0
    drwxr-xr-x 4 wwwrun www 96 2008-10-07 21:53 .
    drwxr-xr-x 3 wwwrun www 72 2007-02-12 23:18 ..
    drwxr-xr-x 5 wwwrun www 120 2007-05-01 20:12 2007
    drwxr-xr-x 4 wwwrun www 96 2008-11-02 01:26 2008
    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2007
    total 0
    drwxr-xr-x 5 wwwrun www 120 2007-05-01 20:12 .
    drwxr-xr-x 4 wwwrun www 96 2008-10-07 21:53 ..
    drwxr-xr-x 2 wwwrun www 152 2007-02-12 23:18 02
    drwxr-xr-x 2 wwwrun www 120 2007-03-29 20:38 03
    drwxr-xr-x 2 wwwrun www 152 2007-05-01 20:12 05
    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2008
    total 0
    drwxr-xr-x 4 wwwrun www 96 2008-11-02 01:26 .
    drwxr-xr-x 4 wwwrun www 96 2008-10-07 21:53 ..
    drwxr-xr-x 2 wwwrun www 48 2008-11-02 01:20 10
    drwxr-xr-x 2 wwwrun www 184 2008-11-02 01:39 11
    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2007/05
    total 28
    drwxr-xr-x 2 wwwrun www 152 2007-05-01 20:12 .
    drwxr-xr-x 5 wwwrun www 120 2007-05-01 20:12 ..
    -rw-r--r-- 1 wwwrun www 23348 2007-05-01 20:12 0208-250-11-reine-lofoten.jpg
    -rw-r--r-- 1 wwwrun www 3154 2007-05-01 20:12 0208-250-11-reine-lofoten.thumbnail.jpg
    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2008/11
    total 36
    drwxr-xr-x 2 wwwrun www 184 2008-11-02 01:39 .
    drwxr-xr-x 4 wwwrun www 96 2008-11-02 01:26 ..
    -rw-r--r-- 1 wwwrun www 6396 2008-11-02 01:39 f5c617efe8930326e190fb11b3d076c2_300x225-150x150.jpg
    -rw-r--r-- 1 wwwrun www 28433 2008-11-02 01:39 f5c617efe8930326e190fb11b3d076c2_300x225.jpg

    The permissions are identical form images uploaded in 2007 and 2008.

    The status after the two images are deleted and also the posts containing them:


    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2007/05
    total 28
    drwxr-xr-x 2 wwwrun www 152 2007-05-01 20:12 .
    drwxr-xr-x 5 wwwrun www 120 2007-05-01 20:12 ..
    -rw-r--r-- 1 wwwrun www 23348 2007-05-01 20:12 0208-250-11-reine-lofoten.jpg
    -rw-r--r-- 1 wwwrun www 3154 2007-05-01 20:12 0208-250-11-reine-lofoten.thumbnail.jpg
    o@s:/srv/www/htdocs/wp-content/blogs.dir/29/files> ls -al 2008/11
    total 0
    drwxr-xr-x 2 wwwrun www 48 2008-11-04 08:46 .
    drwxr-xr-x 4 wwwrun www 96 2008-11-02 01:26 ..

    The image uploaded after the upgrade to 2.6.2 has been deleted from the hard disk of the server but not the older one (from 2007). Neither are displayed under the Media section.

  4. orvar
    Member
    Posted 15 years ago #

    The values for _wp_attached_file in wp_X_postmeta had been corrupted. I haven't found out why yet.

About this Topic