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

  1. grayhood
    Posted 4 years ago #


    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
    Posted 4 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:

    jan 2010 not ok?

  3. jeezyo
    Posted 4 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
    Posted 4 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
    Posted 4 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