Wrong path at pictures (5 posts)

  1. Jonis Marisch
    Posted 6 years ago #

    Our account has been moved to a new server.
    We have reinstalled the database from a backup. After this the path to our pictures is wrong. They won´t show.

    For example:


    WP has put in the number 1 in almost every link. (1.jpg)


    When I erase the number 1, the picture will show. How can I restore this in every path to picture?

    Please help me, I dont want to loose a years job.

    Best Regards Marie

  2. s_ha_dum
    Posted 6 years ago #

    Open your database using the backend provided by your web host. Browse to the wp_posts table (the 'wp' prefix will be different if you've changed it). Now you need to find one of your images. Probably the easiest way to do that is to go to the WP Media manager, find an image, click to edit it and then look at the URL in the browser window. You'll see 'attachment_id=somenumber'. That number-- somenumber-- is the ID number in wp_posts. Find the DB row with that number. There should be some kind of search function in the backend. Now look over to the guid column. Is that URL correct?

  3. Jonis Marisch
    Posted 6 years ago #

    In the guide column I find this URL http://jomari.se/wp-content/uploads/2008/11/kaffebryggare1.jpg and thats the wrong one.

    How to do now??

  4. Jonis Marisch
    Posted 6 years ago #

    We have fixed it now. ;)

  5. s_ha_dum
    Posted 6 years ago #

    OK. Good. What did you do? Edit the database by hand?

Topic Closed

This topic has been closed to new replies.

About this Topic