Support » Fixing WordPress » [gallery] shortcode thumbnails not working after server move

  • I moved my wordpress site from a cpanel server to westhost.

    for some reason, the shortcode [gallery] isn’t displaying the thumbnail sized images on posts made before the server move. Posts made after the move work just fine.

    The thumbnail sized images still exist in the wp-content/uploads/ directory, they’re just not displaying on the posts.

    Is there some odd caching that I’m missing? Something else?

    Can someone point me in the right direction?

    Here’s a link to one of the posts that is NOT displaying as expected:

    And here’s a link to a post that IS displaying as expected:

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello i have the same problem, the thumbnails show up on localhost, not on the remote server.

    Did you get a solution to this problem?



    same problem here, I’ve searched and searched but couldn’t find a solution or fix… any news?

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    When you moved the database to the new server, did you go through it and fix all the now-different URLs and file paths?

    Moving things like this is not simple. It’s not designed to be moved around. You’ll need to manually fix the database to correct the changed file paths.

    An Export/Import operation does not have this problem, but a straight SQL dump/restore will.

    I’ve run into the same issue as viscocity. I restored a WordPress 2.6.3 site locally to work on theme and realized this issue with image sizing with gallery shortcode.

    I did go through database and fix all the different URLs and file paths. Also tried importing over the existing system but it didn’t make any difference. Import has some issues of its own anyway.

    I notice the size attributes and the name of the thumbnail or medium image isn’t referenced in the generated html after a restore.

    Instead of img src=”×150.jpg” width=”150″ height=”150″ class=”attachment-thumbnail”,

    you just get img src=”” class=”attachment-thumbnail”.

    I poked around in media.php trying to figure out what was going on, but I guess I’m not quite sharp enough to figure it out.

    It would be nice to understand this because moving a site around like this is a pretty common thing to do.

    Unfortunately I’m having the same problem after changing domain names. I updated all the links accordingly.

    Now for all the old post before the move, it just shows the full size version of the image instead of the thumbnail. The db entry does exist in the db and on the web server, so I can’t possibly see why it won’t load.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[gallery] shortcode thumbnails not working after server move’ is closed to new replies.