Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 3 Support Thread (for ZC v1.3.9)

Image Handler 3 Support Thread (for ZC v1.3.9)

Views: 180,262

Results 761 to 780 of 1,099
13 Jan 2012, 4:04 PM
#761
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Image Handler 3 Support Thread (for ZC v1.3.9)

What happens if you add this to the end of the image handler URL

?page=about

so it reads

image_handler.php?page=about

That should emulate the link that is being used and might shed some light on the issue.
Absolutely nothing happens. I had already tried it with all four links.

However, typing this in the URL does respond and clears image cache: https://www.example.com/STORE_NAME/MY_ADMIN/image_handler.php?page=admin&action=ih_clear_cache

This typed directly: https://www.example.com/STORE_NAME/MY_ADMIN/image_handler.php?page=admin&action=ih_install responds with the message "Image Handler successfully installed" but nothing else changes in terms of functionality.

Any clues from that?

13 Jan 2012, 5:13 PM
#762
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

niccol:

There is the issue with sercurity on 1.5 but I didn't think that this actually prevented things from working. Rather people were being encouraged to code to meet those guidelines. But this is just what I believe.

However, there are other issues with making a module work with a new version. The code was written to be compatible with a previous codebase. If there are incompatibilities with the new codebase then that will cause functional issues. To be honest I would guess that that is the case here, or there is simply an installation error.

Having said that these links are actioned using a get parameter on the URL. Which is one of the things that is being discouraged in Zen 1.5. So perhaps there is stronger security in place to prevent this happening. You'd have to investigate or ask the developers.My take based on the conversations that have taken place on this topic is that add-ons which use insecure GET parameters will most likely NOT work with Zen Cart v1.5. IH3 is LOADED with these kinds of GET parameters as it was written in 2006 (when this was not considered an issue) and NEARLY ALL of Tim's original codebase is still in place in the current IH3. I think that there are some issues with compatibility between versions of Zen Cart, but I do believe that the security issues also play a role.. Given that NONE of the links in IH3 work with v1.5, I think this would appear to be the case.

In fact there appear to be HINTS given early on by VERY knowledgeable folks that Clydes "fix" for IH3 alone would only allow IH3 to be registered under the new v1.5 requirements for admin add-ons. However, getting an add-on to "show up" in the admin in v1.5 doesn't mean that it will WORK in v1.5..

George, I know you don't want to hear this, but I do believe that IH3 needs a re-write not only to meet the new security requirements of v1.5.. It needs a re-write to WORK in v1.5. Kuroi said as much in the v1.5 mods thread when there was a BRIEF discussion of ClydeJones "fixes" to IH3.

13 Jan 2012, 5:21 PM
#763
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Yup, I diagnose that it doesn't work :smile:

As I said not to keen to go further than that. Just had a quick peek at the code and ran away crying. There is a whole lot of work that needs to be done in there.

If you are 100% sure that your install is right then that leads one to believe that there is a compatibility issue that is best solved by re-coding.

The best advice I can give is wait for a version to be released that is compatible with 1.5.

13 Jan 2012, 5:21 PM
#764
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Then I better forget it until a ZC 1.5 compatible version is announced. Thank you and everyone else in this thread for the efforts and replies. :D

14 Jan 2012, 7:43 PM
#765
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Hello,

I try to add a large picture (optional) for replacing the default one for displaying large picture only, but get following error.


Error!

Unable to determine the page link!

Function used:

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

before I try this, I added a picture on default to display S.M.L. and working fine.

Please advise.

14 Jan 2012, 9:33 PM
#766
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

That error message is normally caused by invalid characters in the image name, what is the name of the image, and can you provide a link to it being used on your site

hara:

Hello,

I try to add a large picture (optional) for replacing the default one for displaying large picture only, but get following error.


Error!

Unable to determine the page link!

Function used:

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

before I try this, I added a picture on default to display S.M.L. and working fine.

Please advise.

15 Jan 2012, 2:04 AM
#767
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Image named aa_green_bb.jpg

nigelt74:

That error message is normally caused by invalid characters in the image name, what is the name of the image, and can you provide a link to it being used on your site

15 Jan 2012, 9:31 AM
#768
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

That error message is normally caused by invalid characters in the image name
I have found out that this message comes when the image name (or perhaps the whole path) exceeds certain characters. It has happened to me many times and was corrected when I changed the image name from, for example, images/products/category/subcategory/this_is_a__long_image_name.jpg to images/products/category/subcategory/image.jpg. I have not been able to play around it enough to establish the exact number of characters accepted. Is there such a limit?

15 Jan 2012, 5:24 PM
#769
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

I changed to short image name: abc.jpg
The problem still not resolved.:(

15 Jan 2012, 8:30 PM
#770
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Hi All,

I am running Image Handler 3 on zencart version 1.39H and have additional images installed and all is working fine except for the image water mark. It only appears to be working on the small images and not the medium or large (have activated it in CP).

Note that we are waiting for updates on modules before we install zencart 1.5 version and just want to make sure all is well before doing so as we have a few add ons installed and products are being loaded on a regular basis.

Any help would be appreciated with the water mark as we do wish to protect our images from being copied.

15 Jan 2012, 11:13 PM
#771
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Watermarking works just fine if installed correctly.. Please re-check your image settings and re-read the readme to see if you may have missed something in your setup/install..

Bruce1952:

Hi All,

I am running Image Handler 3 on zencart version 1.39H and have additional images installed and all is working fine except for the image water mark. It only appears to be working on the small images and not the medium or large (have activated it in CP).

Note that we are waiting for updates on modules before we install zencart 1.5 version and just want to make sure all is well before doing so as we have a few add ons installed and products are being loaded on a regular basis.

Any help would be appreciated with the water mark as we do wish to protect our images from being copied.

16 Jan 2012, 3:35 AM
#772
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

hara:

I changed to short image name: abc.jpg
The problem still not resolved.:(

What is the name of the image you are adding it to?

To be clear the name of the image you are uploading can be pretty much anything.

You are uploading an image to an existing product, to be used for one specific size of image, the image you are uploading will be renamed to match the existing image, what is the name of that existing image

16 Jan 2012, 7:15 PM
#773
thebigkick avatar

thebigkick

New Zenner

Join Date:
Jan 2012
Location:
Montreal
Posts:
84
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

How do get the hover effect to be disabled for the Home page and Category pages?

16 Jan 2012, 7:28 PM
#774
thebigkick avatar

thebigkick

New Zenner

Join Date:
Jan 2012
Location:
Montreal
Posts:
84
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Trying to disable the Image Handler v3 Hover effect for certain pages. I like how it is functional on the product page, however, I don't like the effect on the Home page under the Review and Featured Items is displayed.

Thanks

16 Jan 2012, 7:38 PM
#775
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

thebigkick:

Trying to disable the Image Handler v3 Hover effect for certain pages. I like how it is functional on the product page, however, I don't like the effect on the Home page under the Review and Featured Items is displayed.

ThanksI'm afraid this is an all or none feature.. If I recall correctly it would require a fair bit of coding work to disable it selectively as you would like.. Perhaps others can offer more insight on this..

17 Jan 2012, 1:40 AM
#776
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

So people will stop asking about Clydes "fix" for IH3 with Zen Cart v1.5. As I suspected getting IH3 to show up in the admin is only HALF the battle.. IH3 needs a RE-WRITE to work with v1.5..

DrByte:

But converting addons for v1.5 compatibility requires two primary things:
a) rebuilding the menu options by inserting the required page associations into the database.
b) rewriting all forms to use the POST method instead of GET whenever those forms trigger UPDATE statements of any sort into the database. GET parameters should only be used for things like filters, and even then they need to be sanitized. In fact, the other part of form rewriting is that ALL inputs need to be sanitized before use.

If you don't do those things then your admin won't show the menu options, and even if they did they might be non-functional because if the forms aren't rewritten and sanitized then all updates will just redirect you to the admin home screen instead of doing the action required/expected..

17 Jan 2012, 1:43 AM
#777
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

I KNEW I was right about this when I made the statement earlier in this thread..

DrByte:

The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
So, merely adding menu options isn't sufficient for all addons.

18 Jan 2012, 8:48 PM
#778
querk avatar

querk

New Zenner

Join Date:
Jan 2012
Posts:
6
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Hello, i have a problem with bmz_cache. It have too many files.
I have a -sort-of-solution ---> lets do cron the job.
But when i configure cron.php (code below) it do not work.
I have this cron solution for -cache-admin-.log- problem. ^^ but that do not work for bmz_cache.
:frusty:
Can you help me?
--script---

<?php
     function recursiveDelete($str){
         if(is_file($str)){
             return @unlink($str);
         }
         elseif(is_dir($str)){
             $scan = glob(rtrim($str,'/data/web/juwelen.sk/web/bmz_cache/').'/*');
             foreach($scan as $index=>$path){
                 recursiveDelete($path);
             }
             return @rmdir($str);
         }
     }

function delete_folder($tmp_path){
}
?>

-my-sort-of-solution for -cache-admin-.log- problem----

<?php
if ('deletespecificfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
     die ('<h2>Direct File Access Prohibited</h2>');
}
else {
$foldertodelete  = '/data/web/juwelen.sk/web/cache/';
//DELETE LOG FILES
$fileTypes1      = '*.log';
$expire_time1    = 3;
foreach (glob($foldertodelete . $fileTypes1) as $Filename1) {
$FileCreationTime1 = filectime($Filename1);
$FileAge1 = time() - $FileCreationTime1;
if ($FileAge1 > ($expire_time1 * 60)){
unlink($Filename1);
}
}
}
?>
20 Jan 2012, 7:31 PM
#779
querk avatar

querk

New Zenner

Join Date:
Jan 2012
Posts:
6
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

OK. I find solution myself. For sake of those who have those errors, try this solution.

this solution needs Cron setup


**Error n1.: **

charset `windows-1250' not supported, assuming iso-8859-1 in .../bmz_image_handler.class.php on line 690

This kind of error i can repair. It is because of filename. Is in my language and i can not find a solution (i try many solutions -FAIL), only delete error log.

cron setup -> time- * * * * * ,, cron script put in directory"../cron/"

create a file cron1.php (and copy code)

<?php
if ('deletespecificfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
     die ('<h2>Direct File Access Prohibited</h2>');
}
else {
$foldertodelete  = '  --your path to--/web/cache/  ';
//DELETE Log FILES
$fileTypes1      = '*.log';
$expire_time1    = 3;
foreach (glob($foldertodelete . $fileTypes1) as $Filename1) {
$FileCreationTime1 = filectime($Filename1);
$FileAge1 = time() - $FileCreationTime1;
if ($FileAge1 > ($expire_time1 * 60)){
unlink($Filename1);
}
}
}
?>

when cron start - in every 1minute - he delete only log files in /cache


**Error n2.: **
**BIG **//bmz_cache//.

cron setup -> time- 0 12 * * 7 ,, cron script put in directory"../cron/"

I setup cron to start every Sunday midnight (because, bmz_cache needs to be filled /for some time/ because if bmz_cache is clear, image handler must create new cache - that slows server (tested on localhost and live shop).

create a file cron2.php (and copy code)

<?php
if ('deleteallfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
die ('<h2>Direct File Access Prohibited</h2>');
}
else {
$foldertodelete  = ' -- your path to -- web/bmz_cache/0/';
$fileTypes1 = '*.*';
$expire_time1= 3;
foreach (glob($foldertodelete . $fileTypes1) as $Filename1) {
$FileCreationTime1 = filectime($Filename1);
$FileAge1 = time() - $FileCreationTime1;
if ($FileAge1 > ($expire_time1 * 60)){
unlink($Filename1);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/1/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/2/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/3/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/4/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/5/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/6/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/7/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/8/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/9/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/a/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/b/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/c/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/d/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/e/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
$foldertodelete  = ' -- your path to -- web/bmz_cache/f/';
$fileTypes2      = '*.*';
$expire_time2    = 3;
foreach (glob($foldertodelete . $fileTypes2) as $Filename2) {
$FileCreationTime2 = filectime($Filename2);
$FileAge2 = time() - $FileCreationTime2;
if ($FileAge2 > ($expire_time2 * 60)){
unlink($Filename2);
}
}
}
?>

Disclaimer

*Use it wisely.
*It is not, that my solution is the best. Is only solution which works well for me. If you have a better solution -- share it please with community.
*I am not a Jenius - i only edit some PHP code from internet.
(original page is here -http://www.devshed.com/c/a/Administration/Cron-Job-Tutorial-Crontab-Scheduling-Syntax-and-Script-Example/)
*cron setup is different on "different" server.
*And the last -- sorry my english - i am not native U.S. I am only a student :smartalec:

20 Jan 2012, 10:44 PM
#780
gilby avatar

gilby

Totally Zenned

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

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

[QUOTE=Querk;1095893]Hello, i have a problem with bmz_cache. It have too many files.
I have a -sort-of-solution ---> lets do cron the job.
But when i configure cron.php (code below) it do not work.
I have this cron solution for -cache-admin-.log- problem. ^^ but that do not work for bmz_cache.
:frusty:
Can you help me?

How many files is "too many files"?
What error are you receiving?
or is it a hosting restriction?