0

I have a problem after importing many posts with there image on my new website. The URL is incorrect in media library so I can't use the image or see it in the media library. On the other side, all my imported posts get the correct path in the content (I can't get the featured image dur to this problem).

Here's an example for one image path : correct url - https://www.cimenterie-de-la-tour.com/wp-content/uploads/2023/03/cimenterie-de-la-tour-peinture-yves-klein-de-ressources-avec-nos-carreaux-de-ciment-05-scaled.jpg

wrong url - https://www.cimenterie-de-la-tour.com/wp-content/uploads/2023/03cimenterie-de-la-tour-peinture-yves-klein-de-ressources-avec-nos-carreaux-de-ciment-05-scaled.jpg

The problem is the wrong path is missing a / after the month upload.

Is there a way to fix media library calling the wrong path for problematic images ?

I tried looking with "search and replace" plugin but I don't want to change path for images that are working well.

Thanks for your help.

  • just replace in DB. `SELECT * FROM wp_postmeta where meta_key='_wp_attached_file'`; – Vel Mar 28 '23 at 08:43

0 Answers0