How to fix Broken Image links in WordPress 3.9.1 (2 posts)

  1. Ronny Aliascorp
    Posted 2 years ago #

    Recently I migrated my wordpress network to another host.
    Everything works the same except Images are broken.
    I uploaded images via Admin and it is uploaded in (public_html/wp-content/blogs.dir/(siteid)/files) .

    But when I come to frontend. The images are broken. After copying the Image url by right clicking, I got to know that it is loading image from (public_html/files).

    I dont know how to change the link that fetches the image.
    Secondly I tried to upload files by adding some code in wp-config, but still it doesnt work.

    I also changed directory and file perimissions, but still not working.
    Please give me a correct solution.

    Here is the link of website: http://free.advertising.com.my/

    [Moderator Note: No bumping. If it's that urgent after waiting less than 1 hour, consider hiring someone instead.]

  2. vtxyzzy
    Posted 2 years ago #

    When you move a site, you must replace the old URLs and paths with the new ones. Some of these are stored in the database in 'serialized' form where the string length is stored along with the string. You must use special tools to search and replace the old values with the new ones.

    If you replace an old URL with a new one of a different length, it will break the serialization, causing many different problems.

    If the old site is still available, you can use the steps shown in this article to copy the site: http://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/

    If the old site is not available, and you still have a copy of the database from that site, you should be able to use this tool to make the changes: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Topic Closed

This topic has been closed to new replies.

About this Topic