Forums / Zen Cart Code Suggestions / Missing image to create a debug log?

Missing image to create a debug log?

Views: 98

Results 1 to 10 of 10
26 Apr 2019, 9:15 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Missing image to create a debug log?

I think that a product that has an image defined but is missing, should use the image defined for a product with no image defined, as a more professional fallback.
This would avoid image handlers and lightboxes having to deal with the problem.

Additionally and as an Admin-Configuration-Images option, it could also create a log message about the missing defined image.
At the moment there is no mechanism for that, only a plugin to check for missing images.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Apr 2019, 10:22 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Missing image to create a debug log?

This would mean you'd get flooded with repeat logs. I'd much rather see an image audit tool in admin that could be run periodically.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Apr 2019, 10:31 AM
#3
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Missing image to create a debug log?

You mean this one? Missing Image checker by Torvista :D

swguy:

This would mean you'd get flooded with repeat logs. I'd much rather see an image audit tool in admin that could be run periodically.

26 Apr 2019, 10:39 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Missing image to create a debug log?

That's a mod. I'd like to see it built in (maybe integrated into Tools->System Inspection from v2, backported to 1.5).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Apr 2019, 10:48 AM
#5
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Missing image to create a debug log?

This would mean you'd get flooded with repeat logs
That's why I would have it as an admin option, for example right now I am working on a duplicate site but don't need to duplicate the huge images folder.

But a missing defined image is an error and personally I want to know about errors immediately, so I have done it for my production site.

If I get a pile of logs, that won't break the bank, it gets fixed quickly as me or someone else notices the flag for the debug logs in the admin and I don't have to remember to run my own image checker: I have enough things to remember.
This makes it one less.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Apr 2019, 10:50 AM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Missing image to create a debug log?

as for the image checker mod, that needs someone to expand it so it checks the images folder to identify orphan images that are not used anywhere. Then it will be a more complete tool for the admin.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

27 Apr 2019, 9:21 PM
#7
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Missing image to create a debug log?

Something really needs to be done about missing images.... some of my images are not missing but for some reason have gotten corrupted and no longer work and it would be great to identify them without looking through every page .... which would take a very long time. The missing image mod would not work on my site.

27 Apr 2019, 9:46 PM
#8
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Missing image to create a debug log?

The missing image mod would not work on my site.
Does that mean it DID not work when you tried it, or it is just not going to work on your site for some reason....?
Please post in the Plugin thread if there's a problem with it.

If you think you have corrupted images, you could download the whole images folder, and use Irfanview to view all the files and subfolders as thumbnails to quickly verify which are broken. No doubt there is a better way but that's the first that springs to mind.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

28 Apr 2019, 1:42 PM
#9
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Missing image to create a debug log?

Thank you! I did post on the thread when it happened. It just timed out.... I guess. I have about 7000 active skus. I do know about looking through the directory but it is also time consuming.

30 Apr 2019, 12:06 PM
#10
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Missing image to create a debug log?

I did post on the thread when it happened.
Indeed you did, but did not reply to my question....

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...