Hello,
I am working 1st time on Opencart. From back end when I upload any image (product, manufacturer) using the default popup image manager, it is showing image is uploaded and then showing broken image. Here is the screen shot.
https://ibb.co/DD1rs69
Once I login to the FTP and checked - the image is uploaded inside the 'image/catalog' folder properly but unable to upload 'image/cache/catalog' folder.
Using firebug I see that all images from back end to front are called from cache folder. I have already set cache folder permission to 777 but nothing helps. Please suggest to how to resolve this issue. Is there any way to disable image cache permanently so that images will be called directly from 'image/catalog' folder, not from cache folder?
Tanks.
I am working 1st time on Opencart. From back end when I upload any image (product, manufacturer) using the default popup image manager, it is showing image is uploaded and then showing broken image. Here is the screen shot.
https://ibb.co/DD1rs69
Once I login to the FTP and checked - the image is uploaded inside the 'image/catalog' folder properly but unable to upload 'image/cache/catalog' folder.
Using firebug I see that all images from back end to front are called from cache folder. I have already set cache folder permission to 777 but nothing helps. Please suggest to how to resolve this issue. Is there any way to disable image cache permanently so that images will be called directly from 'image/catalog' folder, not from cache folder?
Tanks.
OC version. Never to be set o n 0777. 0755 should be the highest recursively on specified folders from the install text file in the OC ZIP file downloaded from opencart.com .esigners wrote: ↑Mon May 31, 2021 2:36 pmHello,
I am working 1st time on Opencart. From back end when I upload any image (product, manufacturer) using the default popup image manager, it is showing image is uploaded and then showing broken image. Here is the screen shot.
https://ibb.co/DD1rs69
Once I login to the FTP and checked - the image is uploaded inside the 'image/catalog' folder properly but unable to upload 'image/cache/catalog' folder.
Using firebug I see that all images from back end to front are called from cache folder. I have already set cache folder permission to 777 but nothing helps. Please suggest to how to resolve this issue. Is there any way to disable image cache permanently so that images will be called directly from 'image/catalog' folder, not from cache folder?
Tanks.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
No one ? Really? Same issue here . One day just stoped creating other image sizes for thumbnails . Deleted cache folder and I end up with no images at all on my products. So no cache images in folders. But one somehow have created product image in cache folder for only one product . Still no other image sizes for other thumbnails.
Check both your OpenCart and PHP error logs.okeystm wrote: ↑Tue Nov 15, 2022 5:21 pmNo one ? Really? Same issue here . One day just stoped creating other image sizes for thumbnails . Deleted cache folder and I end up with no images at all on my products. So no cache images in folders. But one somehow have created product image in cache folder for only one product . Still no other image sizes for other thumbnails.
Cache Images are only created as needed so you would need to go to the product page for OpenCart to create the respective images. Other caches could affect this process.
Check your version of PHP. I recently upgraded the PHP version from 7.3 to 8.1. I thought everything was working but had not tried uploading a catalog image. With version 8.1, it was not creating the thumbnail in the cache folder. I reverted back to 7.3 and everything is working again.
I have not yet had a chance to debug the cache image creation but suspect there is a missing PHP module in version 8.1 that is present in 7.3. (i.e. the module that opencart uses to create thumbnails?)
I have not yet had a chance to debug the cache image creation but suspect there is a missing PHP module in version 8.1 that is present in 7.3. (i.e. the module that opencart uses to create thumbnails?)
I think GD Library does not work. So in the file \admin\model\tool\image.php, at line 31:
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
It was a good solution. My problem is that uploaded images are not converted to the correct size, for example in the search box or where small images we use. The images are used from the cache folder, the image title would be correct (https://elstor.no/image/cache/catalog/DEL120-60x60.jpg) but the original size remains. we using Opencart 3.0.3.2, Journal V3 theme, PHP8.0emprisestar wrote: ↑Fri Nov 10, 2023 11:19 pmI think GD Library does not work. So in the file \admin\model\tool\image.php, at line 31:
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
Have you any ideas to solve this problem?
Thank you!
That's what that modification does. It will just copy the image if the resize doesn't work. OpenCart 3.0.3.2 in not fully compatible with PHP 8. One of the fixes added in later versions was a PHP 8 compatibility fix for image resizing.Elstor wrote: ↑Fri Jan 26, 2024 5:44 pmIt was a good solution. My problem is that uploaded images are not converted to the correct size, for example in the search box or where small images we use. The images are used from the cache folder, the image title would be correct (https://elstor.no/image/cache/catalog/DEL120-60x60.jpg) but the original size remains. we using Opencart 3.0.3.2, Journal V3 theme, PHP8.0emprisestar wrote: ↑Fri Nov 10, 2023 11:19 pmI think GD Library does not work. So in the file \admin\model\tool\image.php, at line 31:
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
Have you any ideas to solve this problem?
Thank you!
https://github.com/opencart/opencart/co ... 9abe8229ce
Well, your posting has been replied to already, if you're a legal Journal Theme User, you could contact Journal on this, or then, just better don't expect free assistance around here on such.It was a good solution. My problem is that uploaded images are not converted to the correct size, for example in the search box or where small images we use. The images are used from the cache folder, the image title would be correct (https://elstor.no/image/cache/catalog/DEL120-60x60.jpg) but the original size remains. we using Opencart 3.0.3.2, Journal V3 theme, PHP8.0
Have you any ideas to solve this problem?
Thank you!
viewtopic.php?t=232933
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
As above, OC 3.0.3.2 is not compatible with PHP 8.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I think this solution is working, thank you for the help!ADD Creative wrote: ↑Fri Jan 26, 2024 6:22 pmThat's what that modification does. It will just copy the image if the resize doesn't work. OpenCart 3.0.3.2 in not fully compatible with PHP 8. One of the fixes added in later versions was a PHP 8 compatibility fix for image resizing.Elstor wrote: ↑Fri Jan 26, 2024 5:44 pmIt was a good solution. My problem is that uploaded images are not converted to the correct size, for example in the search box or where small images we use. The images are used from the cache folder, the image title would be correct (https://elstor.no/image/cache/catalog/DEL120-60x60.jpg) but the original size remains. we using Opencart 3.0.3.2, Journal V3 theme, PHP8.0emprisestar wrote: ↑Fri Nov 10, 2023 11:19 pmI think GD Library does not work. So in the file \admin\model\tool\image.php, at line 31:
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
Have you any ideas to solve this problem?
Thank you!
https://github.com/opencart/opencart/co ... 9abe8229ce
So please now add [SOLVED] to the start of this topic title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Elstor isn't the topic starter.paulfeakins wrote: ↑Mon Jan 29, 2024 7:46 pmSo please now add [SOLVED] to the start of this topic title.
Mike
cue4cheap not cheap quality
Indeed but if this does solve the issue then the OP should add [SOLVED].
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
This solved my problem. Thanks!emprisestar wrote: ↑Fri Nov 10, 2023 11:19 pmI think GD Library does not work. So in the file \admin\model\tool\image.php, at line 31:
Above this line : if ($width_orig != $width || $height_orig != $height) {
Add a new line code as below:
copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
Enjoy it.
Hoang D.
@minhhoangduc from freelancer.com
Great, I've added [SOLVED] seeing as the OP hasn't returned.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: lockiedownunder, o3445 and 82 guests