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 701 to 720 of 774
1 May 2025, 10:11 PM
#701
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

lat9:

Because you've removed images and not cleared the Image Handler bmz_cache? I'll note that the following image no longer exists on the site:

https://outdoorking.com.au/images/Product%20images%20directory/092852MA.jpg

Ok just moved some other products that I placed on the website and the addotional images appear to be showing but for some reason that image is not showing up.

Do you thing it could have happened when the server was backing up or something stupid like that.

I will delete and reload the product shortly to see if it corrects the issue and get back to you.

Outdoorking
Live Site https://www.outdoorking.com.au

1 May 2025, 11:09 PM
#702
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

Hi All,

I think that I found the issue at that was when I added the two products which I have two different suppliers with two different pricing.

  1. Masport I just wanted to use 092852MA_01.jpg as the main image

  2. Murray I wanted two images to show 092852MA.jpg and 092852MA_01 (Suppliers Box) so as not to confuse people when buying what brand.

It would assume that the image handler or zencart will not allow you to specify the main image on a product i.e. 092852MA_01.jpg on one and 092852MA.jpg on the other.

I hope I have explained this correctly to you all.

Outdoorking
Live Site https://www.outdoorking.com.au

2 May 2025, 6:20 AM
#703
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

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

Shop Suey:

_1 is an additional image - which you want recycle to use as a main image - which will create an image with underscore file name _1 for any additional image and so on.
I don't say It can't work.
Decide yourself whether you want to work this way.

To cite myself

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

2 May 2025, 12:28 PM
#704
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

Bruce1952:

Hi All,

I think that I found the issue at that was when I added the two products which I have two different suppliers with two different pricing.

  1. Masport I just wanted to use 092852MA_01.jpg as the main image

  2. Murray I wanted two images to show 092852MA.jpg and 092852MA_01 (Suppliers Box) so as not to confuse people when buying what brand.

It would assume that the image handler or zencart will not allow you to specify the main image on a product i.e. 092852MA_01.jpg on one and 092852MA.jpg on the other.

I hope I have explained this correctly to you all.
Your assumption would be incorrect.

5 May 2025, 9:30 AM
#705
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

New issue with image handler 5 regarding the image resizing and watermark sizes.

  1. I had a look at the docs tab on the forum which is telling me that the image water marks should be located in the images folder. Would that be correct.

  2. Also it stated that they should be in the image folder under large and medium folder. Would that be correct which end in _LRG and _MED

  3. Where else would they be located because I want to remove files that are not needed because people that worked on the site left files everwhere and when they finished they left them there.

  4. What size should the water mark files be because in the past I uploaded images to the site 400 x 400 and over the years I have resized the to a size of 1200 x 1200.

  5. I thought that the new image handler was supposed to correct images and re size. The old version had an option in image handler where you could upload an updated image but it looks like that got lost in the new version which now makes very time consuming to say the least when programes should make things easier not harder.

As usuall any assistance would be a great help on how to fix and advise on what I need to do.

Outdoorking
Live Site https://www.outdoorking.com.au

5 May 2025, 12:05 PM
#706
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

Bruce1952:

New issue with image handler 5 regarding the image resizing and watermark sizes.

  1. I had a look at the docs tab on the forum which is telling me that the image water marks should be located in the images folder. Would that be correct.

Yes

  1. Also it stated that they should be in the image folder under large and medium folder. Would that be correct which end in _LRG and _MED

Yes

  1. Where else would they be located because I want to remove files that are not needed because people that worked on the site left files everwhere and when they finished they left them there.

No where.

  1. What size should the water mark files be because in the past I uploaded images to the site 400 x 400 and over the years I have resized the to a size of 1200 x 1200.

The watermark files should be sized to match the dimensions you've configured for small/medium/large images.

  1. I thought that the new image handler was supposed to correct images and re size. The old version had an option in image handler where you could upload an updated image but it looks like that got lost in the new version which now makes very time consuming to say the least when programes should make things easier not harder.

IH have never corrected images, only resized. I'm not sure what version you're referencing by the "old" version, but I'm unaware of any such functionality in IH-4 (from which IH-5, the current version, was derived).

As usuall any assistance would be a great help on how to fix and advise on what I need to do.
See my responses inline above.

5 May 2025, 12:28 PM
#707
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

Bruce1952:

New issue with image handler 5 regarding the image resizing and watermark sizes.

  1. I had a look at the docs tab on the forum which is telling me that the image water marks should be located in the images folder. Would that be correct.

  2. Also it stated that they should be in the image folder under large and medium folder. Would that be correct which end in _LRG and _MED

  3. Where else would they be located because I want to remove files that are not needed because people that worked on the site left files everwhere and when they finished they left them there.

  4. What size should the water mark files be because in the past I uploaded images to the site 400 x 400 and over the years I have resized the to a size of 1200 x 1200.

  5. I thought that the new image handler was supposed to correct images and re size. The old version had an option in image handler where you could upload an updated image but it looks like that got lost in the new version which now makes very time consuming to say the least when programes should make things easier not harder.

As usuall any assistance would be a great help on how to fix and advise on what I need to do.

Thanks for the assistance again it is really helpful.

What I was trying to explain was that in the old image handler (which checked the product images for errors) I thought it had an option to upload a new image and it adjusted it to small medium and large. I could be wrong but that is what I was used to in the past when I was building the site and it was a zencart module.

Just one other question where is the small folder located in the image folder or where is the small image located as I can't find it and does it have an ending in _SML.

Also what are the zoom watermarks.

Outdoorking
Live Site https://www.outdoorking.com.au

5 May 2025, 12:51 PM
#708
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

Bruce1952:

Thanks for the assistance again it is really helpful.

What I was trying to explain was that in the old image handler (which checked the product images for errors) I thought it had an option to upload a new image and it adjusted it to small medium and large. I could be wrong but that is what I was used to in the past when I was building the site and it was a zencart module.

Just one other question where is the small folder located in the image folder or where is the small image located as I can't find it and does it have an ending in _SML.

Also what are the zoom watermarks.
Again, "old" isn't helpful; what version of IH are you referring to?

There's no "small" folder, it's just the base /images{/subdirectory} directory.

Give me a link to the documentation that refers to "zoom watermarks".

8 May 2025, 11:12 AM
#709
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

lat9:

Again, "old" isn't helpful; what version of IH are you referring to?

There's no "small" folder, it's just the base /images{/subdirectory} directory.

Give me a link to the documentation that refers to "zoom watermarks".

Ok the old module was called image manager version 1.9 that I know of and this is in the file on what it does:

Basically, Image Manager has two main functions:

  1. Management of images, attached to products
    Image Manager will provide a list of all files, that are present in the images folder and are attached to a product.
    This includes additional files.

    The following filters/sort orders can be applied:

    • show products with status on or off or show all products
    • show image as a link or show thumbnail
    • show images that are present on all levels (small, medium and large) and have the appropriate size, show images that
      don't, or show all
    • sort order on folder/filename, on product ID or on size of the large image
    • select images of one specific product

    On each image, the following actions can be performed:

    • Create a medium size image, if it doesn't exist yet, and if the small image meets the size-requirements for medium
      size images
    • Create a large size image, if it doesn't exist yet, and if the small image larger than the size-requirements for
      medium size images
    • Resize an existing medium size image if too large
    • Resize an existing small size image if too large (only if both medium and large images exist)
    • Resize an existing large image, if too large according to the configuration settings
    • Upload an image from the local computer to replace an existing image. After uploading the image can be copied/resized
      with the functions mentioned above
    • Apply a watermark, if not already done while copying/shrinking the image. This is only available for sets of properly
      sized images, and if a watermark file is present at that level. See the remarks on watermarking
    • Delete a medium or large size image (small images cannot be deleted, they are deleted on removal of the product)
    • Delete a small additional image

    If the selection is made to show only the images of one product, IM will show a link to upload additional images for this product.
    The link will show up beneath the list of images, and only if folders, access rights and configuration values permit this.

    The products link to their 'edit product' page, to provide access to product details. Images that are attached to
    multiple products will show all these products in the products column.

    Image Manager will also check for the existence of the necessary folders and check access rights.
    Non existent folders will be automatically created, if Image Manager has sufficient rights to do so.

  2. Management of images, not attached to products
    Image Manager will provide a list of all files, that are present in the image folder and subfolders. Both main image files
    and additional images of products will be excluded from the list. The additional files are recognized following the naming
    instructions in the Zen-Cart Tutorials/FAQ (see http://tutorials.zen-cart.com/index.php?article=58).
    It excludes some folders that are known to have other uses, other folders can be excluded by configuration option.
    The option to show a link or a thumbnail, or show the thumbnail of the file when hovering the mouse over the filename,
    is also functional here.
    A link is provided to delete the file.
    Also, each image has a checkbox to select for multiple delete. After clicking 'Send' you will be asked for confirmation,
    and the removal will be done.

Outdoorking
Live Site https://www.outdoorking.com.au

8 May 2025, 12:43 PM
#710
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

Image Manager is quite the different animal/plugin from Image Handler. Further discussion of "Image Manager" should be in that add-on's support thread (which may or may not exist).

9 May 2025, 9:00 AM
#711
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

lat9:

Image Manager is quite the different animal/plugin from Image Handler. Further discussion of "Image Manager" should be in that add-on's support thread (which may or may not exist).

If it is different then why does it have the same basic layout.

The only difference that I can see is that image handler does not check images for products which would say to me that half the old module was cut out.

Why is so.

Outdoorking
Live Site https://www.outdoorking.com.au

10 May 2025, 1:13 PM
#712
nldav avatar

nldav

New Zenner

Join Date:
Jan 2005
Posts:
55
Plugin Contributions:
0

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

Bruce1952:

Ok the old module was called image manager version 1.9 that I know of and this is in

Its some kind of fork from IH2 (!) by some guy called boudewijn => https://www.zen-cart.com/showthread.php?139344-Image-Manager-addon

This plugin hasn't been worked on anymore for the last 10+ years.

23 Jun 2025, 7:26 AM
#713
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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

Hi there,
I am just eliminating log errors, I noticed the following for IH:-

--> PHP Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /includes/classes/observers/ImageHandlerObserver.php on line 82.

I know this is because I am on php 8.3, but just thought I would see if there was a possible quick fix? Thanks in advance.

23 Jun 2025, 12:28 PM
#714
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

HeathenMagic:

Hi there,
I am just eliminating log errors, I noticed the following for IH:-

I know this is because I am on php 8.3, but just thought I would see if there was a possible quick fix? Thanks in advance.
First, that's not the full log, since the full log would show the page (and product number) being displayed. It would also help to know what version of Zen Cart is in use.

That log's implying that the associated product's $products_name is NULL and I'm surprised that you're not seeing other logs for the page. Let me know the Zen Cart version and I'll get you a correction.

24 Jun 2025, 9:48 AM
#715
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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

lat9:

First, that's not the full log, since the full log would show the page (and product number) being displayed. It would also help to know what version of Zen Cart is in use.

That log's implying that the associated product's $products_name is NULL and I'm surprised that you're not seeing other logs for the page. Let me know the Zen Cart version and I'll get you a correction.

Hi there, sorry I should have mentioned. I am on 2.01 zencart and php 8.3. I will try and find the log again, I clear after a few logs pile up again. But I will get back with a full one, sorry about that. I think as it was from one log with an unrelated warning, I did too small a snippet.

26 Jun 2025, 9:49 AM
#716
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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

Am struggling to find that log again, it must be a particular action that triggers it. But I found this one whilst I was waiting for that log to come up:-

25-Jun-2025 06:27:51 Europe/London] Request URI: /products_all?products_id=20890&view=rows, IP address: 207.46.13.17, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/observers/ImageHandlerObserver.php(82): addslashes()
#2 /includes/classes/traits/NotifierManager.php(106): ImageHandlerObserver->update()
#3 /includes/functions/extra_functions/wt_wokiee_template_functions.php(597): base->notify()
#4 /includes/functions/extra_functions/wt_wokiee_template_functions.php(819): wt_wokiee_additional_images()
#5 /includes/modules//product_listing.php(168): get_wt_wokiee_product_content()
#6 /includes/templates/
/templates/tpl_modules_product_listing.php(10): include('/home//...')
#7 /includes/templates/
/templates/tpl_products_all_default.php(40): require('/home//...')
#8 /includes/templates/
/common/tpl_main_page.php(167): require('/home/****/...')
#9 /index.php(94): require('/home/*****/...')
--> PHP Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /includes/classes/observers/ImageHandlerObserver.php on line 82.

26 Jun 2025, 1:52 PM
#717
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

HeathenMagic:

Am struggling to find that log again, it must be a particular action that triggers it. But I found this one whilst I was waiting for that log to come up:-
Thanks for that. It appears that /includes/functions/extra_functions/wt_wokiee_template_functions.php, on line 597, is issuing a non-standard notification that IH is watching for. The base code issues that notification out of /includes/modules/additional_images:

        // -----
        // This notifier lets any image-handler know the current image being processed, providing the following parameters:
        //
        // $p1 ... (r/o) ... The current product's name
        // $p2 ... (r/w) ... The (possibly updated) filename (including path) of the current additional image.
        //
        $GLOBALS['zco_notifier']->notify('NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE', $products_name, $products_image_large);

That log implies that the notification is being issued with a non-string $products_name parameter.

You can update IH's /includes/classes/observers/ImageHandlerObserver.php, starting at line 75, to add the string-casts highlighted below to work-around that issue:

            case 'NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE':
                $products_name =[B] (string)[/B]$p1;
                $products_image_large =[B] (string)[/B]$p2;
                if (ih_image_supported($products_image_large) === false) {
                    return;
                }
26 Jun 2025, 2:58 PM
#718
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

v5.3.6 of Image Handler 5 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

This release casts notification variables to prevent unwanted PHP logs due to notification anomalies associated with the wokiee template.

26 Jun 2025, 9:55 PM
#719
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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

lat9:

Thanks for that. It appears that /includes/functions/extra_functions/wt_wokiee_template_functions.php, on line 597, is issuing a non-standard notification that IH is watching for. The base code issues that notification out of /includes/modules/additional_images:

    // -----
    // This notifier lets any image-handler know the current image being processed, providing the following parameters:
    //
    // $p1 ... (r/o) ... The current product's name
    // $p2 ... (r/w) ... The (possibly updated) filename (including path) of the current additional image.
    //
    $GLOBALS['zco_notifier']->notify('NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE', $products_name, $products_image_large);
> That log implies that the notification is being issued with a non-string $products_name parameter.
> 
> You can update IH's /includes/classes/observers/ImageHandlerObserver.php, starting at line 75, to add the string-casts highlighted below to work-around that issue:
> ```
            case 'NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE':
                $products_name =[B] (string)[/B]$p1;
                $products_image_large =[B] (string)[/B]$p2;
                if (ih_image_supported($products_image_large) === false) {
                    return;
                }

Thanks for that, yes I was getting a series of notifications on same log for same error. I have applied fix as you specified :-)

25 Aug 2025, 1:46 PM
#720
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

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

Good morning, j'ai le jscript_imagehover.js which is loaded into the header, is it possible to load the footer pages? how is he called back? since the file jscript/jscript_imagehover.js does not exist on my template.

<script src="includes/templates/wokiee/jscript/jscript_imagehover.js"></script>
<script title="zcJS.ajax">
if (typeof zcJS == "undefined" || !zcJS) {
  window.zcJS = { name: 'zcJS', version: '0.1.0.0' };
}

zcJS.ajax = function (options) {
  options.url = options.url.replace("&", unescape("&"));
  var deferred = jQuery.Deferred(function (d) {
      var securityToken = 'e9c348756954e247aa6b6d66d62bea2d';
      var defaults = {
          cache: false,
          type: 'POST',
          traditional: true,
          dataType: 'json',
          timeout: 5000,
          data: jQuery.extend(true,{
            securityToken: securityToken
        }, options.data)
      },
      settings = jQuery.extend(true, {}, defaults, options);
      if (typeof(console.log) == 'function') {
          console.log( settings );
      }

      d.done(settings.success);
      d.fail(settings.error);
      d.done(settings.complete);
      var jqXHRSettings = jQuery.extend(true, {}, settings, {
          success: function (response, textStatus, jqXHR) {
            d.resolve(response, textStatus, jqXHR);
          },
          error: function (jqXHR, textStatus, errorThrown) {
              if (window.console) {
                if (typeof(console.log) == 'function') {
                  console.log(jqXHR);
                }
              }
              d.reject(jqXHR, textStatus, errorThrown);
          },
          complete: d.resolve
      });
      jQuery.ajax(jqXHRSettings);
   }).fail(function(jqXHR, textStatus, errorThrown) {
   var response = jqXHR.getResponseHeader('status');
   var responseHtml = jqXHR.responseText;
   var contentType = jqXHR.getResponseHeader("content-type");
   switch (response)
     {
       case '403 Forbidden':
         var jsonResponse = JSON.parse(jqXHR.responseText);
         var errorType = jsonResponse.errorType;
         switch (errorType)
         {
           case 'ADMIN_BLOCK_WARNING':
           break;
           case 'AUTH_ERROR':
           break;
           case 'SECURITY_TOKEN':
           break;

           default:
             alert('An Internal Error of type '+errorType+' was received while processing an ajax call. The action you requested could not be completed.');
         }
       break;
       default:
        if (jqXHR.status === 200) {
            if (contentType.toLowerCase().indexOf("text/html") >= 0) {
                document.open();
                document.write(responseHtml);
                document.close();
            }
         }
     }
   });

  var promise = deferred.promise();
  return promise;
};
zcJS.timer = function (options) {
  var defaults = {
    interval: 10000,
    startEvent: null,
    intervalEvent: null,
    stopEvent: null

},
  settings = jQuery.extend(true, {}, defaults, options);

  var enabled = new Boolean(false);
  var timerId = 0;
  var mySelf;
  this.Start = function()
  {
      this.enabled = new Boolean(true);

      mySelf = this;
      mySelf.settings = settings;
      if (mySelf.enabled)
      {
          mySelf.timerId = setInterval(
          function()
          {
              if (mySelf.settings.intervalEvent)
              {
                mySelf.settings.intervalEvent(mySelf);
              }
          }, mySelf.settings.interval);
          if (mySelf.settings.startEvent)
          {
            mySelf.settings.startEvent(mySelf);
          }
      }
  };
  this.Stop = function()
  {
    mySelf.enabled = new Boolean(false);
    clearInterval(mySelf.timerId);
    if (mySelf.settings.stopEvent)
    {
      mySelf.settings.stopEvent(mySelf);
    }
  };
};

</script>

Giovanni,
Zen Cart V2.1