Page 72 of 72 FirstFirst ... 2262707172
Results 711 to 719 of 719
  1. #711
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    720
    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
    Test Site www.dev.outdoorking.com

  2. #712
    Join Date
    Jan 2005
    Posts
    34
    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
    705
    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,476
    Plugin Contributions
    94

    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
    705
    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
    705
    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,476
    Plugin Contributions
    94

    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,476
    Plugin Contributions
    94

    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
    705
    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 :-)

 

 
Page 72 of 72 FirstFirst ... 2262707172

Similar Threads

  1. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 167
    Last Post: 25 Jun 2025, 11:50 PM
  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
Zen-Cart, Internet Selling Services, Klamath Falls, OR