Hello guys I have just cloned a website I am having an issue.
In the clone there are just a handful of images that work. All the others appear as broken images in the front-end.
When you try to check the gallery almost all images appear blank (broken). When you try to view the image using it's link https://tester.medicalfa.gr/test/wp-content/uploads/2019/05/logo-2.jpg not even the permalink works for example you get an error 404 Not Found but the image is actually there according to the ftp. So someone must be wrong either the FTP or the browser.
I have already edited permissions to be on the safe side for the folders on 755 and files 644.
Also it seems that I can not even upload new images, all appear to be broken as well.
Edited to add the clarification comments
At first I thought of URLs as well so I used Search & Replace. I deleted htaccess and re-saved the permalinks to create a new one. After that I thought it could be that the permissions are set incorrectly so I edited that as well but still the images do not work for some reason. Also I thought that the image files (as some of them work) might be corrupted so I "replaced" the images from the original site (copy/paste).
I have tried everything that I can think of, also if the issue was the image URL then all images wouldn't work but there are a few that do work. For example this one. Also this is a clone website for dev purposes that means that the original website is actually there, had it been a URL issue the images would still appear but using the original website path though. I have used the plesk clone, I know it doesn't work 100%.
Fixed Alright
Alright it seems that the culprit was a plugin. I have several plugins that I wouldn't use in the dev website, cleared cache and all the images popup up like mushrooms. I suppose it was the webp express that did the trick (removing it I mean) but it is only one of the four that I disabled and deleted. The list of the deleted plugins is:
- cookie notice
- quick page redirect
- webp express
- Yoast SEO