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

Results 381 to 400 of 1,691
4 Oct 2012, 8:04 PM
#381
divavocals avatar

divavocals

Totally Zenned

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

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

northfork:

Suggestion for the description of the plugin on the plugin's page:

"It is strongly suggested that if you are NEW to Zen Cart and web development that you read these threads BEFORE you install Image Handler 4."

That thread is over 700 pages long! :P I think that is a bit of a large task for someone who might want to install the plugin. I think what you mean is that you suggest someone reads those two posts, right?

And, a link to this version 4 thread would be a convenience most would appreciate.

If this is tested to work with 1.51, can the plugin page say so?

Thanks!

We wrote EXACTLY what we intended to write and included links to two very specific posts.. NOT an entire thread, but two specific posts.. There is no need to change tis in the readme at all..

As for a link to IH4.. Well we would have loved to, but at the time the support thread was created, IH4 hadn't been approved by the admin.. Hence no link.. Can't edit posts after a certain period of time, and well.... in the big picture... this has not really proven to be a big deal.. So I've given it no further thought..

You'll have to ask the admins about your last suggestion... I'm a tad busy and haven't had a chance to test with 1.5.1.. So I won't have time to take on finding out if this is doable.. Now if someone else verifies v1.5.1 compatibility and seeks out from the admins how to update this, and the admins decide to update the plugin to reflect this then this could happen..

4 Oct 2012, 8:21 PM
#382
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

Support Thread link updated.

4 Oct 2012, 8:29 PM
#383
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

DrByte:

Support Thread link updated. You are the BEST!!! Thanks..

9 Oct 2012, 9:37 PM
#384
olcs avatar

olcs

New Zenner

Join Date:
Dec 2011
Posts:
92
Plugin Contributions:
0

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

Hi,

I wonder if anyone can help.

I am using Image Handler 4 and Zen Lightbox. Up until recently Image Handler 4 worked fine however, now when I upload images it seems to fail to create medium and large images correctly. Therfore my product info pages have no image displayed. I have discovered that the product info pages are looking for an image to be in images/medium/category/image_name_MED.jpg. Unfortunately the file doesn't get created in this location, hence wy it's not displayed. Has anyone seen this behaviour before and could therefore point me in the right direction for a fix?

I am using Zen Cart v1.5

A link to a product page in question is here

Would be very grateful for any help anyone can give

Many thanks

9 Oct 2012, 10:10 PM
#385
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

OLCS:

Hi,

I wonder if anyone can help.

I am using Image Handler 4 and Zen Lightbox. Up until recently Image Handler 4 worked fine however, now when I upload images it seems to fail to create medium and large images correctly. Therfore my product info pages have no image displayed. I have discovered that the product info pages are looking for an image to be in images/medium/category/image_name_MED.jpg. Unfortunately the file doesn't get created in this location, hence wy it's not displayed. Has anyone seen this behaviour before and could therefore point me in the right direction for a fix?

I am using Zen Cart v1.5

A link to a product page in question is here

Would be very grateful for any help anyone can give

Many thanks
The issue you are having is not and IH4 bug (thoerwise others would have reported the same) Sounds to me like you may have installed another add-on that modifies some of the same files modified by IH4.. No suggestion other than try re-installing both IH4 and ZLB. Out the box both work when properly installed..

9 Oct 2012, 10:28 PM
#386
olcs avatar

olcs

New Zenner

Join Date:
Dec 2011
Posts:
92
Plugin Contributions:
0

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

DivaVocals:

The issue you are having is not and IH4 bug (thoerwise others would have reported the same) Sounds to me like you may have installed another add-on that modifies some of the same files modified by IH4.. No suggestion other than try re-installing both IH4 and ZLB. Out the box both work when properly installed..

Thanks DivaVocals, I'll try a reinstall to see if that fixes it.

Many thanks

16 Oct 2012, 9:41 AM
#388
bottyz avatar

bottyz

New Zenner

Join Date:
Mar 2010
Location:
Nottingham UK
Posts:
90
Plugin Contributions:
0

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

Hi all,

I'm having a problem with the watermarks appearing on the medium and large images. The files are there and they are set to yes in the admin but they just don't show. I last had a version of 1.3.9 installed with ih2, all worked as it should so I don't know what i'm doing wrong. Details Below:

Zencart v1.5.1 fresh install - no ih2 settings was a clean db
MySQL 5.1.65-cll
PHP 5.3.13
GD Enabled - bundled 2.0.34
imageMagik Enabled - 6.5.4-7

Other Addons: Invoice/Worldpay/Google Merchant Feeder
BMZ_Cache & Images folders+files all set to CHMOD 755

Followed the advanced instructions in the readme, got a success message in admin.
No Lightboxes

Admin settings:
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
IH resize images no
IH small images filetype no_change
IH small images background 255:255:255
IH small images compression quality 85
IH small images watermark no
IH small images zoom on hover no
IH small images zoom on hover size Medium
IH medium images filetype no_change
IH medium images background 255:255:255
IH medium images compression quality 85
IH medium images watermark yes
IH large images filetype no_change
IH large images background 255:255:255
IH large images compression quality 85
IH large images watermark yes
IH large images maximum width 750
IH large images maximum height 550
IH watermark gravity Center

Example URL:
http://www.lighthouse.uk.com/shop/index.php?main_page=product_info&cPath=65_66&products_id=249

Everything else seems to work pretty much picture perfect. Even under the 'preview' tab in the admin settings the watermark is there.

Thanks in advance for any pointers!

16 Oct 2012, 3:03 PM
#389
feedmysky avatar

feedmysky

New Zenner

Join Date:
Oct 2012
Posts:
2
Plugin Contributions:
0

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

I've read the 39page thread,No answered for this question.
Zencart 1.5.1 english version, MySQL 5.0.96, php:5.3.8 (Zend: 2.3.0) ,Self-built template
After my uploading the Image Handler 4 to my host, I can't get into my admn page,it shows the error message:

WARNING: An Error occurred, please refresh the page and try again.
Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),')' at line 1 :: INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'IH resize images', 'IH_RESIZE', 'no', 'Select either -no- which is old Zen-Cart behaviour or -yes- to activate automatic resizing and caching of images. --Note: If you select -no-, all of the Image Handler specific image settings will be unavailable including: image filetype selection, background colors, compression, image hover, and watermarking-- If you want to use ImageMagick you have to specify the location of the convert binary in includes/extra_configures/bmz_image_handler_conf.php.', , 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),') in /home/easyoutl/public_html/includes/classes/db/mysql/query_factory.php on line 121
16 Oct 2012, 3:18 PM
#390
feedmysky avatar

feedmysky

New Zenner

Join Date:
Oct 2012
Posts:
2
Plugin Contributions:
0

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

problem solved!
admin/includes/init_includes/init_image_handler.php
Replace

$sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='".BOX_CONFIGURATION_IMAGES."' LIMIT 1";
    $result = $db->Execute($sql);
        $im_configuration_id = $result->fields['configuration_group_id'];

with

$sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='Images' LIMIT 1";
    $result = $db->Execute($sql);
        $im_configuration_id = $result->fields['configuration_group_id'];
   if($im_configuration_id == '') $im_configuration_id = 4;
16 Oct 2012, 3:29 PM
#391
bottyz avatar

bottyz

New Zenner

Join Date:
Mar 2010
Location:
Nottingham UK
Posts:
90
Plugin Contributions:
0

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

bottyz:

Hi all,

I'm having a problem with the watermarks appearing on the medium and large images. The files are there and they are set to yes in the admin but they just don't show. I last had a version of 1.3.9 installed with ih2, all worked as it should so I don't know what i'm doing wrong. Details Below:

Zencart v1.5.1 fresh install - no ih2 settings was a clean db
MySQL 5.1.65-cll
PHP 5.3.13
GD Enabled - bundled 2.0.34
imageMagik Enabled - 6.5.4-7

Other Addons: Invoice/Worldpay/Google Merchant Feeder
BMZ_Cache & Images folders+files all set to CHMOD 755

Followed the advanced instructions in the readme, got a success message in admin.
No Lightboxes

Admin settings:
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
IH resize images no
IH small images filetype no_change
IH small images background 255:255:255
IH small images compression quality 85
IH small images watermark no
IH small images zoom on hover no
IH small images zoom on hover size Medium
IH medium images filetype no_change
IH medium images background 255:255:255
IH medium images compression quality 85
IH medium images watermark yes
IH large images filetype no_change
IH large images background 255:255:255
IH large images compression quality 85
IH large images watermark yes
IH large images maximum width 750
IH large images maximum height 550
IH watermark gravity Center

Example URL:
http://www.lighthouse.uk.com/shop/index.php?main_page=product_info&cPath=65_66&products_id=249

Everything else seems to work pretty much picture perfect. Even under the 'preview' tab in the admin settings the watermark is there.

Thanks in advance for any pointers!

Finally figured this out by reading the resize images description in admin. In IH2 (where I was comparing settings) resize could be set to off whilst watermarking still worked. Whereas in IH4 nothing works unless this setting is on. Is there any point installing this mod with this setting off?

Great mod, sorry if my question seemed a bit stupid. Feeling a little silly now for asking it :lookaroun

16 Oct 2012, 7:25 PM
#392
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

And I need to chime in that this is specific to your setup.. For most everyone else the code in IH4 works as is without needing to modify the auto-installer..

feedmysky:

problem solved!
admin/includes/init_includes/init_image_handler.php
Replace

$sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='".BOX_CONFIGURATION_IMAGES."' LIMIT 1";
$result = $db->Execute($sql);
$im_configuration_id = $result->fields['configuration_group_id'];

> 
> with
> ```
$sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='Images' LIMIT 1";
    $result = $db->Execute($sql);
        $im_configuration_id = $result->fields['configuration_group_id'];
   if($im_configuration_id == '') $im_configuration_id = 4;
16 Oct 2012, 7:27 PM
#393
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

bottyz:

Finally figured this out by reading the resize images description in admin. In IH2 (where I was comparing settings) resize could be set to off whilst watermarking still worked. Whereas in IH4 nothing works unless this setting is on. Is there any point installing this mod with this setting off?

Great mod, sorry if my question seemed a bit stupid. Feeling a little silly now for asking it :lookarounYeah.. for folks who want that silly image hover feature.. (I personally dislike the image hover, but clients love this feature)

18 Oct 2012, 12:15 AM
#394
mjp11114 avatar

mjp11114

New Zenner

Join Date:
Jul 2012
Posts:
7
Plugin Contributions:
0

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

I had the same problem as many others with images not uploading to the server and of course not displaying in the store. But finally tracked the problem down. My host changed the document root path to my site and it wrecked havoc on the images. So with the new path I inserted into both configure.php files and all is back to normal. Hope this helps someone.

25 Oct 2012, 11:59 PM
#395
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

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

Hello there, I've read through the instructions, the usage and the configuration files - the question I have is I'm in the process of upgrading my shop - from 1.3.0.2 to 1.5. I'm opting to do a complete rebuild because too many things have changed, though I intend to use my existing database. I understand that IH4 is totally different from IH2 which is why I am concerned that something may go strange with the install since I'll be using my existing database.

Thanks in advance for your help and guidance

26 Oct 2012, 7:48 AM
#396
niccol avatar

niccol

Totally Zenned

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

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

Well, it is not totally different. There are some significant changes though.

The only things that are stored in the database are the settings that IH uses ( set in configuration>>images ). You will probably want to go through all of those anyway and have a look at some of the new options.

There shouldn't be any problems.

woodlandsprite:

Hello there, I've read through the instructions, the usage and the configuration files - the question I have is I'm in the process of upgrading my shop - from 1.3.0.2 to 1.5. I'm opting to do a complete rebuild because too many things have changed, though I intend to use my existing database. I understand that IH4 is totally different from IH2 which is why I am concerned that something may go strange with the install since I'll be using my existing database.

Thanks in advance for your help and guidance

29 Oct 2012, 8:54 PM
#397
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

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

Timestamp: 29/10/2012 21:39:49
Warning: An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing
Source File: http://www.MYSITE/tienda/manufacturers/rg-racing/rearsets/rearsets-aprilia-rsv4-2009-
Line: 33

This is an "error" that the Error Console of Web Developer (a Firefox plugin) shows up related to IH4.
The error is triggered by the fact that the jscript_imagehover.js that is auto-loaded in the head section, spits out <div id="trailimageid"></div> (where I am not sure!) in the head: not allowed, as explained in the link helpfully provided in the error message.

So, instead of using the autoload, I renamed it ih4_jscript_imagehover.js and put this in the tpl_main_page.php after the body tag

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<script type="text/javascript" src="includes/templates/MYTEMPLATE/jscript/ih4_jscript_imagehover.js"></script>

IH4 still works, the error has gone and the site is 200% faster (not).

Now some geek can explain the pointlessness of all this.

30 Oct 2012, 8:01 AM
#398
niccol avatar

niccol

Totally Zenned

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

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

Yes, you are right.

The image hover is based on a VERY old bit of javascript code. I think I am right in thinking that most of the people who have worked on IH at various times think that the hover effect is horrible and so have not paid it much attention. Another solution would be to not use the image hover feature at all and just not load this javascript at all.

Or you could just ignore the 'error'.

With jQuery being promised as standard on a future version of Zen I guess it is likely that all this will get re-written at some point ...

30 Oct 2012, 9:02 AM
#399
sebasverwoert avatar

sebasverwoert

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

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

Hi all,

I've searched this thread, however without succes :) After installing IH4 I get the warning "WARNING: An Error occurred, please refresh the page and try again." on the admin page, it just completely crashes :). I know the problem is somewhere in the .htaccess file. I haven't edited it yet. Changing permissions doesn't work. When I remove the .htaccess I can use the admin page again, but IH sais that it misses files. Does anyone have experience with this same error, or even better does anyone know how to fix it? :)

Thanks in advance!

30 Oct 2012, 12:45 PM
#400
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

SebasVerwoert:

Hi all,

I've searched this thread, however without succes :) After installing IH4 I get the warning "WARNING: An Error occurred, please refresh the page and try again." on the admin page, it just completely crashes :). I know the problem is somewhere in the .htaccess file. I haven't edited it yet. Changing permissions doesn't work. When I remove the .htaccess I can use the admin page again, but IH sais that it misses files. Does anyone have experience with this same error, or even better does anyone know how to fix it? :)

Thanks in advance!Blank page = error.. You need to look at your error logs and see what that error log says is the issue.. (which is not likely to be the .htaccess file)