Forums

Media library : wrong file URL for existing images (6 posts)

  1. Juscher
    Member
    Posted 1 year ago #

    Oops I just figured out I posted in a resolved thread :

    http://wordpress.org/support/topic/wrong-file-url-for-existing-uploaded-images?replies=8

    Well this is not resolved...

    I have the same issue although I did not upgrade to 3.0 ! My blog is still in 2.9 and I did nothing special. But suddenly today it occured to me that all images dated 27/3/2009 or older have this issue : they are displayed neither in my media library nor in post galleries.

    Indeed, their URL contains the site directory path :

    http://www.ready.to.get.free.fr/wp-content//mnt/104/sdb/a/6/www.ready.to.get/wp-content/img_4650.jpg

    Although the URL should be simply like this :

    http://www.ready.to.get.free.fr/wp-content/img_4650.jpg

    An example of broken gallery :

    http://www.ready.to.get.free.fr/index.php/2008/05/un-soleil-estival/

    I checked the database, all is fine. So it is a WP function which is playing wrong.

    I do not remember what happened on the day until which all media are corrupt, and I do not think the items were corrupt since then - I would have seen it ! Maybe it is the day when I checked the option to organize my media in year/month folders ??

    Anyway, this has nothing to do with upgrading to WP 3.0 or multi-site.

    Could someone please help me repair this ? There are more than 1000 images involved !!

  2. Juscher
    Member
    Posted 1 year ago #

    And when you click on an image thumbnail in the gallery it opens the attachment page, where the file URL is also wrong...

  3. Juscher
    Member
    Posted 1 year ago #

    When I say that the DB is fine, I mean that a tool like this :

    http://wordpress.org/extend/plugins/search-and-replace/

    would change nothing, since the URLs (guid) are right in the DB.

  4. Juscher
    Member
    Posted 1 year ago #

    Is there no solution for this critical issue ?

  5. Juscher
    Member
    Posted 1 year ago #

    Please help...

  6. Palanthir
    Member
    Posted 1 year ago #

    Seems media uploader uploads files correctly to any folder you want, but there is something wrong with some php files . Maybe functions.php ? I don't know why, when you are in subfolder blog admin panel in media tab , all thumbs are broken and the url file looks like http://www.domain.com/mainblog/blogno2/files/image.jpg and should looks like http://www.domain.com/mainblog/wp-content/uploads or eventually http://www.domain.com/mainblog/wp-content/blogs.dir/%BLOG_ID%/files/ or http://www.domain.com/mainblog/wp-content/blogs.dir//$blog_id/files

    I know everywhere write I should install WP MU in root directory. But what if it isn't possible and I just have to install WP MU in subdirectory? Which files should be edited and corrected?

Topic Closed

This topic has been closed to new replies.

About this Topic