Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 4 (for v1.5.x) Support Thread

Image Handler 4 (for v1.5.x) Support Thread

Views: 343,312

Results 1,021 to 1,040 of 1,691
5 Mar 2014, 4:30 AM
#1021
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Image Handler 4 (for v1.5.x) Support Thread

Im sure Ive had this problem before but I cant remember the answer...

Ive installed IH4 and its all basically working but the link to enlarge images on my product pages is incorrect (I think).

The link code is:

/images/large/image-name__LRG.jpg

But I think it would work fine if it was

/images/image-name.jpg

When I click the image to enlarge it I just get a blank white overlay.

My large folder is there and has all permissions etc but there are no LRG.jpg files within it. The original files I upload when creating a product are the large, full size zoom pictures that I want to use. Im using a template monster theme and it has a lightbox type of setup zoom function.
The thumbnail on the product page is working fine, its from the bmz_cache folder.

Sorry if Ive missed something, searching this thread for LRG.jpg found nothing so I presume this question hasnt been answered before...

5 Mar 2014, 5:02 AM
#1022
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Also I should add that adding any additional images works fine, uploading image-name_1.jpg shows the extra image on the page and clicking that thumbnail zooms the extra image into the lightbox zoom function.

Also using the firebug plugin and changing the code on the page to the correct image url allows everything to work fine as well.

So simply, where is my site getting this new link code from with the /large/ and the _LRG.jpg additions to the URL?

5 Mar 2014, 7:13 AM
#1023
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

Chargin:

Im sure Ive had this problem before but I cant remember the answer...

Ive installed IH4 and its all basically working but the link to enlarge images on my product pages is incorrect (I think).

The link code is:

/images/large/image-name__LRG.jpg

But I think it would work fine if it was

/images/image-name.jpg

When I click the image to enlarge it I just get a blank white overlay.

My large folder is there and has all permissions etc but there are no LRG.jpg files within it. The original files I upload when creating a product are the large, full size zoom pictures that I want to use. Im using a template monster theme and it has a lightbox type of setup zoom function.
The thumbnail on the product page is working fine, its from the bmz_cache folder.

Sorry if Ive missed something, searching this thread for LRG.jpg found nothing so I presume this question hasnt been answered before...

Chargin:

Also I should add that adding any additional images works fine, uploading image-name_1.jpg shows the extra image on the page and clicking that thumbnail zooms the extra image into the lightbox zoom function.

Also using the firebug plugin and changing the code on the page to the correct image url allows everything to work fine as well.

So simply, where is my site getting this new link code from with the /large/ and the _LRG.jpg additions to the URL?

As stated in the readme (and few times in this support thread) You do NOT upload ANY images to the large or medium folders.. Upload your LARGEST image and IH4 will create the optimized small, medium, and large images..

5 Mar 2014, 7:39 AM
#1024
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi, yes Ive been using IH3 for years and I understand the fundamentals.

But this is different, these products already had their images in place before I installed IH4.

Also I didnt say anywhere in my post that I put images in folders, Im saying the link that zencart is offering as a click to zoom link has /large/ and _LRG.jpg added to it.

DivaVocals:

As stated in the readme (and few times in this support thread) You do NOT upload ANY images to the large or medium folders.. Upload your LARGEST image and IH4 will create the optimized small, medium, and large images..

5 Mar 2014, 7:46 AM
#1025
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Chargin:

Hi, yes Ive been using IH3 for years and I understand the fundamentals.

But this is different, these products already had their images in place before I installed IH4.

Also I didnt say anywhere in my post that I put images in folders, Im saying the link that zencart is offering as a click to zoom link has /large/ and _LRG.jpg added to it.That usually means that their are already images in the large folder for that product.
Delete those images and IH4 will take over and create the large image.
Existing images if found are used instead of IH4 generated images

5 Mar 2014, 7:59 AM
#1026
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Well the large folder is empty apart from the watermark_LRG.jpg image.
Ive tried adding new products using the add product page to upload the image, the images are all going into the /images/ folder as expected, but the click to zoom link is always looking for a LRG jpg in the large folder...

5 Mar 2014, 8:07 AM
#1027
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Chargin:

Well the large folder is empty apart from the watermark_LRG.jpg image.
Ive tried adding new products using the add product page to upload the image, the images are all going into the /images/ folder as expected, but the click to zoom link is always looking for a LRG jpg in the large folder...Ooops I missed the "click to zoom" part
That NOT standard zencart or IH4 functionality.
You would be using another mod for that..
Find out which one and search for details on integrating it with IH4

5 Mar 2014, 8:20 AM
#1028
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

I thought it would be the same sort of setup as the other zoom systems mentioned in the IH4 instructions, ie Zen lightbox etc.

Maybe someone can point me in the right direction, which file in zencart generates the link from the main image on the product page to the full size version of that image?
Perhaps the standard zencart functionality doesnt do that? but 90% of all themes use some form of lightbox.

5 Mar 2014, 8:38 AM
#1029
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

Chargin:

I thought it would be the same sort of setup as the other zoom systems mentioned in the IH4 instructions, ie Zen lightbox etc.

Maybe someone can point me in the right direction, which file in zencart generates the link from the main image on the product page to the full size version of that image?
Perhaps the standard zencart functionality doesnt do that? but 90% of all themes use some form of lightbox.

IH4 works with Zen Lightbox, Zen Colorbox, and Fual Slimbox.. If your theme is using some other lightbox, then you should check in with your theme creator for guidance on how to integrate it with IH4.. They would be better informed to answer this.. and you can START by asking them where in their code they hardcoded the link to the "large" image folder.

5 Mar 2014, 8:49 AM
#1030
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Looking at the .js files it seems its "jQuery lightBox plugin"
Im not sure why it would be looking for a different URL for the image.
Ill ask templatemonster.... they usually arent much help.....

5 Mar 2014, 9:17 AM
#1031
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

Chargin:

Looking at the .js files it seems its "jQuery lightBox plugin"
Im not sure why it would be looking for a different URL for the image.
Ill ask templatemonster.... they usually arent much help.....

No hence why I refer to them as Template Monstrosity..

Suggest unhinging their lightbox and installing one that works with IH4..

7 Mar 2014, 12:01 AM
#1032
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Image Handler 4 (for v1.5.x) Support Thread

I am using zen cart 1.5.1 and have become concerned about the number of hacking attempts that I see in the server error logs.I am making an effort to beef up site security and believe the images folders are vulnerable.
Image Handler4 seems to need permissions of 755 on folders in the bmz_cache and 666 on image files within the cache in order to work properly.If I protect the bmz_cache folder with htaccess is that going to be hack resistant ?

7 Mar 2014, 12:38 AM
#1033
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Well seems it was a very easy fix to the issue I asked about here earlier. Perhaps its more of a hack but its all working now.

I edited this line in main_product_image.php and removed large/

$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;

Then just changed the Product Info - Image Large Suffix to nothing from LRG and it now works fine.

Beats installing a whole new lightbox...

7 Mar 2014, 12:46 AM
#1034
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

there is already an htaccess file in the bmz_cache folder

cefyn:

I am using zen cart 1.5.1 and have become concerned about the number of hacking attempts that I see in the server error logs.I am making an effort to beef up site security and believe the images folders are vulnerable.
Image Handler4 seems to need permissions of 755 on folders in the bmz_cache and 666 on image files within the cache in order to work properly.If I protect the bmz_cache folder with htaccess is that going to be hack resistant ?

11 Mar 2014, 5:49 PM
#1035
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Image Handler 4 (for v1.5.x) Support Thread

DivaVocals:

there is already an htaccess file in the bmz_cache folder
Ha,yes,well,you were a bit ahead of me there then,ahem,obviously.What I am finding hard to believe is that .htaccess can protect a folder from unauthorised users even if the permissions on it and the files and folders in it are 777.I'm testing this,and it seems to be the case.Or am I missing something? And if I am, please tell me what it is.

12 Mar 2014, 9:31 AM
#1036
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Image Handler 4 (for v1.5.x) Support Thread

Sorry,it's an impossible question to answer.Too many ifs and buts .It will prevent browser access by anyone,but is only safe if you're on a dedicated server secured against unauthorised sshd and sftp access.

12 Mar 2014, 2:37 PM
#1037
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

cefyn:

Ha,yes,well,you were a bit ahead of me there then,ahem,obviously.What I am finding hard to believe is that .htaccess can protect a folder from unauthorised users even if the permissions on it and the files and folders in it are 777.I'm testing this,and it seems to be the case.Or am I missing something? And if I am, please tell me what it is.

cefyn:

Sorry,it's an impossible question to answer.Too many ifs and buts .It will prevent browser access by anyone,but is only safe if you're on a dedicated server secured against unauthorised sshd and sftp access.

You REALLY should start a new thread to discuss this.. Your general question is only moderately related to IH4.. You could apply the same question to the default images folder as well.. If you REALLY are concerned about security and .htaccess, start a new thread..

13 Mar 2014, 6:21 PM
#1038
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Image Handler 4 (for v1.5.x) Support Thread

Sorry ,I was a bit freaked by a couple of bruteforce password attacks and didn't ask a coherent question.The main images folder is ok with normal permissions.If I have 644 on files in the bmz_cache I keep getting errors - failed to open bmz cache for writing,permission denied in lines 645 and 655 in bmz_image_handler.class.php.It runs without errors with world write permissions.Is there something I should correct,or is that as it should be?

13 Mar 2014, 6:51 PM
#1039
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Image Handler 4 (for v1.5.x) Support Thread

cefyn:

Sorry ,I was a bit freaked by a couple of bruteforce password attacks and didn't ask a coherent question.The main images folder is ok with normal permissions.If I have 644 on files in the bmz_cache I keep getting errors - failed to open bmz cache for writing,permission denied in lines 645 and 655 in bmz_image_handler.class.php.It runs without errors with world write permissions.Is there something I should correct,or is that as it should be?
Sounds like your hosting provider may be running PHP using the web server's account (instead of an account created specifically for your website). In this case the web server's account must have write permission to the bmz_cache folder (as well as the Zen Cart image, cache, log, and other folders).

You can contact your hosting provider for more details on what permissions will be necessary (as they depend upon the server configuration). No further response to your questions about "security" and changing "permissions" will be answered by me in this thread. If your hosting provider is unable to assist you, you can start a new thread... But your hosting provider is the only one with all the relevant information on how their servers are configured.

To start a new thread click the large "Post New Thread" button (probably in the General Forum or the Installing on Linux Forum).

14 Mar 2014, 12:05 PM
#1040
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Image Handler 4 (for v1.5.x) Support Thread

Thank you for your patience,and your kindness in providing such a comprehensive answer.

Solved.