Media files still have old URL file name at new server (6 posts)

  1. jasonmccarty
    Posted 5 years ago #

    I've moved my site by doing the following:

    1. downloaded database.
    2. downloaded wp-content file
    3. installed wordpress at new host
    4. replaced wp-content with saved file
    5. uploaded saved database to new install

    I did not change domain names.
    Everything worked but the Media area is screwed up.
    The pictures show up in the Media area but they have the old URL.
    Even if I change that to the correct one, they won't show in the blog.
    I've looked in the new host file and the photos are there, but this new install is not accessing them.
    I've changed the Media upload file in both the blog interface and the PhpMyAdmin.

    At the top of the Media file page in dashboard I also get these two messages:
    1. Warning: explode() expects parameter 2 to be string, array given in /home/simpmcc6/public_html/jmacblog.com/wp-includes/query.php on line 2390

    2. Warning: in_array() expects parameter 2 to be array, null given in /home/simpmcc6/public_html/jmacblog.com/wp-includes/query.php on line 2399

    The old server still has all the original files and database. I'm currently just pointing my domain to the new server/host.

    I think that's it. Any idea what is going on?

  2. Samuel B

    Posted 5 years ago #

    just use this do do a search and replace on the url's

  3. jasonmccarty
    Posted 5 years ago #

    yea, but if this is done correctly, the media files should show the correct url because that's where the photos are in the new space. right? this all starts to get so bloody confusing. someone has got to simplify moving a wordpress site.

  4. Mark Ratledge
    Forum Moderator
    Posted 5 years ago #

    Moving WP is pretty simple: Moving WordPress « WordPress Codex

    The pictures show up in the Media area but they have the old URL.

    What does this mean? You said you didn't change the domain. What are examples of a new and old URL?

  5. jasonmccarty
    Posted 5 years ago #

    the folder that my site is under in the new host looks like this
    /home/simpmcc6/public_html/jmacblog.com/wp-content/uploads (new)

    as opposed to

    jmacblog.com/wp-content/uploads (old)

    i'm going to use a new hosting service that is going to move my sites for me. too much headache for something that seems so simple.

  6. GRAQ
    Posted 5 years ago #

    Trying going into Settings > Media and set the upload dir to blank (so it uses the default).

    Don't forget to keep a copy of what it was before, just in case.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.