WordPress.org

Ready to get started?Download WordPress

Forums

[gallery] shortcode thumbnails not working after server move (6 posts)

  1. viscocity
    Member
    Posted 5 years ago #

    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:http://www.fistofblog.com/2008/09/15/work-at-google/

    And here's a link to a post that IS displaying as expected:
    http://www.fistofblog.com/2008/09/16/bacon-jerky-thank-bacon-freak/

  2. baga
    Member
    Posted 5 years ago #

    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?

  3. cebradesign
    Member
    Posted 5 years ago #

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

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    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.

  5. fenstermacher
    Member
    Posted 5 years ago #

    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="http://www.whatever.com/wp-content/uploads/2008/09/something-150x150.jpg" width="150" height="150" class="attachment-thumbnail",

    you just get img src="http://www.whatever.com/wp-content/uploads/2008/09/something.jpg" 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.

  6. omgitztrey
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic