• Hello guys,

    we use Chinese as image file names for a website. When we migrated the website from staging to the actual domain, all the images with Chinese file names were not showing either in the Media Library or the front. All the files seemed to be in the Media Library, but just didn’t show the images. Instead, in the Media Library, for each file, it just showed as a blank block with the file name in the top left corner.

    Why is that? How can I prevent this in future?

    I am asking here because I need answers straight to this subject, I am still a beginner in WP.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi georgecj,
    For migrating any site you have to move your whole wordpress package to new location as well you need to migrate the database for updating the new location and url save in the database then export the database and import it. There are many plugin which is used for database migration. I suggest you to use WP MIGRATE DB plugin for migrating database.
    Thanks

    Thread Starter georgecj

    (@georgecj)

    Hi cedcommerce,

    thank you for your answer. Ok, I can use that plugin, but I want to find out the logic behind this. Does it affect with something that the images have Chinese letters? No matter what plugin I use or way to migrate.

    I just want to know how WP works behind.

    Thank you.

    Hi georgecj,
    The idea behind the chinese is that for image we used image tag like :
    <img src=”image url” alt=”image_name”>
    if the image is not present at the given image url then alt value is show in place of image and in your case the image url is not correct that’s why alt text is shown that is chinese words that’s why Chinese is shown in place of image.
    I have tried my best to explain the idea behind the Chinese text.
    Thanks

    I suspect that this has something to do with you trying to use Chinese characters in your file names. I don’t think there are many standard web servers that could handle that kind of file name encoding. what happens if you upload a file with (say) an English file name?

    Thread Starter georgecj

    (@georgecj)

    Uploading any file it’s working fine, no matter if it’s English file name or Chinese. It was all about migration, during these, a lot of images were missing (Chinese names files).

    Ah – I misunderstood!

    So the images are in the wp-content/upload folder but are not appearing in the Media Library, yes?

    Thread Starter georgecj

    (@georgecj)

    Exactly. Now, I had to reupload all images, because there weren’t that much, but I want to know what to do on future, in case I have another migration on this website or others.

    If you followed all of the relevant steps in Moving_WordPress, you shouldn’t have had any missing images. Did you do that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images not working anymore after migration’ is closed to new replies.