• Resolved Anna

    (@ohthenoes)


    Hi all. I have a multisite with several websites working great under it.

    I decided to transfer a rather image-heavy separate install into the network and this is what I did:

    1. Added new.domain.com in the multisite network.
    2. Used the import feature to get all the posts, pages, attachments, etc from old.domain.com
    3. Copied over the images from old.domain.com just to make sure.
    4. Went into Super Admin > Sites > Edit and changed “new.domain.com” into “old.domain.com”
    5. Went into my Panel and edited the records of “old.domain.com” so it would work with multisite (I have to do this manually because I’m on DreamHost.)
    6. Went into MySQL and did a search and replace for “new.domain.com” to become “old.domain.com”

    The site is working great and all my posts and pages are there. The problem is, some images are not showing up. I checked them out in the Media Library and saw that their upload paths are at “new.domain.com”.

    Any ideas how I can fix this? This actually happened to me before and someone on IRC gave me some PHP code to run so that something on WP could be changed. Unfortunately, I can’t find it using the WP chatlogs and it was a pretty long time ago so I’m asking here.

    Much thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You may need to search and replace in your database to clean that up. There are plugins that can do that as well (look for search and replace plugins)

    Thread Starter Anna

    (@ohthenoes)

    Hey there ipstenu.

    I did a search and replace on all tables but it says no results found.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Via a plugin or via the database itself?

    Thread Starter Anna

    (@ohthenoes)

    The database itself.

    Thread Starter Anna

    (@ohthenoes)

    Did a broader search in the database and found that the “guid” field of the posts table had “new.domain.com”. Strange that it didn’t come up in the first place.

    Also, I had to look for any inserted images and change “wp-content/uploads” to “files” ??

    Problem solved~!

    Thanks for your time ipstenu ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images broken after move’ is closed to new replies.