If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Started by lat9 on 15 Oct 2017, 3:54 PM · Views: 160,515

Results 121 to 140 of 774
1 Oct 2018, 6:01 AM
#121
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

In case you're going to use it, the "minified" css file actually isn't, I ran it through a minifier.

Attachment #18061


Zen Cart and it's community are the best!!

1 Oct 2018, 10:34 AM
#122
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

OK, thanks for that.

The main difference I see between the hover-script whose link I posted and the current imagehover.js is that the "new" one displays the hover popup at a fixed position, relative to the base image, while imagehover attempts to position the popup-image (again, relative to the base image) within the current page-view.

I'm not sure if that's a big issue, but wanted to "get it out there".

16 Nov 2018, 7:24 PM
#123
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I am using IH 5.1.0 w/ zc 1.5.4. Using Mars template. No error logs. I have searched around for a few hours and found numerous mentions of the older version of IH having this issue, but nothing as of recent. My issue is I cannot get the multiple/additional images to display on the product info page. I have a broken link. I noticed when checking the source code that it does say img src (unknown). Any help would be greatly appreciated. site is: hyendfurniture.com. Hope I didn't miss anything. Thank you for your help !

16 Nov 2018, 7:33 PM
#124
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

creyesx6:

I am using IH 5.1.0 w/ zc 1.5.4. Using Mars template. No error logs. I have searched around for a few hours and found numerous mentions of the older version of IH having this issue, but nothing as of recent. My issue is I cannot get the multiple/additional images to display on the product info page. I have a broken link. I noticed when checking the source code that it does say img src (unknown). Any help would be greatly appreciated. site is: hyendfurniture.com. Hope I didn't miss anything. Thank you for your help !
What you missed is that IH 5.0.0+ is compatible with Zen Cart 1.5.5 and later.

16 Nov 2018, 7:37 PM
#125
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I could not find the compatible version w/ 1.5.4. Can you tell me where to find?

16 Nov 2018, 7:42 PM
#126
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Never mind, I will search on Github.

17 Nov 2018, 8:40 PM
#127
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I'm going round and round with this.. Image Handler is catching images, works great.. until you hit Larger Image and Javascript calls the popup..

Popup is blank... If I turn it off.. it's blank now as well.. this was not the case before install..

I'll keep searching for what it is.. but anyone have a suggestion?

Thanks!

Using Responsive Classic
Zen Cart 1.5.5f
Ultimate URLS.. Turned off still same effect

17 Nov 2018, 9:45 PM
#128
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Any debug-logs generated?

18 Nov 2018, 2:11 AM
#129
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Debug Log for Image handler

extra_functions/functions_bmz_image_handler.php at line number 106
calculate_size(0, 0), getimagesize returned 800 x 708.
resizing is allowed.
get_resized_image(0, 0, , )
calculate_size(750, 550), getimagesize returned 800 x 708.
getCacheName(8292328jpg, .image.621x550.jpg), returning /var/www/vhosts/gulfstatessupply.com/httpdocs/bmz_cache/8/8292328jpg.image.621x550.jpg.
... returning bmz_cache/8/8292328jpg.image.621x550.jpg

I'm guessing that the get_resized_image(0,0, , ) is the problem... looking into it.

18 Nov 2018, 11:11 AM
#130
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

That's an IH-debug log, which simply traces its steps through the image-generation process. Are there any PHP errors (myDEBUG*.log) files being generated?

18 Nov 2018, 4:23 PM
#131
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

And now it's started working.. I did a bunch of reinstalls.. but the file that seems to be the culprit is html_output.php in the functions folder.. I went back to version 1.5.4 and popped that in there and it started working..

Thanks!

18 Nov 2018, 5:46 PM
#132
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

brian70809:

And now it's started working.. I did a bunch of reinstalls.. but the file that seems to be the culprit is html_output.php in the functions folder.. I went back to version 1.5.4 and popped **that **in there and **it **started working..

Thanks!
Hmm, IH-5 doesn't include html_output.php in its distribution. I'm unclear as to what **that **and **it **refer to in your post.

18 Nov 2018, 8:27 PM
#133
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

Hmm, IH-5 doesn't include html_output.php in its distribution. I'm unclear as to what **that **and **it **refer to in your post.

You are correct.. that was for Ultimate URL's.. I had two problems going on.. Sorry about that.. I was extremely tired and mixing the two up.. I do not have any idea why my images started to work. I took all the addons off and then reinstalled them in a different order because sometimes that works.. And it did. Now, it may be due to the fact I followed each step better...

The error logs did not give any php errors.. I check that anytime something is going haywire because it does normally point you in the right direction. I'm at a loss as to what was going on.

3 Dec 2018, 3:17 AM
#134
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Hi I have a new installation currently running on xampp and installed the latest image handler. I created a test product with 4 images (see image):
Attachment 18148
But on my product page the main image is not showing (see image):
Attachment 18149
The main image shows in the "New Products" side box.
Any reason why it does not display on the main product page?

Many thanks,

Goshawk

Time is but an illusion, there is only "now"!

3 Dec 2018, 11:54 AM
#135
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

@Goshawk, did you merge/update your store's template directory to make the IH-required changes to /includes/modules/YOUR_TEMPLATE/main_product_image.php?

4 Dec 2018, 5:23 AM
#136
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Yes I have,

Here is the code```

<?php /** * main_product_image module * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: main_product_image.php 4663 2006-10-02 04:08:32Z drbyte $ */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } // ----- // This notifier lets an observer know that the module has begun its processing. // $GLOBALS['zco_notifier']->notify('NOTIFY_MODULES_MAIN_PRODUCT_IMAGE_START'); $products_image_extension = substr($products_image, strrpos($products_image, '.')); $products_image_base = str_replace($products_image_extension, '', $products_image); $products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension; $products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension; // ----- // This notifier lets an image-handling observer know that it's time to determine the image information, // providing the following parameters: // // $p1 ... (r/o) ... A copy of the $products_image value // $p2 ... (r/w) ... A boolean value, set by the observer to true if the image has been handled. // $p3 ... (r/w) ... A reference to the $products_image_extension value // $p4 ... (r/w) ... A reference to the $products_image_base value // $p5 ... (r/w) ... A reference to the medium product-image-name // $p6 ... (r/w) ... A reference to the large product-image-name. // // If the observer has set the $product_image_handled flag to true, it's indicated that any of the // other values have been updated for separate handling. // $main_image_handled = false; $GLOBALS['zco_notifier']->notify( 'NOTIFY_MODULES_MAIN_PRODUCT_IMAGE_FILENAME', $products_image, $main_image_handled, $products_image_extension, $products_image_base, $products_image_medium, $products_image_large ); if ($main_image_handled !== true) { // check for a medium image else use small if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) { $products_image_medium = DIR_WS_IMAGES . $products_image; } else { $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_medium; } // check for a large image else use medium else use small if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) { if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) { $products_image_large = DIR_WS_IMAGES . $products_image; } else { $products_image_large = DIR_WS_IMAGES . 'medium/' . $products_image_medium; } } else { $products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large; } /* echo 'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' . 'Medium ' . $products_image_medium . '<br><br>' . 'Large ' . $products_image_large . '<br><br>'; */ // to be built into a single variable string } $GLOBALS['zco_notifier']->notify('NOTIFY_MODULES_MAIN_PRODUCT_IMAGE_END'); ```

Time is but an illusion, there is only "now"!

4 Dec 2018, 12:12 PM
#137
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

@Goshawk, a link to the site displaying this behavior will help me help you.

4 Dec 2018, 9:58 PM
#138
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Thanks, but I cannot give you a link, as the site is currently only running on my pc in xampp.
I will check all the files related to the image displays as well as the products, hopefully I will find the problem.

Thanks for your response, I love IH and have used it in most websites I have built since 2006.

This site is also using twitch wholesale module, it is perhaps related to this plug-in, and I may have overwritten a file without realising.

Goshawk.

Time is but an illusion, there is only "now"!

6 Dec 2018, 4:36 AM
#139
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I found the problem:

Believe it or not, it was related to includes/configure.php

I manually set the parameters inside the config file and here is the wrong code:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

When I removed the forward slashes the problem disappeared. I noticed that the url was localhost/shop//page......

Just thought I post my error here just in case someone else has the same problem.

Goshawk

Time is but an illusion, there is only "now"!

6 Dec 2018, 11:00 AM
#140
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Goshawk:

I found the problem:

Believe it or not, it was related to includes/configure.php

I manually set the parameters inside the config file and here is the wrong code:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

> 
> When I removed the forward slashes the problem disappeared. I noticed that the url was localhost/shop//page......
> 
> Just thought I post my error here just in case someone else has the same problem.
> 
> Goshawk

Actually it would be the extra slash you have at the end of HTTP_SERVER and/or HTTPS_SERVER. 

DIR_WS_CATALOG should always end with a slash which means that if it exists on its own, that it is a slash. Also possible that DIR_WS_IMAGES begins with an extra slash, but less likely for it to be there.

The idea is that a URI that perhaps did not need to be https:// would be generated by: 
HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . 'filename.jpg'

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...