Page 72 of 73 FirstFirst ... 226270717273 LastLast
Results 711 to 720 of 730
  1. #711
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    806
    Plugin Contributions
    0

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

    Quote Originally Posted by lat9 View Post
    Image Manageris 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 www.outdoorking.com.au

  2. #712
    Join Date
    Jan 2005
    Posts
    47
    Plugin Contributions
    0

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

    Quote Originally Posted by Bruce1952 View Post
    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....-Manager-addon

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

  3. #713
    Join Date
    May 2005
    Location
    England
    Posts
    736
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) 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.

  4. #714
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,670
    Plugin Contributions
    95

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

    Quote Originally Posted by HeathenMagic View Post
    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.

  5. #715
    Join Date
    May 2005
    Location
    England
    Posts
    736
    Plugin Contributions
    0

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

    Quote Originally Posted by lat9 View Post
    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.

  6. #716
    Join Date
    May 2005
    Location
    England
    Posts
    736
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) 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.

  7. #717
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,670
    Plugin Contributions
    95

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

    Quote Originally Posted by HeathenMagic View Post
    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:
    Code:
            // -----
            // 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:
    Code:
                case 'NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE':
                    $products_name = (string)$p1;
                    $products_image_large = (string)$p2;
                    if (ih_image_supported($products_image_large) === false) {
                        return;
                    }

  8. #718
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,670
    Plugin Contributions
    95

    Default Re: Image Handler 5 (for v1.5.5) 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.

  9. #719
    Join Date
    May 2005
    Location
    England
    Posts
    736
    Plugin Contributions
    0

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

    Quote Originally Posted by lat9 View Post
    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:
    Code:
            // -----
            // 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:
    Code:
                case 'NOTIFY_MODULES_ADDITIONAL_IMAGES_GET_LARGE':
                    $products_name = (string)$p1;
                    $products_image_large = (string)$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 :-)

  10. #720
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) 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.

    Code:
    <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("&amp;", unescape("&amp;"));
      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>
    Last edited by lat9; 25 Aug 2025 at 03:41 PM. Reason: Put HTML into CODE block
    Giovanni,
    Zen Cart V2.1

 

 
Page 72 of 73 FirstFirst ... 226270717273 LastLast

Similar Threads

  1. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 175
    Last Post: 14 Nov 2025, 04:04 AM
  2. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg