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,550

Results 5,481 to 5,500 of 7,094
24 Jul 2010, 12:24 AM
#5481
blackhalo avatar

blackhalo

Zen Follower

Join Date:
Feb 2008
Posts:
118
Plugin Contributions:
0

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

DivaVocals:

you'll need to run the install.. I suggest clearing the cache first (also in the IH2 admin)

Thanks for the reply... but, seriously... wouldn't that just erase everything?

I've learned from experience that IH2 has a poor memory... so it's got me freaked out...
one wrong move, and it forgets everything except the first photo!

My store would be offline until I manually set 4 images on 400+ products...
here's a photo of how my IH2 is setup (that first photo makes things even more complicated):

http://img293.imageshack.us/img293/4039/ih2.gif

I have thousands of people visiting the site each day...
my rent is paid, and my children are fed because of this business...
I can't just press a button and hope it'll work.

So are you sure I should delete the cache and re-install?

The mod obviously has NOT uninstalled itself (because that would be impossible)...
so I was thinking there must be a way to manually tweak this back to life in the database...
something just got knocked loose when I changed the category names.

I just don't know where to begin looking...

24 Jul 2010, 12:45 AM
#5482
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

clearing the cache won't erase anything except the cache.. since IH2 is in an uninstalled state you'll have to re-install it.. and you should clear the cache before you do it so it can re-create your cache.. and you should backup your site before doing this..> blackhalo:

Thanks for the reply... but, seriously... wouldn't that just erase everything?

I've learned from experience that IH2 has a poor memory... so it's got me freaked out...
one wrong move, and it forgets everything except the first photo!

My store would be offline until I manually set 4 images on 400+ products...
here's a photo of how my IH2 is setup (that first photo makes things even more complicated):

http://img293.imageshack.us/img293/4039/ih2.gif

I have thousands of people visiting the site each day...
my rent is paid, and my children are fed because of this business...
I can't just press a button and hope it'll work.

So are you sure I should delete the cache and re-install?

The mod obviously has NOT uninstalled itself (because that would be impossible)...
so I was thinking there must be a way to manually tweak this back to life in the database...
something just got knocked loose when I changed the category names.

I just don't know where to begin looking...
Posted via Mobile Device

24 Jul 2010, 1:30 AM
#5483
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

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

Hi there,

I'm wondering if there is a fix to make Image Handler 2 work with private area. I tried copying the files from admin into the private area folder, but there is one file that wants to write over one in private area, and I'm worried that either one will not work after this. The file is: includes/modules/category_product_listing.php

Has anyone else asked this before - I did a search and didn't find anything, so anyone who can help would be greatly appreciated :D

Thanks,
Joanne

24 Jul 2010, 1:49 AM
#5484
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

joannem:

Hi there,

I'm wondering if there is a fix to make Image Handler 2 work with private area. I tried copying the files from admin into the private area folder, but there is one file that wants to write over one in private area, and I'm worried that either one will not work after this. The file is: includes/modules/category_product_listing.php

Has anyone else asked this before - I did a search and didn't find anything, so anyone who can help would be greatly appreciated :D

Thanks,
JoanneNot sure what you mean by private area, but you should use a file comparison tool like Beyond Compare or Winmerge to merge any differences between the category_product_listing.php files.

24 Jul 2010, 3:00 AM
#5485
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

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

OK, never used that software before, but I will try - private area is a mod that scrapbooking stores use to isolate the designers areas, so only they can see and interact with their own part of the store. :D

Thanks!

24 Jul 2010, 3:25 AM
#5486
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

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

OK, I would have NO clue how to merge the two files together :S

Anyone else have an idea?? lol

Thanks,
Joanne

24 Jul 2010, 5:57 AM
#5487
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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

I have a problem trying to upload a new image: I get this error:

Unable to determine the page link!

Function used:

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

It's obvious what it refers to, but isn't the image supposed to come from my hard drive folder?

24 Jul 2010, 6:06 AM
#5488
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

I did some additional checking of a few more client sites, and found that there were at least 2 sites where the permissions for the sub-folders are not being inherited from the parent as they should..

After speaking to their hosting companies I concluded that this is definitely NOT something the host is doing intentionally but rather something Image Handler is doing.. It appears that the IH2 code does this based on certain host settings. (in this case both of these sites are being hosted by Go Daddy reseller companies. The sites that do not have this issue are not Go Daddy hosting. (all various hosts)

So after doing some digging through the IH2 code I found a hint to the source of the issue. buried in the code is this reference to Tim's website: http://wiki.breakmyzencart.com/zen-cart:safemodehack

Now I gather that this was included to account for some server configurations where you had to set folder permissions to 777 to get Image Handler to work. (Which is how in the early days of Zen and IH2 it had to be done on many hosts)

Basically it looks as if one line in the includes/functions/extra_functions/functions_bmz_io.php sets folder permissions for sites hosted on some hosts to 777.

      return @mkdir($target, 0777); // crawl back up & create dir tree

this code on line 118 of the includes/functions/extra_functions/functions_bmz_io.php file is mucking up the sub-folder permissions for some (not all) webhosts.

Now I don't know exactly why on some hosts the permissions are inheirited correctly and on some hosts they are not.. I do know that if I change the 777 to 755, then the permissions for the sub folders created within the IH2 bmz_cache folder will be set to 755..

I am not entirely sure if this is THE fix, but it certainly is a solution. I would love it if ckosloff and clyde could weigh in to confirm all of this is in fact the correct solution, and perhaps shed some light on why it might work for some hosts but not others..

clydejones:

I just checked my bmz_cache folder (set to 755)
All the folders (0 - f) within that folder are also set to 755 and the files within these folders are set to 644.

ckosloff:

I am so scared of aliens.
I have never seen one, so they never did anything to me either.
But I have heard stories of alien abductions, mostly in the X files.
Since I don't know about aliens, and just to be in the safe side, I am scared, and recommend to other people to stay away from them.
Sounds pretty much like these new security concerns:
images in the bmz-cache are encrypted, so it does not matter to what security level they are set.
If you use some free security tools like the Hacker toolbar, a free add-on for Firefox, or even the Linux CD from backtrack-linux.org, you will see what I mean.
Try to find an entry point there.
755 works for most Linux servers, I don't know if for all.
Just to feed the paranoia you can set to 755 recursively your bmz_cache, IH2 does NOT set permissions for folders.
Regarding the coders, yes they are dead people, and bad too, addicted to forks.
However, the last incarnation for IH2 has been written and tested for Zen Cart simply because...there is no IH2 plugin yet for that other bad thing they indulge in.
But stay tuned and you might soon find one.

24 Jul 2010, 6:35 AM
#5489
nwms8 avatar

nwms8

New Zenner

Join Date:
Jul 2010
Location:
Sacramento, California
Posts:
17
Plugin Contributions:
0

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

Hello, I would like to say thank you very much for this addon! The auto resize + watermark feature has saved me a ton of time doing batch re-size and uploads with photoshop. I'm here today though because I have run into two problems with Image Handler and I can't seem to find the fix for it.

#1 - In the admin, when I try to uninstall image handler it takes me to a log in and log out screen. I log in, and try to uninstall and it loops me back to the admin login.

#2 - Image Handler is not displaying additional images. The main image is displaying and working as it should, but Additional images auto named by Image Handler still do not display properly.

Mainly, I would prefer a solution to #2 :P
I am having some problems adding additional images to my products. Here is how I have named my products image folder and images inside of it:

images/category1
 a001.JPG         <- Image for product 1 in subcategory A
 a001_01.JPG     <- Additional image for product 1
 a001_02.JPG     <- Additional image for product 1

 a002.JPG         <- Image for product 2 in subcategory A
 a002_01.JPG     <- Additional image for product 2

 b001.JPG         <- Image for product 1 in subcategory B
 b001_01.JPG     <- Additional image for product 1

I have looked at the additional images guide:
https://www.zen-cart.com/tutorials/index.php?article=58

However, I with the addon Image Handler 2 for v1.3.x, I do not make use the following folders:

images/medium
images/large

I have tried adding the medium and large folder manually and adding additional images there, but that did not make a difference. I have looked at both my:

Admin>Configuration>Images
Admin>Product Types>Product General>Edit Layout

pages to ensure that Additional Images are enabled.

I am using ZenCart v1.3.9d
addons: Image Handler 2 for v1.3.x

I have used the Image Handler Manager to add additional images to an item with no success. I have also manually FTP added the files to my images folder with no success. So I'm a little stumped!

Would love some help on getting additional images in there :)

24 Jul 2010, 6:35 AM
#5490
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

And I'm on a roll..

I have confirmed that the current fileset for IH2 does indeed have an issue with watermarking ADDITIONAL large images.. I have found the possible solution and have tested and confirmed that my fix resolves the issue.. I am going to enlist the assistance of another Zenner to test this..

dutchy, if you want to test the fix on your site, please PM me and we can exchange contact info..

24 Jul 2010, 6:40 AM
#5491
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Off the top of my head it sounds like you have possibly 1 or 2 things (and perhaps both) going on..

  1. It does not sound like IH2 is installed correctly
  2. Your IH2 settings are incorrect..

Image Handler takes care of creating your medium and small product images if you upload your large image. It also manages the proper naming convention Zen Cart requires to create additional product images.. In other words it does automatically what this tutorial shows you how to do manually: https://www.zen-cart.com/tutorials/index.php?article=58

In order for it to do it's job it must be installed properly and it must be configured correctly.. Please review the readme file and make sure you follow the suggestions and instructions for setting your images settings.. See if that doesn't get you a different result..

nwms8:

Hello, I would like to say thank you very much for this addon! The auto resize + watermark feature has saved me a ton of time doing batch re-size and uploads with photoshop. I'm here today though because I have run into two problems with Image Handler and I can't seem to find the fix for it.

#1 - In the admin, when I try to uninstall image handler it takes me to a log in and log out screen. I log in, and try to uninstall and it loops me back to the admin login.

#2 - Image Handler is not displaying additional images. The main image is displaying and working as it should, but Additional images auto named by Image Handler still do not display properly.

Mainly, I would prefer a solution to #2 :P
I am having some problems adding additional images to my products. Here is how I have named my products image folder and images inside of it:

images/category1
a001.JPG <- Image for product 1 in subcategory A
a001_01.JPG <- Additional image for product 1
a001_02.JPG <- Additional image for product 1

a002.JPG <- Image for product 2 in subcategory A
a002_01.JPG <- Additional image for product 2

b001.JPG <- Image for product 1 in subcategory B
b001_01.JPG <- Additional image for product 1

> <https://www.zen-cart.com/tutorials/index.php?article=58>
> 
> However, I with the addon Image Handler 2 for v1.3.x, I do not make use the following folders:
> 
> images/medium 
> images/large
> 
> I have tried adding the medium and large folder manually and adding additional images there, but that did not make a difference. I have looked at both my:
> 
> Admin>Configuration>Images  
> Admin>Product Types>Product General>Edit Layout
> 
> pages to ensure that Additional Images are enabled. 
> 
> I am using ZenCart v1.3.9d
> addons: Image Handler 2 for v1.3.x
> 
> 
> I have used the Image Handler Manager to add additional images to an item with no success. I have also manually FTP added the files to my images folder with no success. So I'm a little stumped!
> 
> Would love some help on getting additional images in there :)
24 Jul 2010, 7:15 AM
#5492
nwms8 avatar

nwms8

New Zenner

Join Date:
Jul 2010
Location:
Sacramento, California
Posts:
17
Plugin Contributions:
0

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

Since I could not use the delete feature in Admin because I kept getting sent to a login, I went and downloaded IH v2 again and basically deleted every file I found in the download from my website. I then renamed the appropriate folders, and uploaded IH to my root directory.

That didn't seem to fix the problem.

I still can't 'uninstall' from the admin, and I still can't see additional images. :(

Going to try a brand new install (I've made backups already heh) and see if it works out of box.

24 Jul 2010, 7:38 AM
#5493
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

That was gonna be my suggestion.. :D Do you wanna try the version I have with the fixes I posted tonight?? If so, PM me and I'll get you that fileset..

nwms8:

Since I could not use the delete feature in Admin because I kept getting sent to a login, I went and downloaded IH v2 again and basically deleted every file I found in the download from my website. I then renamed the appropriate folders, and uploaded IH to my root directory.

That didn't seem to fix the problem.

I still can't 'uninstall' from the admin, and I still can't see additional images. :(

Going to try a brand new install (I've made backups already heh) and see if it works out of box.

24 Jul 2010, 7:46 AM
#5494
nwms8 avatar

nwms8

New Zenner

Join Date:
Jul 2010
Location:
Sacramento, California
Posts:
17
Plugin Contributions:
0

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

DivaVocals:

That was gonna be my suggestion.. :D Do you wanna try the version I have with the fixes I posted tonight?? If so, PM me and I'll get you that fileset..

New install, it works :D

Now I do see what people mean a few posts back about additional images not having the watermark, but I'm glad that I got additional images working in the first place!

I'd love to try your version! Thank you for the offer!

I sent you a PM.

24 Jul 2010, 8:26 AM
#5495
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Cool.. I figured it was an install issue.. I sent you a PM.. Try the new fileset, and let me know if it fixes the watermarks on the large additional images..

nwms8:

New install, it works :D

Now I do see what people mean a few posts back about additional images not having the watermark, but I'm glad that I got additional images working in the first place!

I'd love to try your version! Thank you for the offer!

I sent you a PM.

24 Jul 2010, 10:18 AM
#5496
nwms8 avatar

nwms8

New Zenner

Join Date:
Jul 2010
Location:
Sacramento, California
Posts:
17
Plugin Contributions:
0

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

Hm, I'm having the same problems again with additional images not showing up. This is on a new install, default template.

I'll try again tomorrow, too late tonight to try any more.

*Removing image handler from database in IH admin got additional images to appear on the webpage.

24 Jul 2010, 11:16 AM
#5497
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

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

well im far to hung over to be doing this.. but I will any way

well well well.. LOOKS like i was RIGHT once again Divalvocal....

IH2 is creating 777 folders... I seen some of the posts from other about this 777 issue in my email updates that i have been having to pester your arrogant clan about.

I can confirm that i have 4 servers with 4 different company, these are
webfusion
unitedhosting
Don Host
UKfast

on ALL clean zencart installations with only Image handler 2 installed
BMZcache is set to 775, but all folder/files within are 777/666

Further more I have contacted support for all four companies about the security concerns over 777 folders. So far only Ukfast has replied.

Ukfast state that any directory which is set to 777 is a cause for a security weakness.

Would you like me to post the support email? they have highlighted how an attack could take place on a server using IH2 with folder set to 777. (actually any folder set to 777, which IH2 is 'randomly doing')

Despite your playing down this 'imagined' IH2 security weakness i have information from 3rdline support from one of the UK largest hosting providers tell me it does cause a vulnerability and the types of attack that can be done :P

Even tho I cause you much nuisance, you cant say I haven't helped you and the rest of the IH2 team to see problems of IH2.. at the very lest point out the MISTAKES in the doc. You can thank me with flowers.

Im going back to bed now, I look forward to the dismissive and wrong replies.

24 Jul 2010, 11:44 AM
#5498
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

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

Thank you for the offer DivaVocals but I will politely decline. I have decided to manage my images the old fashioned manual way. It feels to me that image handler has too much controversy about it at the moment. I have asked my hosting provide to give me advice on this thread and they confirmed their concerns over security and advised me to not use any system, add on, module etc that uses chmod 777 for directories.

I would rather be safe than sorry.
All the best
Michael

24 Jul 2010, 12:41 PM
#5499
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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

I really want to believe in this mod, and I have set it up yet again - and it worked (without actually using the image manager) - but what use is it if I now get errors trying to upload a simple image? Let alone the security issues you guys now bring up...

I think a lot of effort has gone into the project, but it shouldn't just be dumped and left half-broken.

24 Jul 2010, 1:46 PM
#5500
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

dumped and broken is a LOT of an exxageration.. Posted my findings, and have already gotten confirmation from 1 person that the fixes I made for the two issues (bmz_cache folder permissions and watermarking additional large images) works.

tpeck, the error you reported sounds like an incomplete/incorrect install.. I have installed IH2with the posted changes on a FRESH VANILLA Zen Cart install with the new fileset. You can see it in action here:
http:// zen138 . overthehillweb . com/index.php?main_page=product_info&cPath=1&products_id=1

tpeck:

I really want to believe in this mod, and I have set it up yet again - and it worked (without actually using the image manager) - but what use is it if I now get errors trying to upload a simple image? Let alone the security issues you guys now bring up...

I think a lot of effort has gone into the project, but it shouldn't just be dumped and left half-broken.

That's up to you.. The fix I posted solves the folder permissions issue.. (which BTW I have confirmed based on the sites I've examined only affects SOME webhosts -- your included) As for the so-called controversy, I think that's a bit of an exaggeration.. We'll have to agree to disagree on that point..

dutchy:

Thank you for the offer DivaVocals but I will politely decline. I have decided to manage my images the old fashioned manual way. It feels to me that image handler has too much controversy about it at the moment. I have asked my hosting provide to give me advice on this thread and they confirmed their concerns over security and advised me to not use any system, add on, module etc that uses chmod 777 for directories.

I would rather be safe than sorry.
All the best
Michael