WordPress.org

Ready to get started?Download WordPress

Forums

Imported posts but the images are all broken (5 posts)

  1. grayhood
    Member
    Posted 3 years ago #

    http://grayhood.com/

    I had to delete an old version of wordpress due to a hack, updated to a clean version of 3.2.1 the post data imported but now the images are all missing.

    any advice would be most appreciated.

    thank you.

  2. grayhood
    Member
    Posted 3 years ago #

    actually looks like the images posted prior to 2010 are fine. Do i need to move the 2010, 2011 folders out of the uploads directory?

    december 2009 ok:
    http://grayhood.com/2009/12/santagram/

    jan 2010 not ok?
    http://grayhood.com/2010/01/2010-new-years-resolution/

  3. jeezyo
    Member
    Posted 3 years ago #

    dont know why, but its trying to find your images in the wrong place. in the 2010 example, heres where its looking:
    <img class="alignnone size-full wp-image-529" title="resolution" src="http://grayhood.com/domains/grayhood.com/html/wp-content/uploads/2010/01/resolution.jpg" alt="" width="560" height="420">

    So this part "domains/grayhood.com" probably shouldnt be there. You could probably do a database search and replace http://wordpress.org/extend/plugins/search-and-replace/ to look for "http://grayhood.com/domains/grayhood.com/html/" and just replace it with "http://grayhood.com/" -- id guess that would fix it.

  4. grayhood
    Member
    Posted 3 years ago #

    that certainly looks like the problem. Have you tried search and replace on 3.2.1? Looks like there are some sour reviews?

  5. jeezyo
    Member
    Posted 3 years ago #

    hmmm...unfortunately (or fortunately), i havent had the need to use it in a while. You can try to do it the manual way if you have access to phpmyadmin http://www.hongkiat.com/blog/how-to-search-and-replace-wordpress-in-blog-post/ (scroll to the second method).

Topic Closed

This topic has been closed to new replies.

About this Topic