WordPress.org

Ready to get started?Download WordPress

Forums

Migration to 3.0 from 2.8 (Image paths are stuck on old URL) (5 posts)

  1. wesburke
    Member
    Posted 3 years ago #

    Hey guys, first I am not a programmer by trade, more of the artist so forgive me if I am missing some beginning stuff here.

    What I have done:
    I started a fresh 3.0 install with MU and activated the network. I am working to get (SITE A) migrated over to (SITE B) which is located on the new 3.0 MU install.

    On the first original site (SITEA) I exported out these tables from the original: commentmeta, comments, links, options, postmeta, posts, terms, term_relationships, term_taxonomy
    (*I did this because I noticed this was what was created in the DB when adding a (SITEB) to the network)

    I then imported this data into the network site(SITEB) and everything seemed to come in nicely. All of the embedded in the post images are showing up, but no header/thumbnail images are being generated.

    When I view media library from the dashboard it shows all the images, and I am able to view them. But I am unable to edit (brings blank page) and the URL when viewing is showing the old url path from (SITEA).

    So I am feeling I need to adjust the pathing "somewhere" but just not sure where? Suggestions or links to read up on?

    Appreciate the time

    Cheers,

    Wes

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    Download the following plugin.
    http://wordpress.org/extend/plugins/search-and-replace/

    Run a search over the posts table for the old URL, replace with new URL.

    Media items are post types (attachments), so their data, such as the URL is stored in the posts table, it will need updating (the plugin above is the easiest/quickest route).

    Backup beforehand... :)

  3. wesburke
    Member
    Posted 3 years ago #

    Hello!

    Thank you for the plugin suggestion. I installed this and it ran perfectly. All the images are now mapped to the blogs.dir folder.

    I am still however having a a blank media library and no thumbnails. It is weird because the Media Library is showing Pagination (36pages) but each is blank. I am wondering if this is a PHP Memory limit?

    Appreciate the help and time.

    W

  4. Mark / t31os
    Moderator
    Posted 3 years ago #

    When you say blank media library do you mean nothing at all is listed?

    Might be worth checking the upload path has been set.

    Also check the source of the page, you might find items are there, but have an incorrect path when being output to the media page (depends what you mean by blank).

    RE: Memory limit, it's possible sure, but honestly i wouldn't know, i don't run any remote sites to know much about memory problems, only local installs for me. I blog from WordPress.com (it's free), my primary use for WP software is just to learn how to code, and write code(it's fun).

  5. wesburke
    Member
    Posted 3 years ago #

    Sorry for the late reply...

    Yes the Media Library shows up now when you click it from the dashboard, but I am unable to edit these images because it says "Image not found" then after I click on edit. So I am really starting to just think I have a pathing problem here.

    On the search and replace I did the following:

    Find:
    http://site1.com/wp-content/uploads

    Replace with
    http://site2.com/wp-content/files

    I AM able to upload new files, edit etc.. But when I click on the "upload image" on a post and try to choose the media libary I get the following:

    http://wesburke.com/blank_page.jpg

    Again to me, it is really starting to look like I just have a few paths wrong.... What do you think?

    Again appreciate the help and support on this. Heh, I am sure this is a 5mins fix that is now going on day 2 for me. :( heheh

    W

Topic Closed

This topic has been closed to new replies.

About this Topic