Re: Problem with IH preview
Quote:
Originally Posted by
taf
As anyone else seen this problem?
In the admin pages in Tools->Image handle 2->preview
The images are not showing up. I've looked at the code and found that in
image_handler.php it seems to be adding the extra zencart directory in here
one of the lines of code looks like this:
<td><img style="border: 1px solid #000000; background:url(images/checkpattern.gif)" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $images['pngsource']?>" /></td>
if I remove the DIR_WS_CATALOG and replace it with '//' it sees the image but I'm not sure that this is the correct solution.
If anyone as seen this or knows how to fix it please let me know.
Thanks
I believe the preview is to give you a visual reference for the quality of images IH outputs using GD or ImageMagick.
Check your Zen Cart Configuration files and make sure DIR_WS_CATALOG is defined with a trailing slash.
Re: Image Handler 2 Support
I do not see any images in the preview either, all i see 9 blocks with different sizes for gif, jpg and png, there is not hotspot to click on. (I thought this what i suppose to see! isn't it?
Re: Image Handler 2 Support
Did you check your zen cart configuration files?
Re: Image Handler 2 Support
Now that you mention it, I noticed that I am showing the same thing.
I never paid attention to it because it wasn't affecting functionality.
Yes, I did check configuration files and DIR_WS_CATALOG is defined with a trailing slash like so:
define('DIR_WS_CATALOG', '/haiswigs/');
Re: Image Handler 2 Support
Quote:
Originally Posted by
ckosloff
Now that you mention it, I noticed that I am showing the same thing.
I never paid attention to it because it wasn't affecting functionality.
Yes, I did check configuration files and DIR_WS_CATALOG is defined with a trailing slash like so:
define('DIR_WS_CATALOG', '/haiswigs/');
You too are getting the double definition?
Re: Problem with IH preview
Quote:
Originally Posted by
testuser
You too are getting the double definition?
Hi all,
Thanks for the replies it's good to know others might have seen this as well.
To get and idea of what the preview should look like look here:
http://breakmyzencart.com/image-handler
there's a small image in the left that should give you and idea of what it looks like when it's working.
for me it's not a problem with the number of slashes it's the fact that an extra dir is inserted into the path. So the path to the image is:
/zencart/zencart/admin/images/ih-test.png
whereas it should be something like:
/zencart/admin/images/ih-test.png
so if i remove DIR_WS_CATALOG form the php code it seems to get the correct path.(Since it is defined as /zencart/ i have to replace is with a single / hence '//' (two slashes because you have to escape it first, otherwise php throws an error).
It doesn't really stop me using IH2 but it would be nice if the preview worked as it would help with tweaking compression, sizing etc.. At least this is what it think it is supposed to be used for if it works.
I found the path to the broken images by right clicking on them and clicking on view image (in firefox).
it could be that the string that is returned by $images['pngsource'] is not being formed correctly? i.e. in my case it's adding an extra zencart directory.
Re: Problem with IH preview
Quote:
Originally Posted by
JansenD
Hello I've installed image handler but obviously something is wrong
When I hover over the pictures just the alternative text shows up and the hover could be anywhere on the page but on one of the pictures the large image shows up:cry:
I've tried every combination I could and nothing seems to solve it, I've tried FFox and IE and read through all 94 pages:sleepy: :sleepy: but can't find a solution.
Also another problem is this is appearing on my preview page
http://www.zen-cart.com/forum/attach...3&d=1168528812
Do I have to do a complete install of IM2 or is there an easier solution.
Thanks in advance, I've spent alot of time trying to find a solution but I can't:schmoll:
www.quirkesfurniture.com/shop
Looks like I'm not the only person seeing this problem checkout the attachment above this is exactly what i am seeing.
Re: Problem with IH preview
Quote:
Originally Posted by
Ivan02
hi,
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
Code:
$ihConf['dir']['admin'] = end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/";
The code extracts only the last path and should work on all shops.
ciao
Looking some more this might be a solution haven't tried it yet....
Re: Problem with IH preview
Quote:
Originally Posted by
taf
Looking some more this might be a solution haven't tried it yet....
Well it help some.. jpgs and gifs are showing now but still can't see the pngs.
Re: Problem with IH preview
Quote:
Originally Posted by
taf
Well it help some.. jpgs and gifs are showing now but still can't see the pngs.
Version of GD Library?