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 301 to 320 of 774
6 Nov 2019, 12:33 PM
#301
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

I've just submitted v1.5.7 of Image Handler 5 to the Zen Cart moderators for review; I'll post back here when it's available for download.

 This release contains changes for the following GitHub issues:

#191: Submit buttons to "Save" or "Delete" are inoperable in the admin tool.
#193: Correct 'missing needle' PHP notices

8 Nov 2019, 8:28 PM
#302
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

lat9:

I've just submitted v1.5.7 of Image Handler 5 to the Zen Cart moderators for review; I'll post back here when it's available for download.

 This release contains changes for the following GitHub issues:

#191: Submit buttons to "Save" or "Delete" are inoperable in the admin tool.
#193: Correct 'missing needle' PHP notices
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

9 Nov 2019, 1:26 PM
#303
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

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

lat9:

I've just submitted v1.5.7 of Image Handler 5 to the Zen Cart moderators for review; I'll post back here when it's available for download.

Thank you for this update @lat9, I would just point out that

v1.5.7 != v5.1.7

Simon

9 Nov 2019, 1:57 PM
#304
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

simon1066:

Thank you for this update @lat9, I would just point out that

v1.5.7 != v5.1.7
I'm having some major dyslexia issues; thanks for keeping me relatively honest!

... at least I'm being consistent; I'd misspelled the release identifier last time, too (1.5.6 != 5.1.6).

15 Nov 2019, 9:12 PM
#305
mjf91331 avatar

mjf91331

New Zenner

Join Date:
Sep 2019
Location:
Los Angeles
Posts:
14
Plugin Contributions:
0

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

lat9:

For your first question, is it that images aren't being displayed on your store's product pages, when they're displayed as a result of a Google search OR is it that images previously found by Google searches (prior to IH being configured to resize images) can't be found when they're displayed as a result of a Google search?

You're correct; the image-display-on-hover feature (which has been problematic in its positioning for years) will be removed in a future IH-5 release.

I mean that if I search my site name on Google images tab plus any product name, nothing shows up for products which have images changed by image handler. The only products/images which show up are products just using the default image upload (unchanged by IH) and products where there are "related products" with default images and Google incorrectly shows that as the image for the product in the search.

I don't really know if that can negatively impact my ranking for regular searches but I also have some Google Search Console "valid with warnings" Missing field "image" for a small amount of products which do have images. Not sure if it's related at all.

16 Nov 2019, 12:35 PM
#306
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

I've checked sites that use IH-5 and their bmz_cache'd images are showing on Google Images. Did you copy the .htaccess file for the bmz_cache directory?

A link to your site would help.

6 Dec 2019, 12:25 AM
#307
ted_grapler avatar

ted_grapler

New Zenner

Join Date:
Nov 2015
Location:
New Jersey USA
Posts:
76
Plugin Contributions:
0

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

I want to install IH 5 v1.5.7 on a Zen Cart 1.5.6c test site with PHP 7.2.24 and Ubuntu 18 installed. I see it's been tested with up to PHP 7.1... Should it work fine, work with issues, or ???

Any advice or suggestions are appreciated.

6 Dec 2019, 9:24 AM
#308
torvista avatar

torvista

Totally Zenned

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

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

for me its fine on php 7.3.11.

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

18 Dec 2019, 9:09 PM
#309
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

v1.5.5f php 7.1 IH 5.1.5

please refer to this thread originally started in General Questions before it was found to be an IH issue https://www.zen-cart.com/showthread.php?226191-Sitemap-Issue-Images-resulting-in-404-not-found&p=1364263

Problem: Images are not showing up in Google images

Cause: images in sitemap/sitemapproducts have a _LRG suffix in the url which renders to 404 not found error -

Images in sitemap/sitemapproducts have been allocated to folder/images/large and have a _LRG suffix in the url which renders to 404 not found error - a typical url in the sitemap is

https://www.dazzlerscliponearrings.com.au/images/large/earrings/clip-on-earrings-657_LRG.gif

from the site if I use the browser 'image properties' and copy the url it works fine - the above should example should be

https://www.dazzlerscliponearrings.com.au/images/earrings/clip-on-earrings-657.gif

The images are NOT in that /large/ folder - they are in the folder public_html/images/earrings/ ... so why is it that sitemapxml is using this incorrect url format?

Solution?? the 'apparent solution' that worked for me is changing admin/configuration/images/IH resize images >> to 'no' - (the following is my assumption and needs validating by someone who understands the functions of IH) .. when set to yes this appears to have IH add the _LRG suffix if the image size for product_info size is smaller than the image size on file in the images folder - e.g. if your image as uploaded is 700x700 pixels and you set product_ifo image size at 300 x 300 pixels then IH will consider it at the 700 x 700 and allocates it to large images. So by setting it to no it ignores the file image size and does not 'resize' for sitemap url's.

NEW PROBLEM?? - with IH resize images set at no according to mc123456789 > As far as setting the value to no, understand that IH is no longer active and therefore not optimizing images.

So this will definitely not be good for SEO - so is there another better solution?

cheers,
Mike

19 Dec 2019, 12:23 PM
#310
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

Mike, would you point me to the product-info page for the product/image combination in question, making sure that IH is resizing images?

19 Dec 2019, 11:30 PM
#311
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

Hi Cindy,

here is a product page https://www.dazzlerscliponearrings.com.au/button-style-clip-on/twisted-knot-clip-on-earrings-gold-with-black-highlight
some info of image on the above page from image properties (firefox)

https://www.dazzlerscliponearrings.com.au/images/earrings/CE20020-AG-06X08-Clip-244293-350-01.jpg
575px × 450px (scaled to 350px × 274px)
87.87 KB

this is for the same image in bmz_cache

in bmz_cache it is 13.6kb ... 2b6efbe68d90549115c80c873852605d.image.350x273

So it appears IH may be doing its resizing task however I will leave the decision up to the expert :smile:

Importantly though, is the way I solved the issue of the _LRG suffix the right way to do it or is there another better fix?

cheers,
Mike

20 Dec 2019, 12:02 PM
#312
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

Mike, could you run a quick test running the sitemapxml after editing /includes/classes/bmz_image_handler_class.php, finding this section at the top:

if (!defined('IH_DEBUG_ADMIN')) {
    define('IH_DEBUG_ADMIN', 'false');
}
if (!defined('IH_DEBUG_STOREFRONT')) {
    define('IH_DEBUG_STOREFRONT', 'false');
}

if (!defined('IS_ADMIN_FLAG')) {
    exit('Illegal access');
}

and changing the IH_DEBUG_STOREFRONT setting to 'true'? Once you've run the sitemap, change that back to 'false' again.

You should find one (or more) /logs/ih_debug.log* files. You can either post the contents back here or, if they're too big or have 'sensitive' information, send me those directly.

20 Dec 2019, 11:22 PM
#313
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

lat9:

Mike, could you run a quick test running the sitemapxml after editing /includes/classes/bmz_image_handler_class.php, finding this section at the top:

if (!defined('IH_DEBUG_ADMIN')) {
define('IH_DEBUG_ADMIN', 'false');
}
if (!defined('IH_DEBUG_STOREFRONT')) {
define('IH_DEBUG_STOREFRONT', 'false');
}

if (!defined('IS_ADMIN_FLAG')) {
exit('Illegal access');
}

> and changing the IH_DEBUG_STOREFRONT setting to **'true'**?  Once you've run the sitemap, change that back to 'false' again.
> 
> You should find one (or more) **/logs/ih_debug*.log** files.  You can either post the contents back here or, if they're too big or have 'sensitive' information, send me those directly.

Hi Cindy,

I changed that instruction and ran the sitemap twice (I didn't ping search engines for this test, just rebuild sitemaps), 1/2 hour apart, however I am not seeing any logs at all - a good thing right? there is no sub folder in /logs/ for /ih_debug*.log  ... should there be or is that just the file name that would appear? in any case, no logs thrown.

cheers,
Mike
21 Dec 2019, 12:23 PM
#314
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

shags38:

Hi Cindy,

I changed that instruction and ran the sitemap twice (I didn't ping search engines for this test, just rebuild sitemaps), 1/2 hour apart, however I am not seeing any logs at all - a good thing right? there is no sub folder in /logs/ for /ih_debug*.log ... should there be or is that just the file name that would appear? in any case, no logs thrown.

cheers,
Mike
Mike, if IH is enabled (i.e. IH resize images is 'yes'), then that's not a good thing, since each request to the IH handle_image function should result in one or more records being written.

If IH is not enabled, then that lack of logs is expected, since IH isn't being asked to (er) handle the images.

21 Dec 2019, 1:15 PM
#315
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

lat9:

Mike, if IH is enabled (i.e. IH resize images is 'yes'), then that's not a good thing, since each request to the IH handle_image function should result in one or more records being written.

If IH is not enabled, then that lack of logs is expected, since IH isn't being asked to (er) handle the images.

Hi Cindy, thanks for that - so with me setting IH resize images to no to solve the _LRG suffix issue - was that the best fix or are you aware of a better fix?

cheers,
Mike

21 Dec 2019, 1:38 PM
#316
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

shags38:

Hi Cindy, thanks for that - so with me setting IH resize images to no to solve the _LRG suffix issue - was that the best fix or are you aware of a better fix?

cheers,
Mike
Mike, with that change in setting, you've found a work-around but not a fix. Without seeing what's going on with the IH/Sitemapxml interaction, I've no idea what the root-cause of the issue is.

21 Dec 2019, 1:44 PM
#317
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

lat9:

Mike, with that change in setting, you've found a work-around but not a fix. Without seeing what's going on with the IH/Sitemapxml interaction, I've no idea what the root-cause of the issue is.

Ok - I will change IH resize images to yes and then will edit /includes/classes/bmz_image_handler_class.php and run sitemap and post the resultant logs .... in the morning, it has just gone midnight here :smile:

21 Dec 2019, 2:37 PM
#318
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

shags38:

Ok - I will change IH resize images to yes and then will edit /includes/classes/bmz_image_handler_class.php and run sitemap and post the resultant logs .... in the morning, it has just gone midnight here :smile:
Mike, I think I found the source of the issue. Check your site's /includes/modules/pages/sitemapxml/sitemapxmp_products.php, towards the top of the file, looking for

define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', 'false'); // true false

That value defaults to false, which causes the image-generation to bypass any IH processing. If that's the case, update that line to read:

define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', '[B]true[/B]'); // true false
21 Dec 2019, 11:32 PM
#319
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

lat9:

Mike, I think I found the source of the issue. Check your site's /includes/modules/pages/sitemapxml/sitemapxmp_products.php, towards the top of the file, looking for

define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', 'false'); // true false

> That value defaults to **false**, which causes the image-generation to bypass any IH processing.  If that's the case, update that line to read:
> ```
define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', '[B]true[/B]'); // true false

Hi Cindy - I changed admin/configuration/images to IH resize images = yes and then made that change (above) from false to true and ran sitemap and the image urls were fine, i.e. no _LRG suffix
I then changed /includes/classes/bmz_image_handler_class.php to = 'true' and ran sitemap again - to generate logs - but again no logs.

So it appears your last 'find' has done the trick :clap: - I will monitor sitemap over the coming week or so to ensure that it continues to behave.

Thank you very much again, I am truly grateful for your support and I will take this opportunity to to wish you and yours all the best for the festive season.

cheers,
Mike

22 Dec 2019, 12:40 PM
#320
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

shags38:

Hi Cindy - I changed admin/configuration/images to IH resize images = yes and then made that change (above) from false to true and ran sitemap and the image urls were fine, i.e. no _LRG suffix
I then changed /includes/classes/bmz_image_handler_class.php to = 'true' and ran sitemap again - to generate logs - but again no logs.

So it appears your last 'find' has done the trick :clap: - I will monitor sitemap over the coming week or so to ensure that it continues to behave.

Thank you very much again, I am truly grateful for your support and I will take this opportunity to to wish you and yours all the best for the festive season.

cheers,
Mike
Thanks, Mike, for the follow-up. I'll add a note to the IH readme regarding the interaction with SiteMapXML. Wishing you and yours a great holiday season as well.