• hello,

    i have transferred my site to a new domain by ftp and exported database from wp and imported it again from new domain. i can not see the files in the uploads directory which i uploaded from ftp in the media library section of wordpress. i can see the images in the post working but featured images were gone. i tried to add images with a plugin “add from server” to see them in media library and managed it. but featured images still not seeing. i decided to make images in the post featured by myself one by one. but when i want to select it from media library there is a broken image link first selected. how can i remove it?

    https://i.hizliresim.com/KlGgLJ.png

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Within the wp-config.php file, add the following lines to change the URL back. Note that once you do this, you can’t change the URL from within the WordPress dashboard, it always has to be done this way:

    define(‘WP_HOME’,’https://newsite.com’);
    define(‘WP_SITEURL’,’https://newsite.com’);

    By this your image issue can be resolved.

    Regards,
    PD

    Thread Starter iceberk

    (@iceberk)

    thanks for your answer greyparrots,

    i have done as you said but nothing changed.

    Did you copied the uploads directory too??

    Thread Starter iceberk

    (@iceberk)

    it was all copied before. the images were shown in the posts but they were not assigned as featured. so i decided to reassign them one by one entering the posts inside. when i clicked the feature image button in the post, media library was empty.

    so i decided to delete all images in the /uploads directory. then reupload all files from the old domain one by one for the each post.

    i opened post, deleted old image reference, uploaded the file again, chose to make it featured and i saw the screen above.

    It seems the folder permission of upload directory is not proper / might be there is some custom media upload directory is there. Kindly check these two.

    Thread Starter iceberk

    (@iceberk)

    the permission of the directory is 755 and i have deleted all the files. unfortunately nothing changed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Broken image link in featured image library’ is closed to new replies.