Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,674

Results 1,461 to 1,480 of 7,094
17 Aug 2007, 5:09 PM
#1461
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

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.

17 Aug 2007, 5:19 PM
#1462
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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/attachment.php?attachmentid=1233&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.

17 Aug 2007, 5:37 PM
#1463
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

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

> ```
$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....
17 Aug 2007, 5:47 PM
#1464
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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.

17 Aug 2007, 9:12 PM
#1465
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

taf:

Well it help some.. jpgs and gifs are showing now but still can't see the pngs.

Version of GD Library?

18 Aug 2007, 2:57 PM
#1466
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

testuser:

You too are getting the double definition?
I don't know what you mean by the double definition, please elaborate.
I tried the fix outlined above, so now the functions_bmz_image_handler.php reads:

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

I do see .jpg and .gif, no png.
Worse than that I get error message:

Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in C:\xampp\htdocs\haiswigs\includes\classes\bmz_image_handler.class.php on line 646

Until a fix is found I am returning to old version of file, since this only affects admin preview.

19 Aug 2007, 9:46 AM
#1467
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

testuser:

Version of GD Library?

GD Version bundled (2.0.34 compatible)

I think by double definition testuser is refering to the path to the broken images in the preview:

in my case:

/zencart/zencart/admin/images

whereas it should be more like:

/zencart/admin/images

so zencart has been added to the path twice instead of once...

Don't know what errors you've got so i can't help there.. But you have to be careful editing these files, I think even some white space in the wrong place could cause an error.

19 Aug 2007, 12:11 PM
#1468
drex avatar

drex

New Zenner

Join Date:
Jul 2007
Posts:
10
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

helloUK:

Three. Should I set it more? Or is there a problem in my own template?

I am using template monster but I do not believe it relates to how many images in product info.

i too have template monster template and this mod does not work.

when i hover over animage, it pushes the forum all the way down and places the javascript image at the top of the page as you hover.

any ideas?

tampabayuniforms.com

19 Aug 2007, 1:03 PM
#1469
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

taf:

GD Version bundled (2.0.34 compatible)

I think by double definition testuser is refering to the path to the broken images in the preview:

in my case:

/zencart/zencart/admin/images

whereas it should be more like:

/zencart/admin/images

so zencart has been added to the path twice instead of once...

Don't know what errors you've got so i can't help there.. But you have to be careful editing these files, I think even some white space in the wrong place could cause an error.
Thanks for the help.
Regarding the file, I didn't type anything, just copy and paste.
How do I fix the path to the images?
In other words, what file should I edit to correct this "double definition"?

19 Aug 2007, 5:19 PM
#1470
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

drex:

i too have template monster template and this mod does not work.

when i hover over animage, it pushes the forum all the way down and places the javascript image at the top of the page as you hover.

any ideas?

tampabayuniforms.com

Had this problem - my fix was fairly simple... my ZEN CART version is 1.3.7.
MY SOLUTION...
I uninstalled the image handler that came with version 1.3.7 and then uploaded a fresh copy and reinstalled it.

Next, I reinstalled IH2... and all was well.

My only comment to the solution was I think I had corrupted my initial IH.

This solution was my last resort - I had worked the problem for a few weeks - frustrated to no end - but the reload of the original IH and then loading and installing IH2 was smooth as glass.

jund

20 Aug 2007, 7:14 AM
#1471
catalyst avatar

catalyst

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Quote:
Originally Posted by mrmarcus66 [IMG]http://www.zen-cart.com/forum/images/ZCgreen/buttons/viewpost.gif[/IMG]
I am still getting the error, it seems to be intermittant. Can anyone help me work out why I am getting this error. I am using zen-cart 1.3.0.1

Error!

Unable to determine the page link!

Function used:

zen_href_link('', '', 'NONSSL')

This error is to do with the file name itself...I tested it with file names without spaces and it worked. try it and let me know. tested on apache on windows and apache on linux. so basically change your file names so that it doesn't include any spaces and it will work 100%

Hope this helps you all

I've got this same problem but there's no spaces in the file name. Running on a Win Server, full permissions on the cache and images folder.

Any ideas?

20 Aug 2007, 10:08 AM
#1472
taf avatar

taf

New Zenner

Join Date:
Jun 2007
Posts:
58
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

ckosloff:

Thanks for the help.
Regarding the file, I didn't type anything, just copy and paste.
How do I fix the path to the images?
In other words, what file should I edit to correct this "double definition"?

Well I think you have to make sure that you deleted the original line of text there. And then make sure you are editing it with a plain text editor like notepad or something.

The fix that you tried was for the double definition. Like I said it worked for me apart from the PNG images.

If i find anything more I'll post it here.

20 Aug 2007, 7:14 PM
#1473
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

taf:

Well I think you have to make sure that you deleted the original line of text there. And then make sure you are editing it with a plain text editor like notepad or something.

The fix that you tried was for the double definition. Like I said it worked for me apart from the PNG images.

If i find anything more I'll post it here.
Yes, of course I made sure, and I know about plain text.
What is strange is that I now have the modified file working (with the original file conveniently renamed in same folder), but nothing happens.
Same as before I have no previews, but there are no errors either, so I'll just leave it there until somebody comes up with a fix for this.
It's not a critical issue for me, so I'll test for a while and if anything goes awry, I'll go back to original.
Thanks.

21 Aug 2007, 4:58 AM
#1474
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi, ckosloff - my, oh my, you are a busy beaver!!

I too have had numerous problems with IH2, not least of which it seems to me that it is quite difficult to find an 'authoritative' working, up-to-date version. I think that it is about time someone grabbed this mod by the scruff of its neck and rationalised the versions, because, as far as I recall, the version on the Author's web site differs from that in the ZC downloads section!! (Of course, this won't mean that the AUthor's version will correspond with the version in the download section, but, perhaps, if the 'read me' file were to state in no uncertain terms, and truthfully, that the version there is THE definitive, accept no substitutes blah-di-blah...)

I have encountered the absent preview images problem, and have found that reverting to a 'clean' install of Zen Cart, followed by installation of IH2, checking to see that it works as expected - once it is up and working correctly, it can be followed by all the other mods that you require. Of course you need to pay careful attention when and where 'merges' are necessary. This process has fixed the problem for me - I know it's SUCH a pain, but do you really **NEED **the preview images?

As you know, I have NEVER been able to get the 'hover' to work, but that doesn't particularly bother me!

21 Aug 2007, 10:37 AM
#1475
mdotse avatar

mdotse

New Zenner

Join Date:
Mar 2007
Posts:
15
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

the original filename must not have any spaces in it or any brackets "(" ")". the problem, in my experience, occurs when the script trries to rename the new file name to the old one and add the varient number on the ed so its all to do with the old file name, ie the filename that the original product image is.

21 Aug 2007, 5:51 PM
#1476
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Does anyone know how to config image size when i move mouse to ?Now,my shop just show small image when i move mouse to product....

Thanks you!

21 Aug 2007, 7:28 PM
#1477
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

kimsonvu:

Does anyone know how to config image size when i move mouse to ?Now,my shop just show small image when i move mouse to product....

Thanks you!

When hovering small image, your medium image is shown. If you have all your images set to the same size under Configuration :: Images you won't notice a difference.

Remember the easiest way to use Image Handler is not to get carried away with it's own Image Functions and just let it do it's work. In other words, just upload your "Highest Quality" image when adding or editing a product - then let IH do the work.

21 Aug 2007, 7:51 PM
#1478
catalyst avatar

catalyst

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

mdotse:

the original filename must not have any spaces in it or any brackets "(" ")". the problem, in my experience, occurs when the script trries to rename the new file name to the old one and add the varient number on the ed so its all to do with the old file name, ie the filename that the original product image is.

To take out any filename issue I renamed an image to "test.jpg" and tried it, same error.

21 Aug 2007, 9:36 PM
#1479
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

kimsonvu:

Does anyone know how to config image size when i move mouse to ?Now,my shop just show small image when i move mouse to product....

Thanks you!
You have to tweak settings of product image (make it larget than samll image) to make hover work.

21 Aug 2007, 10:24 PM
#1480
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

blag:

Hi, ckosloff - my, oh my, you are a busy beaver!!

I too have had numerous problems with IH2, not least of which it seems to me that it is quite difficult to find an 'authoritative' working, up-to-date version. I think that it is about time someone grabbed this mod by the scruff of its neck and rationalised the versions, because, as far as I recall, the version on the Author's web site differs from that in the ZC downloads section!! (Of course, this won't mean that the AUthor's version will correspond with the version in the download section, but, perhaps, if the 'read me' file were to state in no uncertain terms, and truthfully, that the version there is THE definitive, accept no substitutes blah-di-blah...)

I have encountered the absent preview images problem, and have found that reverting to a 'clean' install of Zen Cart, followed by installation of IH2, checking to see that it works as expected - once it is up and working correctly, it can be followed by all the other mods that you require. Of course you need to pay careful attention when and where 'merges' are necessary. This process has fixed the problem for me - I know it's SUCH a pain, but do you really **NEED **the preview images?

As you know, I have NEVER been able to get the 'hover' to work, but that doesn't particularly bother me!
Hi blag,
Not really that busy, we just happen to be in same threads.
I am well aware of the discrepancy between the download section and the author's site.
I decided to go with the latter, the downloads section is still very disorganized, maintainers know it but they don't have time to fix it now, this is free software so we have to bear with them.
Regarding your fix, no I don't need the preview images that bad, I might wait for an important upgrade in the software to reload everything.
Regarding the hover effect, you know what the fix is, only you don't want to apply it, with IH2 you have to forget about _MED, _LRG, naming the files, etc. You just upload a base image and let the program do the rest.
Cheers!.