WordPress.org

Ready to get started?Download WordPress

Forums

no old images show up in media library after migration (7 posts)

  1. xanathon
    Member
    Posted 4 years ago #

    I migrated a lot of articles to another WP-installation by using the xml export feature and importing this file into the new system. I also migrated the uploads directory to the new location via ftp. After that I changed all paths in the articles via sql

    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

    The old images show up in the posts fine after doing that, but they do not appear in the media library at all. If I upload new images, the appear fine in the article, go to the correct folder /wp-content/uploads/2009/10/ and sho up in the media library, but all my old media do not show up.

    What can I do to get them back into the media library?

    I used the search but that did not come up with any solutions (but maybe my search terms were suboptimal).

    Any help would be appreciated.

  2. thefearless
    Member
    Posted 4 years ago #

    reupload them, pretty simple

  3. xanathon
    Member
    Posted 4 years ago #

    They are already uploded, as I stated above.

  4. alism
    Member
    Posted 4 years ago #

    Have you checked everything is correct on the Admin > Settings > Miscellaneous page?

  5. xanathon
    Member
    Posted 4 years ago #

    Yes, I did that, the path to the file folder is set correct.

    Is the second path the complete URL or is it the serverpath?

  6. xanathon
    Member
    Posted 4 years ago #

    Okay, known problem, found a solution:

    http://wordpress.org/extend/plugins/add-from-server/

  7. dutchtreatinc
    Member
    Posted 4 years ago #

    I had the same problem after I changed the default upload folder and unchecked 'organize into month & year'. I manually changed the paths in the wp_posts and wp_postmeta tables to fix it.

Topic Closed

This topic has been closed to new replies.

About this Topic