Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Image Handler "Double Directory Image problems"

    I just installed Image handler 2 and it is looking for the sample images in a double directory.
    The directory that my zencart is installed is called gomag...
    In Admin/Tools/ImageHandler2/Preview : The Following occurs below:
    I saw all the red x's for the sample .png's and .jpg.
    I right clicked and went to properties and it says gomag/gomag/admin/images/ih-test.png
    What could have gone wrong with the install?

    Ivan 02, quoted below a fix:
    i had the same problem.
    It seems to be a minor issue since it only affects the admin-preview on a shop below the root directory.

    You can solve by editing the file .../admin/includes/functions/extra_functions/functions_bmz_image_handler.php

    Just replace:

    Code:
    $ihConf['dir']['admin'] = preg_replace('/^\/(.*)/', '$1', (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN));
    with

    Replacement Code:
    $ihConf['dir']['admin'] = end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/";

    Did not work at all.

    Mark

  2. #2
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    633
    Plugin Contributions
    2

    Default Re: Image Handler "Double Directory Image problems"

    Have you seen this post? I'm referencing some quickfixes, MM pointed out at the breakmyzencart forum.

    Cheers,
    Tim

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Image Handler "Double Directory Image problems"

    Tim,
    Thank you for the quick response and your vital time.

    Made the correct file changes.
    Great Java Script fixed in IE
    Now I can preview only 2 of the 3 file formats in Admin/Image Handler 2/Preview
    They are: jpg & gif

    The png is the only problem
    Admin/Image Handler 2/Preview, the png file path states, gomag3/bmz_cache/0/0d48eeaafa3a8bb8184ebc2da587828a.image.100x56.png Looks correct but no images appear, still the red X box appears.

    Any suggestions?
    Mark

  4. #4
    Join Date
    Apr 2009
    Posts
    155
    Plugin Contributions
    1

    Default Re: Image Handler "Double Directory Image problems"

    The png is the only problem
    Admin/Image Handler 2/Preview, the png file path states, gomag3/bmz_cache/0/0d48eeaafa3a8bb8184ebc2da587828a.image.100x56.png Looks correct but no images appear, still the red X box appears.[/COLOR]
    Any suggestions?
    Mark
    I'm having the same exact problem as haredo after changing hosts. .PNGs worked fine before, not now. Now I can see the .PNG preview in Admin » Catalog, just not in the store or IH2, while .jpg and .gifs display perfectly.

    Asked the new host about it, of course they're clueless. And this is the only relevant post I can find. Anyone mind to clue a girl in?

    Thanks a bunch!!

 

 

Similar Threads

  1. Adding a "New" image to the product listing (similar to "Sold Out" image)
    By javaman in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Feb 2010, 11:44 PM
  2. Image Handler 2: How to "convert" to IH photo management?
    By pixelwrangler in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 May 2009, 07:38 PM
  3. Remove "Change Quantity" image (double blue arrows)
    By RiemenDesign in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jan 2009, 09:01 PM
  4. Replies: 2
    Last Post: 22 Nov 2008, 09:55 PM
  5. Can I add a "New!"-Watermark with Image Handler 2?
    By jamesbeat in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2007, 06:33 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