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

Results 521 to 540 of 1,691
4 Feb 2013, 6:23 PM
#521
weif avatar

weif

New Zenner

Join Date:
Mar 2010
Location:
Butte, MT
Posts:
83
Plugin Contributions:
0

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

chadderuski:

Hi Diva!

  1. Have you ever seen situations where IH4 has slowed down a site - meaning longer page load times? When I enable IH4 and refresh the page, I am getting a slight pause before the page renders. Settings are pretty much default with default zencart.

In my experience, when you first load any given page after installing IH, it does have a slight delay while images for that page are created. However, once any given image has been created, the pages do load faster due to smaller image files being transferred.

4 Feb 2013, 6:47 PM
#522
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

That is my experience too. when IH first scales the images there can be a delay. Evidently this is most noticeable when it is scaling pages with lots of new images. this really only happens onprodut listing lages after install. another thing that is worth noting is that different browsers deal with the delay in slightly different ways.

i am not sure about magicbox. You presumably want it to work on the main lroduct image. i do know that jqzoom plays nice with IH and there is a thread in which i am beinb persuaded to turn some code snippets into a proper module. search and you will find it

5 Feb 2013, 12:18 AM
#523
the_rampage_rado avatar

the_rampage_rado

New Zenner

Join Date:
Oct 2010
Posts:
28
Plugin Contributions:
0

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

I have not been this confused for long time with ZenCart modules....

How do I have to merge the files - some of those files are missing (my template don't have them) some are different.

This time I copied English folder (no edits as suggested above!), renamed it to Spanish and Bulgarian and installation underwent well - I enabled it, it's working but I can't seem to figure out which rows have to go where when merging...

Do I have to add all missing rows from my original files to the ones IH made or what?

I'm really lost on this one...

Also - If It's going be easier to make manual install - what I have to do - add all aditional rows in _IH4.php files to the ones I already have and not upload _IH4.php files (only the rest) or what?

https://www.rampagehockey.eu/neo - currently it's not displaying product info image because the author made the template to load large image there - will modify this latter but now I have to merge those files so he can work upon that...

5 Feb 2013, 12:43 AM
#524
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

the.rampage.rado:

I have not been this confused for long time with ZenCart modules....

How do I have to merge the files - some of those files are missing (my template don't have them) some are different.

This time I copied English folder (no edits as suggested above!), renamed it to Spanish and Bulgarian and installation underwent well - I enabled it, it's working but I can't seem to figure out which rows have to go where when merging...

Do I have to add all missing rows from my original files to the ones IH made or what?

I'm really lost on this one...

Also - If It's going be easier to make manual install - what I have to do - add all aditional rows in _IH4.php files to the ones I already have and not upload _IH4.php files (only the rest) or what?

www.rampagehockey.eu/neo - currently it's not displaying product info image because the author made the template to load large image there - will modify this latter but now I have to merge those files so he can work upon that...First of all roll back your store to the state it was BEFORE installing IH4. (you did make a backup right???)

Then start over by first making the change from the post I suggested:

Try making the change from this post: http://www.zen-cart.com/showthread.p...11#post1117911
Then before you re-do the install, if you are using another language, you will need to make a copy the "english" language folder from the IH4 package and name it for the languages you support. (YOUR_ADMIN/includes/languages/english)
Gerjan:

Don't forget to copy the English language files to you Norwegian folder (or you may want to translate them ) before the installation. As far as I remember it can't be fixed by copying the language files after you installed IH4.
Then make any file merges you need following the instructions for file merging in the IH4 readme

There is a section in the readme which covers file merging and provides the mapping between the IH4 files and the ones in your shop..

  1. Make any file merges that may be necessary. Some filepaths and files have changed. Please use the filemap below to assist you.

IH4 Installation Package Files |
Maps to These Files in Your Store |

/YOUR_ADMIN/includes/modules/category_product_listing_IH4.php |
/YOUR_ADMIN/includes/modules/category_product_listing.php |

/includes/modules/pages/popup_image/header_php_IH4.php |
/includes/modules/pages/popup_image/header_php.php |

/includes/modules/pages/popup_image_additional/header_php_IH4.php |
/includes/modules/pages/popup_image_additional/header_php.php |

/includes/modules/IH_INSTALL/additional_images.php |
/includes/modules/YOUR_TEMPLATE/additional_images.php |

/includes/modules/IH_INSTALL/main_product_image.php |
/includes/modules/YOUR_TEMPLATE/main_product_image.php |

/includes/templates/IH_INSTALL/popup_image_additional/tpl_main_page.php |
/includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php |

If your template doesn't have these files it means that there is no merging required and the installer will copy the files needed to the correct template locations..

Once you complete all these steps try uploading the IH4 files and do your install over again..

5 Feb 2013, 12:43 AM
#525
stingey avatar

stingey

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

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

Gerjan:

Wanna play hints? :laugh:

Don't forget to copy the English language files to you Norwegian folder (or you may want to translate them :P ) before the installation. As far as I remember it can't be fixed by copying the language files after you installed IH4. As Dana suggested, re-install...

Thanks for that, I had the same problem with Romanian. Copied the files to language folder after install so had blank descriptions in admin. Read your solution and 2 minutes later sorted :-)

5 Feb 2013, 12:56 AM
#526
the_rampage_rado avatar

the_rampage_rado

New Zenner

Join Date:
Oct 2010
Posts:
28
Plugin Contributions:
0

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

Thanks for the quick replay!

OK if rows from the original files are different from rows in _IH4 which rows to keep? _IH4's I suppose?

5 Feb 2013, 1:04 AM
#527
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

the.rampage.rado:

Thanks for the quick replay!

OK if rows from the original files are different from rows in _IH4 which rows to keep? _IH4's I suppose?I'm not sure I understand your question.. If you are asking about file merging it's difficult to answer your question since your files may have already been modified by other modules.. All I can say is you need to merge those changes with the ones made by IH4.

If they are vanilla Zen Cart files, then you DON'T need to worry about file merging.. I cannot help you with specific modules changes, and if the file merging is over your head to execute, you might want to enlist some professional assistance to help you properly make the file merges you need.. hope that helps..

Also before you get started, I really strongly suggest that you review the readme. If there is a section of the readme that is not clear, then let me know what part isn't clear..

5 Feb 2013, 1:22 AM
#528
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

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

DivaVocals:

IH4 ususally improves a site's performance.. So if you are experiencing some slowing I have to wonder if there isn't something else on your site that is causing it?? Post a link and we can give you a better idea..

You will not be able to use any kind of image zooming tool with the IH4 image hovering without some serious re-engineering of one or both tools to allow both to work together.. (it's on of the BIG reasons why zoom on the medium product image doesn't work in IH4)

Hi Diva (weif & nicol too!)

Thank you for the responses.

Yes, I figured first time loading a page would have a hit as the cache was created, and that is very obvious. It could be browser or even something in how apache is set.

I can confirm that magiczoom does not work perfectly out of the box with IH4. There seems to be some conflicts in variable name use and creation between the two modules. I keep getting an E_Error warning from PHP when the two are enabled together, but each run fine independently.

Unfortunately, magiczoom uses compiled javascript, so tracking down the conflict is made much more difficult.

Nice effects though!

5 Feb 2013, 1:55 AM
#529
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

chadderuski:

Hi Diva (weif & nicol too!)

Thank you for the responses.

Yes, I figured first time loading a page would have a hit as the cache was created, and that is very obvious. It could be browser or even something in how apache is set.

I can confirm that magiczoom does not work perfectly out of the box with IH4. There seems to be some conflicts in variable name use and creation between the two modules. I keep getting an E_Error warning from PHP when the two are enabled together, but each run fine independently.

Unfortunately, magiczoom uses compiled javascript, so tracking down the conflict is made much more difficult.

Nice effects though!
Try a different module then.. niccol's suggestion:
niccol:

i do know that jqzoom plays nice with IH and there is a thread in which i am beinb persuaded to turn some code snippets into a proper module. search and you will find it

5 Feb 2013, 12:01 PM
#530
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

Some files that IH modifies are core files. This means that IH overwrites the existing files that Zen uses. If your site has no modifications to these files then there are no problems. If your installation has existing modifications to you files then you will have to carefully merge the existing modifications with the modifications that IH makes. There are a number of ways of approaching this.

As always the best recommendation is to do this on a development version of your site. If you are serious about running your store it is always worth having a second version of the store so that you can experiment on that first. I know that this seems like a lot of work but it really is worth it and does not actually take that much time.

=======================

Route 1

This works for installations that have no modifications.

Just install IH and it will work. If your admin is in a language other than english then read this thread for instructions.

Route 2

This works well if you know that you have files to merge and is a good option if you don't know if you have merges to do.

Install as normal. The installer will create backups of any files it overwrites. So, just go for it. Then check your site. If everything is working well then you are good to go and you didn't need to do merges.

If problems have been created it probably means that you have merges to do. So, you can look on the server and find the backup versions of the files that have been created. Download the backup version (this will have your previous modifications). Download the active version ( this will have the IH modifications) . Merge these two files and upload the result as the active file.

=======================

Route 3

This is the way to go if you know that you have merges to do.

Read Diva's post above and see which IH files are equivilant to which Zen files. It is not a complex pattern! Then merge your modifications into the appropriate file in the IH installation files.

For instance if you have existing modifications in

/YOUR_ADMIN/includes/modules/category_product_listing.php

merge them with the installation file

/YOUR_ADMIN/includes/modules/category_product_listing_IH4.php

Then install as normal.

=======================

What happens during install is this:

  • The files are uploaded to the 'wrong' place.
  • A backup of your existing files is created
  • Then your files are overwritten

The logic is based on the fact that less experienced users have been known to upload files and overwrite existing file modifications. And those modifications may or may not be correctly backed up. There is potentially no recovery from this. Creating a backup before overwrite means that recovery is possible. However, to allow files to be backed up the IH files cannot be uploaded into the 'right' place because that is potentially destructive. So, they are put in an alternate position and then moved into the right place once the backup has been created.

5 Feb 2013, 2:55 PM
#531
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

niccol:

Some files that IH modifies are core files. This means that IH overwrites the existing files that Zen uses. If your site has no modifications to these files then there are no problems. If your installation has existing modifications to you files then you will have to carefully merge the existing modifications with the modifications that IH makes. There are a number of ways of approaching this.

As always the best recommendation is to do this on a development version of your site. If you are serious about running your store it is always worth having a second version of the store so that you can experiment on that first. I know that this seems like a lot of work but it really is worth it and does not actually take that much time.

=======================

Route 1

This works for installations that have no modifications.

Just install IH and it will work. If your admin is in a language other than english then read this thread for instructions.

Route 2

This works well if you know that you have files to merge and is a good option if you don't know if you have merges to do.

Install as normal. The installer will create backups of any files it overwrites. So, just go for it. Then check your site. If everything is working well then you are good to go and you didn't need to do merges.

If problems have been created it probably means that you have merges to do. So, you can look on the server and find the backup versions of the files that have been created. Download the backup version (this will have your previous modifications). Download the active version ( this will have the IH modifications) . Merge these two files and upload the result as the active file.

=======================

Route 3

This is the way to go if you know that you have merges to do.

Read Diva's post above and see which IH files are equivilant to which Zen files. It is not a complex pattern! Then merge your modifications into the appropriate file in the IH installation files.

For instance if you have existing modifications in

/YOUR_ADMIN/includes/modules/category_product_listing.php

merge them with the installation file

/YOUR_ADMIN/includes/modules/category_product_listing_IH4.php

Then install as normal.

=======================

What happens during install is this:

  • The files are uploaded to the 'wrong' place.
  • A backup of your existing files is created
  • Then your files are overwritten

The logic is based on the fact that less experienced users have been known to upload files and overwrite existing file modifications. And those modifications may or may not be correctly backed up. There is potentially no recovery from this. Creating a backup before overwrite means that recovery is possible. However, to allow files to be backed up the IH files cannot be uploaded into the 'right' place because that is potentially destructive. So, they are put in an alternate position and then moved into the right place once the backup has been created.Nick if you don't mind I would like to use this nearly verbatim in the readme docs..

Though there ALREADY is information in the docs that cover file merging (including the table I posted), it does appear that for some there is a bit of uncertainty about how to go about this..

5 Feb 2013, 10:47 PM
#532
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

:smile: of course

12 Feb 2013, 10:56 PM
#533
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

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

zc 1.5.0
We have an automation script that populates our store from a remote feed. It brings in 1 image per product from the remote server and puts them in a directoy ( we define which directory). These images are about 500 x 500 and about 75k.

Can image handler help automatically create the smaller image of this? I notice my page load times are large because images are being scaled instead of using actually smaller images for the thumbs.

Thank you

12 Feb 2013, 11:17 PM
#534
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

@makenoiz

yes.

12 Feb 2013, 11:28 PM
#535
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

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

Great... will install tonite!

19 Feb 2013, 2:07 PM
#536
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

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

Hi Guys,

I've just been doing an upgrade to a Zen 1.3.7 site to V1.5.1, and have run into a problem I've not experienced before even though I've done many of these.

The problem is with when I install IH4 I can no longer log into the admin of the site. Greeted with 'an error occurred please refresh the page'.

The log files reveal:

[20-Feb-2013 00:36:53] PHP 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 zen_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 <strong>convert</strong> binary in <em>includes/extra_configures/bmz_image_handler_conf.php
</em>.', , 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),') in
/home/spotty/public_html_dev/includes/classes/db/mysql/query_factory.php on line 120

Any ideas what would cause this? Its been bugging me for several hours and need to call it a night. Hopefully with some fresh ideas in the morning.

Cheers
Rod

19 Feb 2013, 2:54 PM
#537
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

It is the installer not finding the configuration group id for whatever reason.

Find this bit of code in your_admin/includes/init_includes/init_image_handler.php

    /* Find Config ID of Images */
    $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'];

And override it by adding this directly after it.

$im_configuration_id = '4';

Probably '4' is the configuration id of your images menu item but you could check that before hand if you are feeling perky.

19 Feb 2013, 6:27 PM
#538
lunekeltkar avatar

lunekeltkar

New Zenner

Join Date:
Feb 2013
Posts:
21
Plugin Contributions:
0

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

I just downloaded Image Handler 4 (latest version posted), and I'm trying to heed the warning to "read everything" (as I always do). I'm unable, though, to open anything other than the main readme page. When I click on the links (such as Install/Uninstall and Configuration), no files open. I searched the forums here, and I searched online to see if the installation and configuration instructions had been posted elsewhere, but I've had no luck.

I'm sure I'm just doing something silly that's keeping the readme links from working, but danged if I can figure it out. I would appreciate any direction.

LuneKeltkar

19 Feb 2013, 7:41 PM
#539
sjoukito avatar

sjoukito

New Zenner

Join Date:
Jul 2011
Posts:
17
Plugin Contributions:
0

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

Hey everyone,

I installed zencart 1.5.1 and the latest version of image handler.
The installation went smooth but Then I got this Message: No Image Handler information found.
I have plenty of categories and products but for some reason once I select one of those I am send back to the main Image handler page (../..?page=manager).

Does anyone know what is happening?

19 Feb 2013, 10:43 PM
#540
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

LuneKeltkar:

I just downloaded Image Handler 4 (latest version posted), and I'm trying to heed the warning to "read everything" (as I always do). I'm unable, though, to open anything other than the main readme page. When I click on the links (such as Install/Uninstall and Configuration), no files open. I searched the forums here, and I searched online to see if the installation and configuration instructions had been posted elsewhere, but I've had no luck.

I'm sure I'm just doing something silly that's keeping the readme links from working, but danged if I can figure it out. I would appreciate any direction.

LuneKeltkarYeah.. trying UNZIPPING the file.. You can't read the readme form a zip archive..