The MU forums have moved to WordPress.org

Gallery thumbnail not working (5 posts)

  1. code012
    Member
    Posted 14 years ago #

    Hi.

    I've successfuly installed, restored the DB and changed the path of uploading files from old WP to new WPMU.

    The only problem remaining now is the gallery thumbnail.

    http://gamersroute.com/2010/02/hustle-kings-latest-screenshots/

    I've set the thumbnails to 120x120 but it's not working. I've looked into the server side and there are proper thumbnail images. The only way for me to make it work is to delete the image files, re-uploading them for WP to crunch the thumbnail again, then insert the gallery.

    I don't have time to do re-upload 500+ articles just for the gallery. Is there way to fix it? Maybe a SQL query?

    Thanks in advance.

  2. kgraeme
    Member
    Posted 14 years ago #

  3. code012
    Member
    Posted 14 years ago #

    Nope. Didn't help..
    Thanks though.

  4. code012
    Member
    Posted 14 years ago #

    Got it working.
    Not sure if I should have done it though.

    First I've exported the wp_1_postmeta table.
    Then I've replaced the following:

    _wp_1_attached_file to _wp_attached_file
    _wp_1_attachment_metadata to _wp_attachment_metadata

    I didn't change the table name, just the values.
    Now it's working. And also new posts are working as well.

    All of the posts before the WPMU was still tide to _wp_attached_file and _wp_attachment_metadata, but WPMU wanted to use _wp_1_attached_file and _wp_1_attachment_metadata.

    I just hope that the future upgrades don't mess things around, changing everything to _wp_1_ with my old posts.

    Cheers!

  5. code012
    Member
    Posted 14 years ago #

    EDIT: I spoke too soon.
    The solution above indeed fixes the gallery thumbnail problem within the contents.

    I'm having thumbnail generator problem but it's a whole different issue.

    Cheers!

About this Topic