Post by rotaryracer » Tue Oct 23, 2018 7:53 pm

Hi guys - I've been running v2.1.0.1 for some time now with essentially the default theme (some color modifications, but that's it). This morning I logged in and found that some of the product thumbnails are not displaying correctly. Additionally, for the few that do display, if I click on the thumbnail to enlarge, I get an error saying "The image could not be loaded.". I've attached a screenshot showing the issue, and as of 7:51AM ET on 23-Oct, you can see it at www.advmotorrad.com.

I checked on my test site (hosted on the same server) and it seems to be working fine. My error log was pretty good sized, so I saved and cleared that, and cleared the image cache...neither helped. Most of the error log is filled with logging by the USPS app, but this error keeps repeating...maybe it's a cause?

2018-10-23 4:30:01 - PHP Notice: Undefined index: perdisc in /home/advmotor/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 458
2018-10-23 4:36:59 - PHP Notice: Undefined index: g-recaptcha-response in /home/advmotor/public_html/catalog/controller/captcha/google_captcha.php on line 32
2018-10-23 4:41:36 - PHP Notice: Undefined index: token in /home/advmotor/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_common_header.php on line 5
2018-10-23 4:55:57 - PHP Notice: Undefined index: perdisc in /home/advmotor/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 458
2018-10-23 5:08:24 - PHP Notice: Undefined index: perdisc in /home/advmotor/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 458
2018-10-23 5:33:13 - PHP Notice: Undefined index: perdisc in /home/advmotor/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 458
2018-10-23 5:49:31 - PHP Notice: Undefined index: token in /home/advmotor/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_common_header.php on line 5

I've got a ticket in to my hosting company, but I don't think it's necessarily a hosting issue as my other site works fine. Any ideas for assistance would be greatly appreciated!

Thanks...

Jason

Attachments

Image Issue.jpg

Image Issue.jpg (284.56 KiB) Viewed 522 times


New member

Posts

Joined
Tue Oct 16, 2012 7:45 pm

Post by rotaryracer » Tue Oct 23, 2018 8:23 pm

One more update - I also cleared the VQMod cache and the /system/storage cache...no change. There is a new error showing in the log:

2018-10-23 8:01:37 - PHP Notice: Undefined variable: languages in /home/advmotor/public_html/admin/view/template/module/CachedImages.tpl on line 50
2018-10-23 8:01:37 - PHP Warning: Invalid argument supplied for foreach() in /home/advmotor/public_html/admin/view/template/module/CachedImages.tpl on line 50

I have a small logo to replace the default OpenCart "cart" icon in the browser tab. What's strange is that if I hit refresh, the logo icon appears momentarily, then disappears and is replaced by a "folded page" default icon.

Thanks...

New member

Posts

Joined
Tue Oct 16, 2012 7:45 pm

Post by IP_CAM » Tue Oct 23, 2018 8:59 pm

Well, something like CachedImages.tpl and/or perdisc does not exist in
a default Opencart. In addition, your Images are NOT titled according HTTP Spec's,
you have empty WHITESPACE Gaps in Image Titles and Image Directory Names as well.

Code: Select all

ADVM Logo Yellow.png - Defender T1200 System 1-200x200.jpg - Rockfox LC Crashbars 1-200x200.jpg
RR AT Lower Crashbars 4702Bv2 1-200x200.jpg - Xtremada OEM 1-200x200.jpg
catalog/ADVM/Products/Baja Designs/Squadron Pro/490003-200x200.jpg
image/cache/catalog/ADVM/Products/Baja Designs/OnX/640115-200x200.jpg
In addition to some REDIRECT Problems, possibly based on wrong .HTACCESS Settings.
So, better start again from scratch! ;)
Ernie
---
Image

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 rotaryracer » Tue Oct 23, 2018 9:27 pm

Thank you IP Cam! I appreciate the help, even if the answer just made me turn green. :o I now recognize the importance of no spaces in file names; unfortunately, 99.9% of the pictures on the site may have spaces. This has been running this way without issue since 2012, so my guess is that something has changed on the server side that no longer will allow it to work.

I can download, change, and reupload all the files, but pretty sure it will simultaneously break every single product image, as Defender S10 1.jpg is different than Defender-S10-1.jpg. Any possible way to do the same bulk name replacement within the OC database? The thought of having to rebuild 500+ products individually is making me nauseous.

Thanks...

Jason

New member

Posts

Joined
Tue Oct 16, 2012 7:45 pm

Post by IP_CAM » Wed Oct 24, 2018 1:38 am

Well, you did not answer the question about those two Files, unknown to me,
but below, you find a list of Extensions, possibly beeing of help, to get the images
titled correctly. In addition, please show the .htaccess File REWRITE CONTENT,
looking similar to this:

Code: Select all

# SEO URL Settings
RewriteEngine On

# If your opencart installation does not run on the main web folder,
# make sure you folder it does run in ie. / becomes /cart/
RewriteBase /(eventually with some Shop DIR Name + forward slash '/' here)/
...
...
Ernie
---
Safe filename on image upload, paid, OC v. 2.0.1.0 - 2.2.0.0:
https://www.opencart.com/index.php?rout ... n_id=26666
---
Web-safe Product Image Filenames, free, OC v.1.5.6.x:
https://www.opencart.com/index.php?rout ... n_id=21251
---
SEO Image Filenames Renamer for Opencart 2.x, free, OC v.2.0.0.0 - 2.1.0.1:
(possibly works in later v.2.x versions, exept for the image PATH, changing from image/data to image/catalog)
https://www.opencart.com/index.php?rout ... n_id=24555
---
Mass Image Rename, free, OC v.1.5.6.x plus v.3.x.x:
https://www.opencart.com/index.php?rout ... n_id=14343
---
Product Image Bulk Rename - SEO Image Name Manager, paid, OC v.1.5.4 - 3.1.x:
https://www.opencart.com/index.php?rout ... n_id=19737
---
Image Manager Fix UTF-8 File Name Issue, free, OC v.2.0.0.0, 2.0.1.0, 2.0.1.1:
(possibly works in later v.2.x versions, exept for the image PATH, changing from image/data to image/catalog)
https://www.opencart.com/index.php?rout ... n_id=22990
---
Untested, since I know about this, since the Web went online ... ::)

My Github OC Site: https://github.com/IP-CAM
5'200 + 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
Who is online

Users browsing this forum: No registered users and 274 guests