Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress Move to New Domain & Server. Image Thumbnail Fail.

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #37048
    sanclementejoe
    Participant

    So I migrated my WordPress site from the staging domain to the actual site domain. Everything migrated just fine with no problem except for the image thumbnails on the bio pages for the artists. Can someone help troubleshoot this?

    Here’s a page on the staging URL: http://studio7.greenflagseo.com/artists/dorothy-cavanagh/

    Here’s the new page URL with the fail: http://www.studio7gallery.com/artists/dorothy-cavanagh/

    I migrated the site with the WordPress Move plugin to assist me.

    Thanks!

    #98511
    TheDoc
    Member

    The URL is wrong for the images.

    It’s trying to hit:

    /home/content/54/9070554/html/wp-content/uploads/2012/02/Summer-Asters-Limes-117477_260x170.jpg

    Instead of:

    /wp-content/uploads/2012/02/Summer-Asters-Limes-117477_260x170.jpg

    The images have uploaded fine, you’re just pointing to the wrong place. Try using Velvet Blues Update URLs to change them all: http://wordpress.org/extend/plugins/velvet-blues-update-urls/

    #98522
    sanclementejoe
    Participant

    Hey Doc,

    Thanks so much for pinpointing that problem, I feel dumb for missing it :).

    I’m not having any luck getting the Velvet Blues plugin to pick up any of my URLS, I tried a few variations. Do you know of any other methods to search and delete that string of characters in the URL that I don’t want?

    Thanks!

    #98533
    TheDoc
    Member

    You could go through phpMyAdmin, but I’m not 100% sure on the instructions.

    #98559
    sanclementejoe
    Participant

    Hmm…yea I’ve been trying to use the Search and Replace plugin for WordPress which apparently allows you to do so. I’m just not sure where this actual URL string is located in the database table. I’ve read that images are saved in the wp_posts and the posts_metadata tables, but not exactly sure to manipulate them.

    If anyone is more familiar with MySQL please chime in!

    #98562
    Krist
    Member

    Basic code


    $your_db = 'your_db';
    $your_host = 'localhost';
    $your_access = 'root';
    $your_pass = 'password';

    $old = 'your/path/';
    $new = 'your/new/path/';

    $con = mysql_connect($your_host,$your_access,$your_password);
    mysql_select_db($your_db , $con);

    $get_all = mysql_query("SELECT * FROM your_table WHERE your_column LIKE '%$old%'");

    while($row = mysql_fetch_array($get_all))
    {
    mysql_query("UPDATE your_table SET your_colum=$new WHERE id = $row");
    }
    ?>
    #98632
    sanclementejoe
    Participant

    Thanks for the help guys, I got it sorted out by doing a string replace in the image call of my customfunctions.php.

    #98642
    TheDoc
    Member

    That’s definitely not the way you should do it. Make sure to make the changes to your database!

    #100201
    sanclementejoe
    Participant

    Hmmm ok I’ll have to do some more digging then. It’s working fine now, but that might just be a hack so I’ll have to ensure that the changes are made in the database.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Other’ is closed to new topics and replies.