If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Started by lat9 on 15 Oct 2017, 3:54 PM · Views: 160,515

Results 261 to 280 of 774
30 Jul 2019, 3:42 PM
#261
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

That repeated message in the debug information, similar to:

calculate_size, file does not exist. ... returning images/categories/astinlautaaudiq3.jpg

Indicates that IH is not finding that file in your store's file-system. Do you have any .htaccess modifications in the root of your store's file-system?

30 Jul 2019, 4:22 PM
#262
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Hi,

yes we did had to add .htaccess because we were pestered with hundreds of hits from nonbehaving robots:```
ExpiresActive On

Format: A where n is a number of seconds. Expires cache n seconds after access

A2629740

ExpiresByType application/javascript A2629740
ExpiresByType application/x-javascript A2629740
ExpiresByType text/javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A900
ExpiresByType image/x-icon A900
ExpiresByType image/icon A900
ExpiresByType image/jpg A900
ExpiresByType image/jpeg A900
ExpiresByType image/png A900

SetEnvIfNoCase User-Agent .rogerbot. bad_bot
SetEnvIfNoCase User-Agent .exabot. bad_bot
SetEnvIfNoCase User-Agent .mj12bot. bad_bot
SetEnvIfNoCase User-Agent .dotbot. bad_bot
SetEnvIfNoCase User-Agent .gigabot. bad_bot
SetEnvIfNoCase User-Agent .ahrefsbot. bad_bot
SetEnvIfNoCase User-Agent .sitebot. bad_bot

<Limit GET POST HEAD> Order Allow,Deny Allow from all Deny from env=bad_bot Deny from 110.0.0.0/8 Deny from 111.0.0.0/8 Deny from 112.0.0.0/5 Deny from 120.0.0.0/6 Deny from 124.0.0.0/8 Deny from 125.0.0.0/8 Deny from 147.0.0.0/8 Deny from 46.4.62.121 Deny from 46.229.168.139 Deny from 88.99.250.124 Deny from 46.229.168.163 Deny from 46.229.168.149 Deny from 144.76.68.88 Deny from 88.99.250.124 Deny from 46.229.168.0/8 Deny from 46.4.62.0/8 Deny from 46.4.62.0/8 Deny from 144.76.68.0/8 Deny from 46.229.168.0/8 Deny from 144.76.68.0/8 Deny from 46.229.168.0/8 Deny from 46.229.168.154 Deny from 46.229.168.0/8 Deny from 46.4.62.0/8 Deny from 46.4.62.121 Deny from 46.229.168.144 Deny from 46.229.168.145 Deny from 144.76.68.88 </Limit> ```
30 Jul 2019, 4:48 PM
#263
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Can you verify that the image identified above does exist?

30 Jul 2019, 5:37 PM
#264
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Hi,

problem is that the old image handler also removed folders from /images like images/categories if I interpret log files right. There is only images folder left.

30 Jul 2019, 6:07 PM
#265
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

OopsIbrickedIT:

Hi,

problem is that the old image handler also removed folders from /images like images/categories if I interpret log files right. There is only images folder left.
Well, that s-cks! I wish I could help more, but my experience with IH-4 is very limited.

That at least explains why IH-5 can't display those images.

30 Jul 2019, 7:10 PM
#266
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

Well, that s-cks! I wish I could help more, but my experience with IH-4 is very limited.

That at least explains why IH-5 can't display those images.

Yes it really does :( now I tried to recreate the folder structure from backup before image handler 4 installation and same folder disappearing happens also with IH5. Only thing I can think of which originates from old is the database and something is clearly wrong with some setting in it. This is just my hunch but perhaps only logical explanation.

I am in deep Rabbit Hole with this right now.

30 Jul 2019, 7:46 PM
#267
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I got an idea. How if I copy all of the images from old IH-4 bmz_cache to new shop images folder and turn before that the hashing off? Because seems that images from /images folder are also partly missing. Would that possibly work? the db references would be same.

30 Jul 2019, 7:49 PM
#268
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Unfortunately, IH-4 has hashed those image-names upon creation in the /bmz_cache directory and it's not an easy/possible task to un-hash those names.

30 Jul 2019, 8:56 PM
#269
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Shouldn't the IH-5 be backward compatible with IH-4 regarding the bmz_cache? So we have all the image info in bmz_cache only and db should have the linking info. Problem persists but perhaps there is a solution. Should we possibly remove IH-5 and install older IH4_3_2 instead with same settings so we could use the old bmz_cache?

31 Jul 2019, 1:33 AM
#270
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

IH4 and IH5 use completely different naming for the bmz cached images. additionally, the bmz cached filenames are not stored in the database, only the original image filename is store in the database. I have been using image handler since it was first introduced and have never seen what you describe > "problem is that the old image handler also removed folders from /images like images/categories"
I don't even think there is a mechanism in code for image handler that would do that. When I do an upgrade I don't concern myself with the bmz cache folder, I leave it behind and start over fresh, because of things like new naming conventions. When changing image sizes on the site when tweaking the look of the site, I purge the bmz cache many times until I have everything the way I want it. I would love to know all of the steps to reproduce the issue of sub-folders in the iomages folder being deleted by image handler (any version). I know if one of my clients came to me and told me that I would tear the server logs apart to determine who nuked them by accident and is blaming it on image handler...

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

31 Jul 2019, 8:58 AM
#271
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Hi Barco, I don't think we are nuked and I would very much love to know the solution to this too. So it would help us if we could pull out that image location data from db and check how the original folder structure was constructed. There has been over decade of different upgraders and the latest backup before IH installation is incomplete because broken laptop. So there is a bad karma lurking around. Old saying there are never enough backups is true this time. My boss gave me gracefully 24 hours to solve this problem or we revert to old platform and I don't think that is wise because it is too slow.

31 Jul 2019, 11:23 AM
#272
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

barco57:

IH4 and IH5 use completely different naming for the bmz cached images. ...
@barco57, IH-5 provides an additional (readable) naming convention for the cached images, while maintaining the hashed-name convention used by previous versions.

31 Jul 2019, 3:29 PM
#273
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

Unfortunately, IH-4 has hashed those image-names upon creation in the /bmz_cache directory and it's not an easy/possible task to un-hash those names.

If they are familiar with Bash shell scripting they could probably write a script to do it.... or they could put a request in the Commercial Help Wanted... and let me know they did. :)

31 Jul 2019, 3:46 PM
#274
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Have you asked your hosting company if they have a backup before you made these changes? Also, I recommend having a backup on a flash drive and on an external website like OneDrive.

31 Jul 2019, 3:50 PM
#275
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

OopsIbrickedIT:

Hi Barco, I don't think we are nuked and I would very much love to know the solution to this too. So it would help us if we could pull out that image location data from db and check how the original folder structure was constructed. There has been over decade of different upgraders and the latest backup before IH installation is incomplete because broken laptop. So there is a bad karma lurking around. Old saying there are never enough backups is true this time. My boss gave me gracefully 24 hours to solve this problem or we revert to old platform and I don't think that is wise because it is too slow.

Hello! If your boss is threatening to go to an old system.... this must mean you have the images somewhere else too? If you do, then with those images and the knowledge of the image name and location from within the products table should allow everything to be rebuilt?

31 Jul 2019, 4:04 PM
#276
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

@lat9 I forgot there was a switch in IH5 to choose between hashed and readable.
That still won't help OopsIbrickedIT extract what he is looking for... to rebuild the images folder.
For a partial list of images folder structure, you would need to export the following fields from the database:

banners_image (banners table)
categories_image (categories table)
products_image (products table)

This would at least give you a list of what the original images were named and where they lived in the images folder. It would not tell you about everything that was in the images folder as there could have been all sorts of images in there that had nothing to do with those fields and would not have touched by IH. If the bmz cache filenames can be unhashed to allow you to connect the resized images to their original parent image that will get you part of the way there. However, after checking and testing on a couple of sites this morning, I have found that the largest version of the image to be displayed in the larger image popup, normally the original large image uploaded, is not in the bmz cache and is served directly from its images folder location.

So you should be able to approximate the structure of the images folder from the database but I don't think you are going to be able to completely recover all of the images via the bmz cache

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

5 Aug 2019, 2:29 PM
#277
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

barco57:

@lat9 I forgot there was a switch in IH5 to choose between hashed and readable.
That still won't help OopsIbrickedIT extract what he is looking for... to rebuild the images folder.
For a partial list of images folder structure, you would need to export the following fields from the database:

banners_image (banners table)
categories_image (categories table)
products_image (products table)

> This would at least give you a list of what the original images were named and where they lived in the images folder. It would not tell you about everything that was in the images folder as there could have been all sorts of images in there that had nothing to do with those fields and would not have touched by IH. If the bmz cache filenames can be unhashed to allow you to connect the resized images to their original parent image that will get you part of the way there. However, after checking and testing on a couple of sites this morning, I have found that the largest version of the image to be displayed in the larger image popup, normally the original large image uploaded, is not in the bmz cache and is served directly from its images folder location.
> 
> So you should be able to approximate the structure of the images folder from the database but I don't think you are going to be able to completely recover all of the images via the bmz cache

Thank you very much for the help, I will try that. And ve do have that old bmz_cache folder with imagehandler 4 intact and I tought that could be the way. We had to revert to old site partly because of this problem. I'll post my doings ere when I have time. Possibly it some day might help somebody. I have OVH-sas as hosting provider and I suspect it even might be something do with their server settings.
10 Aug 2019, 4:37 PM
#278
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I am using version 156c and had Image Handler 5 installed.
My question is why do I have the 1st pic of a particular item have all 3 size images (small, medium, and large) and the additional pics of the same item only have the small and the large pic and not the medium.
Also why does the hover effect not work. What am I missing

10 Aug 2019, 5:08 PM
#279
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Maynards:

I am using version 156c and had Image Handler 5 installed.
My question is why do I have the 1st pic of a particular item have all 3 size images (small, medium, and large) and the additional pics of the same item only have the small and the large pic and not the medium.
Also why does the hover effect not work. What am I missing
A product's "medium" image is used as the primary product-image on a product's detailed-information page, e.g. product_info. It can also exist as a small (for product-listing display) or large (for product-details popups).

A product's additional images only are used in the small and large forms; that's why there is no medium-image created for the additional images.

That hover-effect can be wonky and is no longer supported.

10 Aug 2019, 5:15 PM
#280
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

A product's "medium" image is used as the primary product-image on a product's detailed-information page, e.g. product_info. It can also exist as a small (for product-listing display) or large (for product-details popups).

A product's additional images only are used in the small and large forms; that's why there is no medium-image created for the additional images.

That hover-effect can be wonky and is no longer supported.

Thank you for response.
So it looks like everything is working as it is suppose to.
Is the proper way to use this plugin to start with a large image and drop it into the LRG Image folder or to start with a small image and just drop it into the Image folder?