Post by wksham » Sun Sep 29, 2024 12:10 am

I am having issues with my photos showing up after uploading. The closest forum post that dealt with the issue is the post from Mon Oct 10, 2016 at 7:49pm titled "image upload problem". But this post goes nowhere now and doesn't actually give a solution.

I have version 3.0.3.2 and haven't had any issues with uploading images until recently. I have tried to upload images directly through the image uploader (which is my normal route) and through FTP. When I look at my cpannel the images are there and are no different then any other image (size or file naming or type) that I already have in my directory. I am able to open the file up and see the image. The uploader says the file has been successfully uploaded, but I get the compressed icon with a broken page with the corner flipped down image. When selected it doesn't show up in my admin/product or front end. The image box just goes really small as if there is something there but there isn't.

I have even removed old photos to see if I have run out of space but that doesn't seem to work either. I have added new folders put files in old folders anything I can think of but nothing seems to work.

I know most of the people here are super smart but I am just smart enough to be deadly.... :laugh: So I would appreciate a little more patience with me if possible. Thank you!

Newbie

Posts

Joined
Thu Dec 11, 2014 4:46 am

Post by chongshengdz » Mon Sep 30, 2024 2:47 am

make sure your image directory in your config.php and admin/config.php is correct.
for a quick resolution, you can check your php error log.

https://www.ectransistors.com/
https://www.transistormosfet.com/


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by softmonke » Mon Sep 30, 2024 3:29 am

As @chongshengdz mentioned, you might want to check your config.php files and ensure the image directory is set correctly.

But since you mentioned that you've only encountered this issue recently, have you installed any extensions recently, or any caching extensions? Are you able to access the images through your browser? For example, if you uploaded an image named "test.jpeg" in "image/catalog", then you should be able to access the image via "https://your-website.com/image/catalog/test.jpeg", where "your-website.com" is your website's URL.

Can you also post a screenshot of the "compressed icon with a broken page with the corner flipped down image" after you successfully upload an image through the OpenCart file manager?

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by wksham » Tue Oct 01, 2024 3:31 am

I checked my config and config/php files and they seem to have the same information in them for the image and it looks normal to me. {define('DIR_IMAGE', '/home/lge/public_html/image/')}

I checked the yourdomain/image/catalog/test.jpg link and it only shows a 404 error. When I checked this way with my other photos that are working they also show a 404 error. However, when I check by opening them into another browser it shows the picture with a slightly different path....yourdomain/image/cache/catalog/foldername/foldername/picture.jpg

And when I check the new photos in a new browser window I again get the 404 error.

I haven't installed anything new to my website or Opencart extensions. However, I did add a secondary Opencart website on the same HTML_public site but I can add all the photos I want with no issues to this site. The site I am having issues with is in version 3.0.3.2 (default theme) and the newer website is in 3.0.3.8 which is the newest version that Journal would let me have. Not sure if that would affect the images in the older website?

Attachments

Screenshot 2024-09-30 135657.png

Broken page image - Screenshot 2024-09-30 135657.png (4.92 KiB) Viewed 1636 times

Screenshot 2024-09-30 135702.png

Image Manager - Screenshot 2024-09-30 135702.png (9.12 KiB) Viewed 1636 times


Newbie

Posts

Joined
Thu Dec 11, 2014 4:46 am

Post by IP_CAM » Tue Oct 01, 2024 4:27 am

Your image titles contain empty spaces between words, like: my new picture.jpg instead of my_new_picture.jpg, and that could be the reason for not displaying the images.

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by wksham » Tue Oct 01, 2024 4:47 am

Update:

It does appear that I just needed to change a coding line in my library image.php file. Photos are now showing up.

Thank you for all the help.

Newbie

Posts

Joined
Thu Dec 11, 2014 4:46 am

Post by Cue4cheap » Tue Oct 01, 2024 5:08 am

wksham wrote:
Tue Oct 01, 2024 4:47 am
Update:

It does appear that I just needed to change a coding line in my library image.php file. Photos are now showing up.

Thank you for all the help.
And what was the change that was needed?

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by wksham » Tue Oct 01, 2024 6:06 am

Here is the changed that worked for me.

Change this line https://github.com/opencart/opencart/bl ... e.php#L121

I guess there is a bug in the 3.0.3.2 version that gets cleared up in the 3.0.4.0 version and if you don't upgrade you need to fix this line. See attached image

Attachments

httpsgithub.comopencartopencartblob3.0.x.xuploadsystemlibraryimage.phpfbclid=IwZXh0bgNhZW0CMTEAAR0pm6Ecw_Ub5fx1TPmYn.jpeg

httpsgithub.comopencartopencartblob3.0.x.xuploadsystemlibraryimage.phpfbclid=IwZXh0bgNhZW0CMTEAAR0pm6Ecw_Ub5fx1TPmYn.jpeg (271.5 KiB) Viewed 1602 times


Newbie

Posts

Joined
Thu Dec 11, 2014 4:46 am

Post by JNeuhoff » Tue Oct 01, 2024 9:11 pm

Glad to hear you got it to work now. Can you please add '[SOLVED]' to the beginning of this original form thread title? Thanks.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ADD Creative » Wed Oct 02, 2024 4:41 pm

wksham wrote:
Tue Oct 01, 2024 6:06 am
Here is the changed that worked for me.

Change this line https://github.com/opencart/opencart/bl ... e.php#L121

I guess there is a bug in the 3.0.3.2 version that gets cleared up in the 3.0.4.0 version and if you don't upgrade you need to fix this line. See attached image
That change is required for PHP 8 compatibility. Your hosting probably got upgrades from PHP 7 to PHP 8 at some point. There will probably be a few other minor compatibility issues with 3.0.3.2 and PHP 8.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 24 guests