• I recently migrated my site to a new domain. I exported a sql database of blog posts from the old site and imported them to the new site through phpmyadmin. Now, the posts are all showing up but the images for each post are not.

    On my server all the images are stored in /wp-content/uploads, however they don’t exist on the media page. I don’t know how to move those all into the media section or if i even need to since they are on the server…

    I checked my sql database file, to change the urls and noticed that the galleries don’t show urls to the images but rather say [gallery-link =”file”] or something along those lines. I have no idea what that means or how the database would even link to the gallery without some sort of descriptor.

    So, bottom line is, i got my million posts migrated over to the new site, but none of the images. Changed all the urls that needed to be changed, but galleries are not working…

Viewing 11 replies - 16 through 26 (of 26 total)
  • WP SITES

    (@wordpresssites)

    Did you change them to the new domain before you exported your database?

    I normally use backupbuddy when migrating to a new server or domain and never have any problems

    WP SITES

    (@wordpresssites)

    Are you using pretty permalinks like /%postname%/?

    Thread Starter thebryceisrite08

    (@thebryceisrite08)

    Ok, i’ll check that out. I made the changes to the urls after i had exported the database. Basically just opened it up in dreamweaver and replaced XXXXXX.com/blog with XXXXXX.com. Everything works fine except for those posts which used gallery images.

    All i have at this point is the sql file of the old site. So whatever changes i make have to be done to that.

    Theres about 100 posts, and i’m almost just thinking about going through all of them and reuploading images for each…. fun stuff

    WP SITES

    (@wordpresssites)

    Are the gallery images attached to the posts you uploaded them to?

    Check this in your media library

    Are you using the native gallery or nextgen?

    Thread Starter thebryceisrite08

    (@thebryceisrite08)

    They are listed as unnattached… I think i was using the native gallery.

    WP SITES

    (@wordpresssites)

    I’m pretty sure images should be attached when used in a gallery. Attached to the post you uploaded them to.

    Do they display when you click on the Add Media icon above you editor?

    There should be a number next to Gallery for the number of images uploaded to that page or post

    Thread Starter thebryceisrite08

    (@thebryceisrite08)

    Yea, they don’t show up. Honestly, this same problem has happened to a lot of people on the boards, and i have poured through all of them. None have been resolved. The image urls are correct, the files are uploaded, but the images won’t attach automatically.

    WP SITES

    (@wordpresssites)

    Attach them before you export the database

    Thread Starter thebryceisrite08

    (@thebryceisrite08)

    well, yes. They are attached in the old blog when the database is exported.

    @thebryceisrite08 – did you ever find an answer to this?

    I am developing a site locally and am testing a migration to a live domain. I am running into the same issue. Images are not showing in the gallery despite being ‘attached’ to the posts. I have uploaded all the images to my server maintaining the same file path structure. I have tried a full sql export as well as a wp xml export.

    It may be worth pointing out that I am not using the default WP uploads folder. I am using an override in wp-config.php – define( ‘UPLOADS’, ”.’jewelry’ ); However, I have set this on both the local environment as well as live.

    When I go into the wordpress media library, nothing appears.

    Sometimes, you need to go into wp_content/uploads and copy over the folders… they should be … 2011, 2012, 2013

    All migrations aren’t perfect and sometimes it takes being resourceful and exploring all options.

    I have had these troubles as well, it does stink to have to rebuild a gallery, but that’s what happens in the world of web.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘WordPress Migration Lost Galleries’ is closed to new replies.