I have copied the my old site files and moving those into new site. i have changed the url in db, and uploaded the files in new server. everything works fine except the media show black images .can any one suggest me what is wrong with this.
-
How did you "change" the url in the db? If you just used a search & replace in a text-editor, that will screw up some of the values (like text-widgets).– HU is SebastianSep 5, 2014 at 6:11
-
@kuchenundkakao yes . i have changed using find and replace in notepad++– JagankumarSep 5, 2014 at 6:14
-
Are image link URL correct in these images. Check URL of any of these empty images and make sure it's correct. Copy paste URL in your browser to check if image is visible.– Robert hueSep 5, 2014 at 6:31
-
Have you flushed your permalinks after the migration. That is most of the time the only requirement if you are sure all paths in the db has been changed– Pieter GoosenSep 7, 2014 at 8:39
-
@Roberthue I have copied the image url and checked in browser . it works . But where as in media library it is not showing.– JagankumarSep 8, 2014 at 4:05
1 Answer
Plugins such as Search and Replace can help you to properly fix the URLs in your database.
Likewise, consider using backup-and-migration plugins such as BackupBuddy (paid) or Duplicator (free) to properly and more easily move your site (while automatically handling the above search-and-replace operation).