-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
1atom12
Greetings IH4 experts, I have a general question about this mod. Will it help reduce the amount of server overhead my site is generating? I'm being pestered by my hosting company to reduce my CPU usage. I am on a VPS. Running my site through various website speed check sites, the biggest thing that keeps popping up negative are my images.
Here's my site if anyone wants to take a peek:
heathersheavenlyvapes.com
IH4 as the opening thread (and readme) states will optimize your product and category images.. However, if you have other optimization issues on your site, or images in other places on your site (non product/category images) IH4 will not resolve those issues.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
pasi
Tried to search but got too many results to go through them all...
Anyway, the problem is that some images are in GIF format. JPG images are resized correctly, but the GIF images aren't resized at all.
Before I go deeper into checking what is wrong, I wanted to ask if IH4 actually supports resizing GIF images, or if there is any known "issues" or "fix" to this.
There are issues in many cases related to resizing .gif images, and a lot of on-the-fly image resizers either can't resize .gifs, or don't because of issues. The biggest issue I've seen resizing .gifs is that since they are already in indexed color mode, you almost always get really bad looking images. In addition, there are copyright issues with publishing .gif images on the web that you should be aware of...
I can't speak as to whether IH4 should handle .gifs for you or not, but I would strongly encourage you to replace those .gof images with either .png or .jpg versions, which will address the issue you are seeing and the problems with resizing .gifs.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
llynix
I'm not sure if this has been reported, but IH4 has an outdated /admin/includes/modules/category_product_listing.php
It appears as though the version in IH4 is from 1.3.9c
There have been many changes to this file since 1.5 it would seem. There are a few security enhancements along with the fact the enable/disable buttons on this page have been changed from a link to a form.
IH4 breaks these buttons in ZC 1.5.1
Simple fix is to update this file with the version from 1.5.1 and then around line 352 make sure this line is in there:
PHP Code:
<?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '¤t_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
This seems to be the only change this file requires.
And that is exactly one of the reasons I hate the auto installer of this mod. Don't get me wrong, I like IH, but now you have to do the installation twice. First the installer overwrites your files and after that you still need to compare your files for correct code, and add your own customisation again.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
Design75
And that is exactly one of the reasons I hate the auto installer of this mod. Don't get me wrong, I like IH, but now you have to do the installation twice. First the installer overwrites your files and after that you still need to compare your files for correct code, and add your own customisation again.
Ummmm no you actually don't.. and if you look at the readme, we do explain how to apply your customizations BEFORE your IH4 install.. If this part of the readme doc isn't clear, I am all for suggestions on how to improve it..
The modification that llynix posted can be applied to an EXISTING IH4 install without requiring a RE-INSTALL of the module..
-
Re: Image Handler 4 Support Thread
Yep IH4 supports GIFs, an example from my test site is the original GIF image here as uploaded
and the product listing here
where image handler is, well handling it
As for any patent issues with gifs, I am fairly sure those patents expired 10 years ago
Quote:
Originally Posted by
pasi
Tried to search but got too many results to go through them all...
Anyway, the problem is that some images are in GIF format. JPG images are resized correctly, but the GIF images aren't resized at all.
Before I go deeper into checking what is wrong, I wanted to ask if IH4 actually supports resizing GIF images, or if there is any known "issues" or "fix" to this.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
DivaVocals
Ummmm no you actually don't.. and if you look at the readme, we do explain how to apply your customizations BEFORE your IH4 install.. If this part of the readme doc isn't clear, I am all for suggestions on how to improve it..
The modification that llynix posted can be applied to an EXISTING IH4 install without requiring a RE-INSTALL of the module..
I wouldn't call it a modification. IH4 probably introduces some security problems and breaks the enable/disable button in zen cart because of legacy code in that file. It's a bugfix not a modification.
I dunno about the auto-installer. I thought it was a pretty good idea but honestly didn't look into how it works. I'm curious as to why you include a default file in the installation package. Why not just backup the existing version on the site?
I do think that even with me patching the correct file on my site.. I didn't change the backup or the default so upon uninstalling It would break my site again. So my patch above is incomplete.
That's why I didn't roll a patch myself. I really don't even have time to write this message :)
Thank you for the hard work on IH4.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
llynix
I wouldn't call it a modification. IH4 probably introduces some security problems and breaks the enable/disable button in zen cart because of legacy code in that file. It's a bugfix not a modification.
bugfix/modification.. 6 of one half dozen of the other.. point is that right now it's a modification that folks need to make to the IH files until I submit an update to IH4 (plan to do this next week)
Quote:
Originally Posted by
llynix
I dunno about the auto-installer. I thought it was a pretty good idea but honestly didn't look into how it works. I'm curious as to why you include a default file in the installation package. Why not just backup the existing version on the site?
Ummmm it does "backup the existing version on the site". I do believe that we make mention of this in the readme.. It's certainly been spoken of a few times in the forum.
http://www.zen-cart.com/showthread.php?194740-Image-Handler-4-(for-v1-5-x)-Support-Thread&p=1117911#post1117911
Quote:
Originally Posted by
niccol
Finally, finally, for those who are saying that the auto-installer is a bad idea the thought is that it just does exactly what you would do if you installed manually. It doesn't do anything new or different. It finds the active template and installs into that. In the same way as one would do by manually. The only difference between this installer and installing manually is that it always creates back-ups of overwriten files. Which has been a source of many many problems on the support threads.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Personally i think that the jury is still out on the auto installer.
more experienced users do not like it because it reduces ones freedom a bit.
on the other hand there have been a lot less questions from less experienced users that end up being due to messed up installations.
So what is the right answer?
As far as the question about reverting to previous versions of files. well this is a thorny issue. Do you revert to the version that existed prior to IH install? Well maybe but also maybe not. because other modifications may have been made to that file since theIH install. so without knowing what a user has done the best thing seems to be to provide a before installation file back up and an original file version.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
niccol
Personally i think that the jury is still out on the auto installer.
more experienced users do not like it because it reduces ones freedom a bit.
on the other hand there have been a lot less questions from less experienced users that end up being due to messed up installations.
So what is the right answer?
As far as the question about reverting to previous versions of files. well this is a thorny issue. Do you revert to the version that existed prior to IH install? Well maybe but also maybe not. because other modifications may have been made to that file since theIH install. so without knowing what a user has done the best thing seems to be to provide a before installation file back up and an original file version.
The BIGGEST benefit has been that less experienced users have had FEWER issues since the release of IH4. This support thread is FAR FEWER posts than any previous IH support threads..
Plus this is NOT the only Zen Cart module which includes an auto install feature. Ceon URI and many of the Numinix modules also contain auto installers. The idea is to ease the install and cut down on the number of install related issues. Even so, I do not think that more experienced users are hog tied from doing their own thing at all.. A couple have expressed this opinion, but these same users are not IMHO being encumbered because of the introduction of an auto installer..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I personally have found the auto-installer to be a show-stopper, especially when I'm trying to integrate with a site that's making many other changes to similar files. And especially with FEC (now, admittedly there were several other addons adding more complications, especially the css/js loader mess, but that's a side issue and I don't mean to mix other matters into this thread).
I confess that I've not studied all the documentation greatly in recent days, but last I looked it didn't seem like there was an obvious way to bypass all the safeties built-in to the autoinstaller so I could just merge the necessary changes into the core files which needed it.
It actually was the biggest task for an upgrade I was doing to an otherwise heavily customized site. I was amazed that it took much longer to do IH4 than everything else. Granted, I suppose if I were up to speed on all the inner workings of the mod then maybe that might have made things different. Actually the more I think about it, I think I just skipped using IH altogether.
Maybe it deserves another try. I'm just writing this in response to niccol's last post, to cast my vote for skipping all the automated file changes, at least for those who wish a more conventional approach.
JMHO
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DrByte
I personally have found the auto-installer to be a show-stopper, especially when I'm trying to integrate with a site that's making many other changes to similar files. And especially with FEC (now, admittedly there were several other addons adding more complications, especially the css/js loader mess, but that's a side issue and I don't mean to mix other matters into this thread).
I confess that I've not studied all the documentation greatly in recent days, but last I looked it didn't seem like there was an obvious way to bypass all the safeties built-in to the autoinstaller so I could just merge the necessary changes into the core files which needed it.
It actually was the biggest task for an upgrade I was doing to an otherwise heavily customized site. I was amazed that it took much longer to do IH4 than everything else. Granted, I suppose if I were up to speed on all the inner workings of the mod then maybe that might have made things different. Actually the more I think about it, I think I just skipped using IH altogether.
Maybe it deserves another try. I'm just writing this in response to niccol's last post, to cast my vote for skipping all the automated file changes, at least for those who wish a more conventional approach.
JMHO
the auto installer doesn't prevent one from integrating changes in common files at all. There is a section of the readme which explicitly does cover it. Now perhaps it's because I helped write the instructions that it's second nature for me, but I am quite open for suggestions as to how to improve the instructions. if how to merge changes in common files is NOT clear in the readme I can make it clearer if it is needed..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I'll give it a try again if it comes up as part of a project. Perhaps my mind was just cloudy with all the other complications of the last one I did where IH4 was involved.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DrByte
I'll give it a try again if it comes up as part of a project. Perhaps my mind was just cloudy with all the other complications of the last one I did where IH4 was involved.
Trust me I understand.. happy to help if you give it a go again.. I spent ALL OF yesterday replacing FEAC with COWOA (FEAC did not play well with others) and removing the Highslide module . So much broke and had to be reinstalled including IH4 and Zen Lightbox.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
I spent ALL OF yesterday replacing FEAC with COWOA (FEAC did not play well with others)
Yup, a real pain.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I'm confused with the IH4 installation.
I did the auto install and I had no row headings in admin->images (those IH adds)...
So I'm back to backup and trying to figure out how to do manual install.
I have to rename and merge those files into the proper names/directories and then upload them - so this is manual install?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
the.rampage.rado
I'm confused with the IH4 installation.
I did the auto install and I had no row headings in admin->images (those IH adds)...
So I'm back to backup and trying to figure out how to do manual install.
I have to rename and merge those files into the proper names/directories and then upload them - so this is manual install?
No.. and honestly you haven't posted enough information to tell us what might have gone wrong. (no link to your site, no error messages.. no indication as to whether or not the IH menu is available in the Tools menu, no idea what version of Zen Cart you are running..)
and I need to say this again.. IH has NEVER used external SQL scripts to add the entries in the configuration table to add the IH image configuration options .. It has ALWAYS had an installer that had to be run from the admin. The ONLY thing IH4's installer brings to the table is that you now no longer have to "click a button" to execute it..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
No.. and honestly you haven't posted enough information to tell us what might have gone wrong. (no link to your site, no error messages.. no indication as to whether or not the IH menu is available in the Tools menu, no idea what version of Zen Cart you are running..)
and I need to say this again.. IH has NEVER used external SQL scripts to add the entries in the configuration table to add the IH image configuration options .. It has ALWAYS had an installer that had to be run from the admin. The ONLY thing IH4's installer brings to the table is that you now no longer have to "click a button" to execute it..
I'm running 1.5.1
I installed following the 'auto' setup - only renamed the admin folder and uploaded.
I saw bunch of rows (all of them green) when the installer ran and then as follows in the instructions I went to Images to enable IH but there all IH field header names were blank. The settings were visible but...
Then I went into the 'admin' folder of IH and saw there's language versions I was not copied for my other 2 languages - I did that for BG and ES lang., uploaded them but no luck again (the same EN files, all my admin section is EN for all langs)
I didn't saw if IH menu was present in Tools, but the changed 'categories' file was working.
I reverted back to original state now. What I did wrong?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi Diva!
I have a new install ZC 1.51 + IH4. The module installed fine, and is creating cached images, and hover is working as expected.
I have a couple questions. I'm 'new' to Image Handler so I hope you don't mind.
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.
2) I'd like to use Magic Zoom from magictoolbox.com. Pretty nifty. Have you tested IH4 with magiczoom, or heard of any conflicts?
Thanks for the hard work!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
chadderuski
Hi Diva!
I have a new install ZC 1.51 + IH4. The module installed fine, and is creating cached images, and hover is working as expected.
I have a couple questions. I'm 'new' to Image Handler so I hope you don't mind.
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.
2) I'd like to use Magic Zoom from magictoolbox.com. Pretty nifty. Have you tested IH4 with magiczoom, or heard of any conflicts?
Thanks for the hard work!
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)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
the.rampage.rado
I'm running 1.5.1
I installed following the 'auto' setup - only renamed the admin folder and uploaded.
I saw bunch of rows (all of them green) when the installer ran and then as follows in the instructions I went to Images to enable IH but there all IH field header names were blank. The settings were visible but...
Quote:
Originally Posted by
the.rampage.rado
Then I went into the 'admin' folder of IH and saw there's language versions I was not copied for my other 2 languages - I did that for BG and ES lang., uploaded them but no luck again (the same EN files, all my admin section is EN for all langs)
You say you are using another language in your store.. Try making the change from this post: http://www.zen-cart.com/showthread.p...11#post1117911
Quote:
Originally Posted by
the.rampage.rado
I didn't saw if IH menu was present in Tools, but the changed 'categories' file was working.
Not sure what you mean by this last part.
Quote:
Originally Posted by
the.rampage.rado
I reverted back to original state now. What I did wrong?
Suggest making the change in the post I included (above) and then try the install again..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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.
-
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
-
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?
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...
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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:
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)
Quote:
Originally Posted by
Gerjan
Don't forget to copy the English language files to you Norwegian folder (or you may want to translate them
http://www.zen-cart.com/images/smilies/tongue.gif ) 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..
Quote:
- 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..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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 :-)
-
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?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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:
Quote:
Originally Posted by
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
-
Merging Files
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.
-
Re: Merging Files
Quote:
Originally Posted by
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..
-
Re: Merging Files
-
Re: Merging Files
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
-
Re: Merging Files
-
Re: Merging Files
Great... will install tonite!
-
IH4 SQL problem
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
-
Re: IH4 SQL problem
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
Code:
/* 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.
Code:
$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.
-
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
-
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?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
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.
LuneKeltkar
Yeah.. trying UNZIPPING the file.. You can't read the readme form a zip archive..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Sjoukito
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?
Did you follow the instructions.. (the part where it tells you how to turn it on after you install it??)
-
Re: IH4 SQL problem
Quote:
Originally Posted by
niccol
It is the installer not finding the configuration group id for whatever reason.
<snip>
Code:
$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.
Thanks Nick. You were right, the $im_configuration_id wasn't being set, but when manually setting this it led to even further problems, so I figured it was time for me to backout of things and start the upgrade afresh. This time it worked just fine, no errors reported at all and the upgrade completed with about as much ease as any others I've done.
I can only guess something went amiss with my 1st set of uploads. A little embarrassing to admit to really, but then again, it is quite often these 'simple' problems/solutions that seem to cause the most headaches.
Thanks again,
Rod
-
Re: Image Handler 4 (for v1.5.x) Support Thread
@Lune
Stay calm .
Just list the steps that you have gone through to try and make it work and someone will try and help you make it work.
@RodG
Yeah, those few lines of the auto-installer need looking at because they appear flakier than I would think they should be. Next time around I think that we will go with
Code:
$im_configuration_id = '4';
As there is not much to go wrong with that. And how many people are going to have actually changed the configuration group of images? Not many I'd guess.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
LuneKeltkar
Over the Hill,
Why you got to be so hateful? I can do without the add-on if I got to put up with this kind of crap to make it work.
LuneKeltkar
Hateful?? Wow..:laugh: is that what you walked away with?? Okay.. well.. for the record that's YOUR interpretation since you can't possibly KNOW what I was thinking.. You asked how to view the readme.. I provided the answer, and you overeacted because you intepreted feelings that simply aren't there.. Now whether you decide to use this add-on or not because of your reaction is up to you..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
LuneKeltkar
niccol,
I'm perfectly calm. I'm always perfectly calm, so I can do without your patronization just as much as I can do without Over the Hill's over the hillness. I unzipped the stupid Image Handler files into a separate directory. All the files unzipped fine, near as I could tell. When I clicked the readme document, the pretty little page with all its pretty little tabs opened. The "Purpose & Aim" tab showed when the page opened. When I clicked on any of the other tabs, not a dang thing happened, unless I wanted to sit forever reading about Purpose and Aim.
But you know, don't bother. I've ditched the thing already.
LuneKeltkar
All of the nastiness you've displayed is truly unnecessary.. Your reactions to niccol and myself are OVERREACTIONS to how you've decided to (incorrectly) interpret the tone of our posts..
That said not being able to read the other tabs would seem to indicate a corrupted download or that you did not unzip all of the supporting files for the readme.. But since you've walked away, I guess you don't care..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
@Lune.
That just suggests that you have a corrupted download of the zip file. It happens sometimes.
If you want to continue to use this module then I would suggest that you re-download it. If you continue to have problems reading the other tabs after that then please do post again and people will do the best they can to help you.
If you don't want to then that is a shame.
Nick
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
niccol
@Lune.
That just suggests that you have a corrupted download of the zip file. It happens sometimes.
If you want to continue to use this module then I would suggest that you re-download it. If you continue to have problems reading the other tabs after that then please do post again and people will do the best they can to help you.
If you don't want to then that is a shame.
Nick
Well stated!!:yes:
-
Re: IH4 SQL problem
Quote:
Originally Posted by
RodG
Thanks Nick. You were right, the $im_configuration_id wasn't being set, but when manually setting this it led to even further problems, so I figured it was time for me to backout of things and start the upgrade afresh. This time it worked just fine, no errors reported at all and the upgrade completed with about as much ease as any others I've done.
I can only guess something went amiss with my 1st set of uploads. A little embarrassing to admit to really, but then again, it is quite often these 'simple' problems/solutions that seem to cause the most headaches.
Thanks again,
Rod
Nah wasn't you at all..:smile: I have been busy as heck and dragging my heels on submitting an update to IH4 which includes among other things the fix niccol posted.. Will get on it right now.. Glad you are all sorted now..
-
IH4 v4.1 has been submitted to the downloads section..
Changelog includes:
- Backup files generated by the auto-installer are now given the OLD.IH4 extension instead of the BAK extension (which some server configurations disallowed)
- Configuration settings are now consistently and correctly appended to the default Images configuration section
- Updates to the readme file.
I'll post an update in this support thread when the new version is available..
-
Re: IH4 v4.1 has been submitted to the downloads section..
Hey, Mistress DivaVocals,
I have uncovered something that possibly has not been addressed; I'm not sure. I have been assuming for many years that Zen Cart cannot display the product image correctly in the product preview - it's normally a square - not the correct ratio size. But since I usually install image handler, it actually may have something to do with the mod.
I started checking carts 1.3.9h and 1.5x and I now see that the image is fine in carts without image handler but not fine with image handler. The preview_info.php file calls for the small image width and height.
Has anyone else noticed this or commented on it? Do you know what might be at work here?
I truthfully don't care but ran into a client who got really upset about it!
-
Re: IH4 v4.1 has been submitted to the downloads section..
Quote:
Originally Posted by
delia
Hey, Mistress DivaVocals,
I have uncovered something that possibly has not been addressed; I'm not sure. I have been assuming for many years that Zen Cart cannot display the product image correctly in the product preview - it's normally a square - not the correct ratio size. But since I usually install image handler, it actually may have something to do with the mod.
I started checking carts 1.3.9h and 1.5x and I now see that the image is fine in carts without image handler but not fine with image handler. The preview_info.php file calls for the small image width and height.
Has anyone else noticed this or commented on it? Do you know what might be at work here?
I truthfully don't care but ran into a client who got really upset about it!
I only noticed this on one site, but for that particular site there's a ton of other customizations that were done to make a custom module work with IH4 so I never worried about it, and the client is okay with the preview not showing the image as long as the product on the customer-side shows the image correctly.. I just tried on two other random sites and the image preview works.. (not a real link below.. just wanted to show that this is the page that I am on when I see the image preview)
http :// testsite(dot)com/MY_ADMIN/product(dot)php?cPath=155_151&product_type=1&action=new_product_preview
-
Re: IH4 v4.1 has been submitted to the downloads section..
I have two identical installations on my local server. They are pretty identical any way. One has IH. One does not. They both squish the image.
I have always though that this was a Zen issue rather than a IH issue but could be persuaded. As everyone has said it really has never been a big enough issue for that much attention.
-
Re: IH4 v4.1 has been submitted to the downloads section..
That's really interesting because I just thought it was a continuing issue as well. I'm going to test on a new installation and check the before and after and see if it changes after just the installation of IH.
-
Re: IH4 v4.1 has been submitted to the downloads section..
And also I don't think that the handle_image hook exists in admin. So I don't think that IH does anything at all with images in admin. If you look at the source of the image I would guess that it is not an IH cached version?
So, I think it is an issue with Zen.
-
Re: IH4 v4.1 has been submitted to the downloads section..
If it bothers you then you can just replace the SMALL_IMAGE_HEIGHT with '' and that should give you a image that is scaled proportionately. I think that will work ....
-
Re: IH4 v4.1 has been submitted to the downloads section..
Okay, I did install image handler in a fresh install of 1.5.1 and it's fine before and after. Yeah, zen cart problem. Very strange. And no, I really don't care but it did tweak my interest.
Thanks everyone!
-
Re: IH4 v4.1 has been submitted to the downloads section..
Quote:
Originally Posted by
delia
Okay, I did install image handler in a fresh install of 1.5.1 and it's fine before and after. Yeah, zen cart problem. Very strange. And no, I really don't care but it did tweak my interest.
Thanks everyone!
Yep I figured it was a Zen Cart issue.. Like I said my client is okay with it as long as on the shop side the images are correctly displaying..
BTW, off topic.. I "borrowed" ('cause stealing is such a harsh word:laugh:) some things from one of your site posts and included them in the recently submitted version of COWOA.. Just wanted to thank you for that.. :smile:
-
Re: IH4 v4.1 has been submitted to the downloads section..
Ah, yes, open source is a lovely thing, isn't it? Though the mod I made is a paid mod only, I always expect someone to appropriate or "borrow" from stuff eventually, specially when I explain the whole thing in a blog post! That particular thing though is a must I think going forward for Zen Cart itself. So you are very welcome!
-
Re: IH4 v4.1 has been submitted to the downloads section..
Quote:
Originally Posted by
delia
Ah, yes, open source is a lovely thing, isn't it? Though the mod I made is a paid mod only, I always expect someone to appropriate or "borrow" from stuff eventually, specially when I explain the whole thing in a blog post! That particular thing though is a must I think going forward for Zen Cart itself. So you are very welcome!
Yes this is true.. I would never borrow your paid mod.. (that would be rude) ONLY your words and wisdom ma'am!! :smile: The blog post was a HUGE help and spot on!! Thanks for always sharing..
-
Re: IH4 v4.1 has been submitted to the downloads section..
I'm just thrilled you read it!
-
Re: IH4 v4.1 has been submitted to the downloads section..
Quote:
Originally Posted by
delia
I'm just thrilled you read it!
Don't you know I am stalking you!!!:laugh:
(and before anyone get's creeped out.. IT'S A JOKE!!!)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Did you follow the instructions.. (the part where it tells you how to turn it on after you install it??)
Yes I followed all the instructions but still no result :o
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Sjoukito
Yes I followed all the instructions but still no result :o
Then I suggest rolling back to your pre-install state and start your install over.. Without an error, it's hard to say what happened..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Then I suggest rolling back to your pre-install state and start your install over.. Without an error, it's hard to say what happened..
Rolling back to my pre-install state is not really an option as I found this, let's call it a bug, after I installed several other plug-ins and made a shipload of changes to the template etc.
Maybe this description helps:
First I go to this page: www.site.nl/***admin***/categories.php?cPath=1. Then I click on the Imagehandler button underneath the text "Action" between the copy and attribute button. Then I end up at this page: http://www.site.nl/***admin***/image..._category_id=1, see the attachment to this post.
At that page I get this message: No Image Handler information found.
The strange thing is that once I click at the link "Image Manager" (page: admin/image_handler.php?page=manager) I can add an additional image to the products in the first category, but not in any of the other category. Once I select any of the categories other than the first one, I'm sent back to the image handler main page. However, after I'm sent back I get this url: admin/image_handler.php?current_category_id=10&products_filter=1273&action=new_cat
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Sjoukito
Rolling back to my pre-install state is not really an option as I found this, let's call it a bug, after I installed several other plug-ins and made a shipload of changes to the template etc.
Maybe this description helps:
First I go to this page:
www.site.nl/***admin***/categories.php?cPath=1. Then I click on the Imagehandler button underneath the text "Action" between the copy and attribute button. Then I end up at this page:
www.site.nl/***admin***/image_handler.php?products_filter=1273¤t_category_id=1, see the attachment to this post.
At that page I get this message: No Image Handler information found.
The strange thing is that once I click at the link "Image Manager" (page: admin/image_handler.php?page=manager) I can add an additional image to the products in the first category, but not in any of the other category. Once I select any of the categories other than the first one, I'm sent back to the image handler main page. However, after I'm sent back I get this url: admin/image_handler.php?current_category_id=10&products_filter=1273&action=new_cat
It's a one off problem and I haven't any ideas as to what the issue is with your setup.. Not being able to roll back only makes this a little more tedious.. I would suggest that you need to manually remove all the IH4 files and re-upload the fileset again and try doing the install over again..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi,
I noted that after installing IH 4 on the top of a standard Zen Cart 1.5.1, the webshop administrator can't access anymore to update an existing product or add a new one. There is no problem to browse all the categories and subcategories though. So, the denial comes only when trying to access the product form itself to update the product info. Superuser has no problems to edit and add new products.
There hasn't been done anything else than installed the IH4 lately for the shop and before that administrator level could update products without a problem.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I just reinstalled the whole thing and it finally works, now Ill just have to get the other plug ins running again :P
Thanks for the help
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
ellivir
Hi,
I noted that after installing IH 4 on the top of a standard Zen Cart 1.5.1, the webshop administrator can't access anymore to update an existing product or add a new one. There is no problem to browse all the categories and subcategories though. So, the denial comes only when trying to access the product form itself to update the product info. Superuser has no problems to edit and add new products.
There hasn't been done anything else than installed the IH4 lately for the shop and before that administrator level could update products without a problem.
kinda need more info here.. what specific URL are they accessing and do you get a specific access denial error?? And what happens when you grant this profile access to IH4?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Sjoukito
I just reinstalled the whole thing and it finally works, now Ill just have to get the other plug ins running again :P
Thanks for the help
Awesome...
-
Re: Image Handler 4 Support Thread
Hi DivaVocals,
My Zen Cart version is v1.5.0
My admin panel broke whenever I upload:
YOUR_ADMIN>includes>extra_configures>bmz_image_handler_conf.php
YOUR_ADMIN>includes>extra_configures>bmz_io_conf.php
YOUR_ADMIN>includes>functions>extra_functions>functions_bmz_image_handler.php
YOUR_ADMIN>includes>functions>extra_functions>functions_bmz_io.php
Any clue?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
jessica_aw
Hi DivaVocals,
My Zen Cart version is v1.5.0
My admin panel broke whenever I upload:
YOUR_ADMIN>includes>extra_configures>bmz_image_handler_conf.php
YOUR_ADMIN>includes>extra_configures>bmz_io_conf.php
YOUR_ADMIN>includes>functions>extra_functions>functions_bmz_image_handler.php
YOUR_ADMIN>includes>functions>extra_functions>functions_bmz_io.php
Any clue?
nope. And without more details like what exactly do you mean by "my admin broke". Or error messages I can't begin to guess what the issue might be. You will need to provide a lot more information than you have as this is not a problem that has been reported previously. Meaning that without a pattern I can't replicate this and therefore I can't help you. Please provide more details and we can go from there
-
Re: Image Handler 4 Support Thread
Thanks for getting back with me, DivaVocals.
Whenever I uploaded those files, the admin page turn blank. No error message.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
jessica_aw
Thanks for getting back with me, DivaVocals.
Whenever I uploaded those files, the admin page turn blank. No error message.
The blank page would mean that an error log has probably been generated.. Need to know what the error log file says..
-
Re: Image Handler 4 Support Thread
I don't see any error log for yesterday when I got the blank page. At least not under my public_html folder.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
jessica_aw
I don't see any error log for yesterday when I got the blank page. At least not under my public_html folder.
I mean the store error log not your host's error log.. Suggest reading through the FAQs as you begin working with Zen Cart.. Solutions to most common issues can be found there. Start with this article as it gives you guidelines on how to resolve blank pages issues and tells you where the stores error log files are located..
http://www.zen-cart.com/content.php?124-i-am-getting-a-blank-page-(or-blank-part-of-a-page)
once you locate the error logs that were mostly likely generated, then post the contents of the log files so that we can see what the issue might be..
-
Re: Image Handler 4 Support Thread
Thank you DivaVocals. I must have uploaded some files into the wrong directories yesterday.
I did it again after your last response. And it works. Hurray!!!
Thank you for your contribution for the forum.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
jessica_aw
Thank you DivaVocals. I must have uploaded some files into the wrong directories yesterday.
I did it again after your last response. And it works. Hurray!!!
Thank you for your contribution for the forum.
You're very welcome.. the usual cause for unknown issues can usually be traced to an installation error.. Glad you got it all worked out..:smile:
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
kinda need more info here.. what specific URL are they accessing and do you get a specific access denial error?? And what happens when you grant this profile access to IH4?
They are excessing their administration url in the style like this:
http:///www.webshopaddress12345.com/....php?cPath=1_9
(this they can still see, a category list but clicking any product here, comes an "denied" path like the link below)
Denied path that comes:
http://www.webshopaddress12345.com/s...ath/denied.php
The Denied Path has a text:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
Before installing the IH4 these same normal product update actions worked. The superuser still works but this other administrative user not. This profile has the access permission for the IH4 as well.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
ellivir
They are excessing their administration url in the style like this:
http:///www.webshopaddress12345.com/....php?cPath=1_9
(this they can still see, a category list but clicking any product here, comes an "denied" path like the link below)
Denied path that comes:
http://www.webshopaddress12345.com/s...ath/denied.php
The Denied Path has a text:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
Before installing the IH4 these same normal product update actions worked. The superuser still works but this other administrative user not. This profile has the access permission for the IH4 as well.
Do they have access to products?? Do you have any other modules installed which would affect access to products??
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Do they have access to products?? Do you have any other modules installed which would affect access to products??
Permission to access the products yes, and can see categories and subcategories but ONLY WHEN clicking the product on the category page in order to open the product form, it goes to this denied.php page instead. There should be nothing else affecting on this. CKEditor has been there already before and the administrator was successfully updating the product descriptions using it. The administrator person was updating the products just few hours before IH4 was installed, using her own profile, and no problem arise then. Superuser continues to be able to update the products.
The only thing affecting on this very page should be the changes for the category listing that IH4 needs to add the icon there. Should I replace that with the original and check if that helps?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
If I was you I would back up your version of category_product_listing.php.
Then I would hover over a 'problem' link on the page and note down what address the link is pointing at.
Then I would install the default version fo category_product_listing.php. Check to see if the problem still exists. If it does then you can compare the URL that the first page was pointing at to the URL the default version points at.
I suspect that you are going to find that this is not to do with IH but lets wait and see.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
niccol
If I was you I would back up your version of category_product_listing.php.
Then I would hover over a 'problem' link on the page and note down what address the link is pointing at.
Then I would install the default version fo category_product_listing.php. Check to see if the problem still exists. If it does then you can compare the URL that the first page was pointing at to the URL the default version points at.
I suspect that you are going to find that this is not to do with IH but lets wait and see.
Changing back the original category_product_listing.php didn't help with the issue.
The address is normal in both of them, it changes to the denied address only after clicking the product row.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
ellivir
Changing back the original category_product_listing.php didn't help with the issue.
The address is normal in both of them, it changes to the denied address only after clicking the product row.
Well as niccol stated that would indicate an issue having nothing to do with IH4 (which I also suspected..)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
So, you are saying that the problem exists either with the default category_product_listing.php file or the IH version of that file.
Is that correct? If it is it suggests that it is not a IH issue.
The only thing that it could be is a javascript conflict of some sort. When you click the row that is triggered by javascript. Kind of difficult to explain how to fault find that in a forum post to be honest. Are you running web developer tools or something similar? If that is greek to you then post again. And we will try and talk you through it. What browser are you using?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I found this in the error logs (maybe I have misplaced something else when installing the IH4):
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_MY_STORE in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_IMAGES in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_CUSTOMER_DETAILS in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_SHIPPING_PACKAGING in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
There is these constants in the language file though, so can't understand what is actually missing but this could be creating the issue, right?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
ellivir
I found this in the error logs
<snip>
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_MY_STORE in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
<snip>
There is these constants in the language file though, so can't understand what is actually missing but this could be creating the issue, right?
What a dilemma. You and the error logs are producing conflicting reports. One of you is wrong.
In cases like this, my money is on the computer as producing the most valid report, therefore I must conclude that if these constants ARE in the language file, then it isn't the same language file that the computer is using.
Incidently, I've just recently fixed a near identical error on another customers website, which turned out to be the result of an incomplete merge of the english.php files during a V1.3.8a -> V1.5.1 upgrade. Actually, I suspect the merge went fine, but the modified file didn't get uploaded for some reason).
These errors are trivial to fix, but fixing it will not solve your problem. (missing constants are usually harmless, and just make things look bad).
The fact that these errors do exist though is usually a very good indication that there are probably some other files that also didn't get a proper upgrade, and it will be one of those that will be causing your current issues.
The difficult part here is that *we* have no way of knowing which files these may be.. You'll need to do a compare between your installation and the distribution .zip files.
Cheers
Rod
ps. As others have said. Not really an IH4 issue.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
RodG
What a dilemma. You and the error logs are producing conflicting reports. One of you is wrong.
In cases like this, my money is on the computer as producing the most valid report, therefore I must conclude that if these constants ARE in the language file, then it isn't the same language file that the computer is using.
Incidently, I've just recently fixed a near identical error on another customers website, which turned out to be the result of an incomplete merge of the english.php files during a V1.3.8a -> V1.5.1 upgrade. Actually, I suspect the merge went fine, but the modified file didn't get uploaded for some reason).
These errors are trivial to fix, but fixing it will not solve your problem. (missing constants are usually harmless, and just make things look bad).
The fact that these errors do exist though is usually a very good indication that there are probably some other files that also didn't get a proper upgrade, and it will be one of those that will be causing your current issues.
The difficult part here is that *we* have no way of knowing which files these may be.. You'll need to do a compare between your installation and the distribution .zip files.
Cheers
Rod
ps. As others have said. Not really an IH4 issue.
Quote:
Originally Posted by
ellivir
I found this in the error logs (maybe I have misplaced something else when installing the IH4):
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_MY_STORE in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_IMAGES in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_CUSTOMER_DETAILS in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant BOX_CONFIGURATION_SHIPPING_PACKAGING in /home2/customer/public_html/shop/admn/includes/functions/admin_access.php on line 799
There is these constants in the language file though, so can't understand what is actually missing but this could be creating the issue, right?
At this point your issue is off topic for this support thread.. the issues you are having are not related to IH4.. Please follow Rod's suggestions, and if you are still having issues, you will need to start a separate forum thread on the matter if you want community support/assistance on this..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Okay, this is probably a simple fix, but I don't see where to take the text off the hover image. If you hover too long, you also get the tool tip, so I don't want to duplicate this.
Thanks,
chadd
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I had IH4 working fine but somehow I messed up things in my store this week and decided the best way to fix it would be to delete the includes folder and re install the includes folder. Well that fixed the problem but it caused a lot of new ones, one of which is it broke the IH4, I have added the files from the IH4 download's includes folder to my new stores includes folder but that didnt fix it. Is there something else I need to do or did I probably do it wrong? Thanks
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I have my problem fixed, Thanks
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Sjoukito
Rolling back to my pre-install state is not really an option as I found this, let's call it a bug, after I installed several other plug-ins and made a shipload of changes to the template etc.
Maybe this description helps:
First I go to this page:
www.site.nl/***admin***/categories.php?cPath=1. Then I click on the Imagehandler button underneath the text "Action" between the copy and attribute button. Then I end up at this page:
www.site.nl/***admin***/image_handler.php?products_filter=1273¤t_category_id=1, see the attachment to this post.
At that page I get this message: No Image Handler information found.
The strange thing is that once I click at the link "Image Manager" (page: admin/image_handler.php?page=manager) I can add an additional image to the products in the first category, but not in any of the other category. Once I select any of the categories other than the first one, I'm sent back to the image handler main page. However, after I'm sent back I get this url: admin/image_handler.php?current_category_id=10&products_filter=1273&action=new_cat
Same issue on a site I am working on. I'll try the uninstall and re-install and report back.
I loved this mod before the upgrade to v1.5 - missing the "hover = fly out" which a lots of my clients really liked.
Thanks,
Tina
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
charmedbytina2
Same issue on a site I am working on. I'll try the uninstall and re-install and report back.
I loved this mod before the upgrade to v1.5 - missing the "hover = fly out" which a lots of my clients really liked.
Thanks,
Tina
If you are referring to the image hover, it's not missing at all..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Ok, installed IH4 on the clean system and everything was working well, added 2 slide shows, 1 in the header that shows on every page, and 1 on the home page, still all was working well, decided we didn't like the transitions so i uninstalled the 2 slide shows in favor of another, all of a sudden i noticed i lost all my hover images. after making sure i didn't remove any files than were needed, i discovered that the images were in fact on the page, they just weren't showing, never turning visible. when hovering over an image in the specials on the right nav column, a left-right slide bar would appear indicating an element out of viewing area.
on the product listing page, if i enter the hover from the bottom right side, the popup will show, this happens with the first 2 images, then none after that in the list will show. in the trailimageid div, the correct image is there and everything except visible=hidden.
another weird issue is that var currentimageheight = 400; however every image is 420px high and 725px wide?
any help appreciated, the link:
http://surferweb.com/ojlparts/index....dex&cPath=1_16
Jeff
-
Re: Image Handler 4 (for v1.5.x) Support Thread
You have a version of jQuery easing loading before jQuery. Don't know if that is something to do with cloudflare - possibly. But whatever the reason is you need to solve that issue. It will mess up the javascript on the page. Can't give you much help with that as I don't know what you have done exactly.
It may not be the only problem but while it is there finding anything else will be impossible.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
niccol
You have a version of jQuery easing loading before jQuery. Don't know if that is something to do with cloudflare - possibly. But whatever the reason is you need to solve that issue. It will mess up the javascript on the page. Can't give you much help with that as I don't know what you have done exactly.
It may not be the only problem but while it is there finding anything else will be impossible.
<script type="text/javascript" src="includes/templates/ojl/jscript/jscript_imagehover.js"></script>
<script type="text/javascript" src="includes/templates/ojl/jscript/jscript_rollovers.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script src="http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js" type="text/javascript"></script>
This is the way Zen cart outputs it in viewsource, does zen cart read them in alphabetical order?
Under my template/jscript folder:
jscript_imagehover.js
jscript_jquery.min.js
jscript_rollovers.js
How would i change the loading order?
Thanks for the help
Jeff
-
1 Attachment(s)
Re: Image Handler 4 (for v1.5.x) Support Thread
What I am seeing is in the attachment. Which is actually slightly different to before. But there is definitely an issue with jquery.easing. Which may or may not be due to cloudflare I'd guess. I'd disable cloudflare and see what you get. But I don't know anything about how that works! But as I say I think you should start a new thread for this as it will clutter up the IH thread with stuff that really does not help most IH users.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Ok, disabled that still not working, im thinking this is a positioning issue, something is throwing off the hover cords. I read a few pages back about issues with FEC adon, that could be an issue too
-
Re: Image Handler 4 (for v1.5.x) Support Thread
ok, fresh zen cart install, no other java or jquery running in the front end, and still, wont trigger popup until you enter from the bottom left of the first 2 or 3 images in the list, then none after that, inspecting the page shows the image div has content, it just never turns from hidden?
This is really driving me nuts, wasted a half a day already, any help? anyone?
link: http://surferweb.com/ojlparts2/index...=index&cPath=1
Thanks,
Jeff
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
ok, fresh zen cart install, no other java or jquery running in the front end, and still, wont trigger popup until you enter from the bottom left of the first 2 or 3 images in the list, then none after that, inspecting the page shows the image div has content, it just never turns from hidden?
This is really driving me nuts, wasted a half a day already, any help? anyone?
link:
http://surferweb.com/ojlparts2/index...=index&cPath=1
Thanks,
Jeff
It's hard to help with issues that haven't been reported before and can't be duplicated.. I did notice that all of your images are GIF's. Not a format you should be using for photos, but I'll spare you the "why you shouldn't use GIF's for photos speech.. Given that you seem to have a one off situation happening, my gut is telling me that the heart of the issue is some server setting.. someone else will have to chime in what kind of server issue could be the issue.. Your images could also be the issue.. I would suggest trying to see if the problem happens if you use a different filetype (JPG, PNG).. Set up a test category, add a few products with product images that are NOT GIFs..
-
Re: Image Handler 4 Support Thread
Hello,
Once I change the Image - Product Listing Width or Height my IH4 does not function anymore.
What am I doing wrong?