• Resolved masterlock1

    (@masterlock1)


    I am running WP 3.6.1 (MU) on a new server.

    I exported my posts only from the old server using the Tools -> Export -> Posts – [XML file] method. I successfully imported the posts into the new site on the new server. Since most of the images on the old server weren’t attached to the posts, I didn’t bother checking the box for downloading attachments.

    All of my images on the old server were contained in wp-content/blogs.dir. This directory was not present on the new server. So I downloaded it from the old server and uploaded it to the new server in wp-content. The images still don’t show in the posts.

    On the new server, when I upload an image (test.jpg) it goes into wp-content/uploads/sites/ID/YYYY/MM/test.jpg.

    Realizing this, I uploaded all of the image files from the old site which corresponded to this year and month into this same folder, yet these images still don’t appear in the posts, and while in admin mode, in “Media” -> “Library” only the one image, test.jpg, appears.

    Can anyone explain what is wrong?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter masterlock1

    (@masterlock1)

    It appears the crux of the problem is that all the imported image paths are like this:
    /files/2013/09/Smokehouse-on-Shelby-and-Fountain-Square-Theater5.jpg

    but should be like this:
    /uploads/2013/09/Smokehouse-on-Shelby-and-Fountain-Square-Theater5.jpg

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not exactly, read http://codex.wordpress.org/Multisite_Network_Administration#Uploaded_File_Path

    Having your files in files is exactly how WordPress, when multisite was activate PRE 3.5, is supposed to work. Your problem is that instead of moving your site, you exported and imported.

    So yes, you get to search/replace your content and change the image location.

    (FYI: That’s always been a requirement when de-multisiting a site)

    Thread Starter masterlock1

    (@masterlock1)

    I see. Thank you for the info. I was able to do the find/replace, and now the images are back.

    Curiously, I noticed that none of the imported posts contain the YouTube iframe code. It appears to have been stripped out. I don’t know whether this is a topic for another thread. But I’d like to know why this happened.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well. Don’t use the iframe code.

    Paste the URL in and use the build in embeds 🙂

    Thread Starter masterlock1

    (@masterlock1)

    There is another issue: WordPress can’t see any previously uploaded images, even though it CAN see images uploaded into the SAME folder via the WP admin -> Media -> Add New.

    Any suggestion as to the cause? Should I post this as it’s own thread (seems like an extension of the same issue.)

    Thread Starter masterlock1

    (@masterlock1)

    Though I would still like to know the answer to my latest question, I did manage to find a plugin called “Add From Server” which appears to have solved the problem.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s because you did this:

    Since most of the images on the old server weren’t attached to the posts, I didn’t bother checking the box for downloading attachments.

    You actually TOLD WordPress not to import them 🙂

    Thread Starter masterlock1

    (@masterlock1)

    Had I checked the option to download attachments, how would WordPress know where to find them on the old server?

    Thread Starter masterlock1

    (@masterlock1)

    I deleted all the posts and then re-imported them, only this time I told WordPress to download attachments. WordPress still can’t see the images even though they are in the exact location specified by the image URLs in the posts.

    I know from experience that images can be frustrating, but it seems that WordPress isn’t going to care about images that weren’t uploaded through the media importer. The plugin Add From Server mimics this context and that was why your pics worked last time.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Images Missing After Import to New Server / blogs.dir’ is closed to new replies.