I am migrating an OC site from one host to the next and upgrading to 3.0 at the same time. All is going well but I FTPed all my images from old host to new host and when I uploaded my products a bunch of the pics came up blank. After a little poking around I found that a lot (more than half) of the pics have white spaces injected into them but only in the admin (if I add a picture to a product manually I see the whitespace) but if I look in the actual picture folder (using FTP or Cpanel) the name is fine. So I can't fix it reuploading or renaming the file in the Cpanel or via FTP. How do I get around this other than manually inserting every picture (about 1000 that didn't link when I did the uploads)? Thanks
Too little information you provided to be any help.
use a File Manager, or later an SEO Tool, to have 'em renamed. But be
aware, that every single image needs to be re-linked to the product again.
You should have been doing this before, it would have saved some time,
to do such according http-standards, valid, since the internet started to exist.
Mass Image Rename
https://www.opencart.com/index.php?rout ... n_id=14343
Product Image Bulk Rename - SEO Image Name Manager
https://www.opencart.com/index.php?rout ... n_id=19737
Normalizer : UTF-8 Normalizer of file-name and file-path etc.
Sanitizer : Sanitizer of file-name and file-path etc.
https://www.opencart.com/index.php?rout ... n_id=32460
I'm rarely active at the OC Forum lately. To reach me, contact: firstname.lastname@example.org
A Demoversion of my free OpenCart LIGHT v.22.214.171.124 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
1'300+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
Original File Name product-name-2x55.jpg is showing as product-name-2x5 5.jpg -- Note the blank space between the fives. This is only how it is shown in the Image Manager. The actual file names are not changed in the images folder. When I first noticed it I thought I had made an error in naming the original file, which was not the case. Everything seems to be displaying fine on the front end.
I tried to delete everything and reupload the images. But somehow the filenames just randomly have spaces. The Catalog/images filenames are normal with no spaces. My website is not showing the images with the problem. I hope someone can help me with this problem. Thank you
it first splits the names at 14 characters:
Code: Select all
$name = str_split(basename($image), 14);
Code: Select all
'name' => implode(' ', $name),
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 19 guests