-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Okay, sorry, glad that I described what I saw. So, with the eyeitalia site, I see that the image is 250x600 with a bmz resize of 600x600 and the border of the window is to the sides of the image at that dimension. So, what would be expected to be different? Should the height be 550?
With the code copied, which version of the all caps height and width was used? could you try replacing with the $ih variable(s)? $ihConf['large']['width'] and $ihConf['large']['height'] respectively.
When you click the large image link on the EyeItalia site, you will see that the popups for the large images are not resizing to the size of the large image (as they should)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
(Timed out on edit) Also, be sure that you are using the code snippets (with applicable replacements) that were posted to this forum. I realize I may have sent some code earlier, but I would say that the code has been simplified and as said seems to be working on my site at whatever size I set the maximum to in the admin area.
I used the code you posted to this thread.. I updated the additional_images.php module file with the code you posted, and reverted the tpl_main_image.php popup file to the version in the IH4 v4.3.1 fileset.. The result is that the popup DOES show the correct image from the bmz_cache instead of the "no image" product picture.. The problem is that the popup window does not re-size to match the size of the image displayed in the popup.
additional images code used
Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image(addslashes($base_image), addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
// Link Preparation:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . str_replace($products_image_large, urlencode(addslashes($products_image_large)), $large_link) . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
$noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
// $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
$link = $script_link . "\n " . $noscript_link;
// $link = $alternate_link;
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => "\n " . $link);
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
} // end for loop
Finally a link where you can see the errant popup behavior:
http://eitestsite(dot)eyeitalia(dot)...roducts_id=331
-
1 Attachment(s)
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
And again.. this is not normal behavior.. So you either have something configured incorrectly or you have uploaded images incorrectly.. Please tell me.. Do you see a "Delete" button below the small, medium, or large images (it would be just below the image sizes you see) in the IH4 admin
Ummm yeah we would see it on the front end which is why we REPEATEDLY ask people to post links to their site.. One image or twelve, we can still see the behavior.. So help us help you by providing the information we ask for..
OK, the link to the store is http://www.augustica.com/Store/index.php
To answer your send question about the delete button, I am attaching a screenshot:
Attachment 12954
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Can't see this screenprint.. a yes or no response was all that was needed..
I suggest deleting the image and re-uploading it, and tell us what happens..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Can't see this screenprint.. a yes or no response was all that was needed..
I suggest deleting the image and re-uploading it, and tell us what happens..
No, there is no delete button immediately below images. The whole horizontal area from the left of the screen to the right is a clickable hyperlink. If I click on the hyperlink (or any of the three images), then I am presented with three buttons - edit, delete, and new file.
I already deleted and re uploaded image several times. The result is the same - all three images are of the same size.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply.
I know the size of the images because IH4 shows the size of each image below the image. I DO NOT insert three images, I only insert one image (default one) and it is my large image with the size of 150K. Again, in the first installation of the IH4, I saw that all three images had different sizes. Not in this installation. In this installation all three images have the size of 150K.
Posting a link to the product section will not help. First, there is only one product and one image. Second, you would not know that there is a problem by looking at the image at the front of the store. The problem is visible only at the control panel because IH4 shows that ALL three images (small, medium, and large) have the same size of 150K.
Here is the copy of the Image settings:
Title Value Action
Small Image Width 150
Small Image Height
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 150
Subcategory Image Height
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 150
Image - Shopping Cart Height
Category Icon Image Width - Product Info Pages 150
Category Icon Image Height - Product Info Pages
Top Subcategory Image Width 150
Top Subcategory Image Height
Product Info - Image Width 400
Product Info - Image Height
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 200
Image - Product Listing Height
Image - Product New Listing Width 200
Image - Product New Listing Height
Image - New Products Width 200
Image - New Products Height
Image - Featured Products Width 200
Image - Featured Products Height
Image - Product All Listing Width 200
Image - Product All Listing Height
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH small images filetype no_change
IH small images background 255:255:255
IH small images compression quality 85
IH small images watermark no
IH small images zoom on hover yes
IH small images zoom on hover size Medium
IH medium images filetype no_change
IH medium images background 255:255:255
IH medium images compression quality 85
IH medium images watermark no
IH large images filetype no_change
IH large images background 255:255:255
IH large images compression quality 85
IH large images watermark no
IH large images maximum width 1050
IH large images maximum height 770
IH watermark gravity Center
Thank you for your attention to this problem.
You have the image hover turned on, but you have not followed the steps in the readme for configuring it properly.. The cached images are not showing (the original image is). Tells me that IH4 is not installed correctly.. Suggest double checking your install.. some or all of the modified files IH4 needs to re-size and correctly pull images from your bmz_cache folder are not in place..
This is a straightforward install, and if you review this support thread, you will see that the issues you are reporting are unique to your store.. So the BEST thing to do at this point is to rollback to a pre-IH4 install state and start over.. OR perhaps you might consider paying someone to help you get this installed and properly configured for you..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
I used the code you posted to this thread.. I updated the additional_images.php module file with the code you posted, and reverted the tpl_main_image.php popup file to the version in the IH4 v4.3.1 fileset.. The result is that the popup DOES show the correct image from the bmz_cache instead of the "no image" product picture.. The problem is that the popup window does not re-size to match the size of the image displayed in the popup.
additional images code used
Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image(addslashes($base_image), addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
// Link Preparation:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . str_replace($products_image_large, urlencode(addslashes($products_image_large)), $large_link) . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
$noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
// $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
$link = $script_link . "\n " . $noscript_link;
// $link = $alternate_link;
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => "\n " . $link);
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
} // end for loop
Finally a link where you can see the errant popup behavior:
http://eitestsite(dot)eyeitalia(dot)...roducts_id=331
Okay, so I finally figured out what you have tried to tell me but I couldn't get into my thick head. Apparently the popup is coming in at a width that is too small and the image is being squashed from the sides. I was able to expand the width of the image and it began appearing as more appropriately expected.
At the moment, I am only guessing since I have not started with a fresh cart and applied IH4 to it, but one thing I see is that I have the following jscript_main.php file in the includes/modules/pages/popup_image directory, and am wondering if it has an effect because it seems to address some of the size issues described. I tried disabling the file from my site, but the resizing on my side still worked. I haven't experienced a "shrink" of the image and do not know where the value of 250 is coming from for the width. Also, the images that I get to appear on my site, if I were to shrink the window, the image doesn't shrink with it like how yours expands with the window until at least 600x600 and then shrinks again with a shrinking window.
Do you have the following jscript_main.php file installed in the includes/modules/pages/popup_image directory?
Code:
<?php
/**
* jscript_main
*
* @package page
* @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: jscript_main.php 3126 2006-03-07 03:09:40Z drbyte $
*/
?>
<script language="javascript" type="text/javascript"><!--
var i=0;
function resize() {
i=0;
// if (navigator.appName == 'Netscape') i=20;
if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
} else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
i=0; //This browser is Internet Explorer 6.x
} else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=25; //This browser is Firefox on Windows
} else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=45; //This browser is Mozilla on Windows
} else {
i=80; //This is all other browsers including Mozilla on Linux
}
if (document.documentElement && document.documentElement.clientWidth) {
// frameWidth = document.documentElement.clientWidth;
// frameHeight = document.documentElement.clientHeight;
imgHeight = document.images[0].height+40-i;
imgWidth = document.images[0].width+20;
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - imgWidth / 2;
var toppos = height / 2 - imgHeight / 2;
frameWidth = imgWidth;
frameHeight = imgHeight+i;
window.moveTo(leftpos, toppos);
// window.resizeTo(imgWidth, imgHeight);
window.resizeTo(frameWidth,frameHeight+i);
}
else if (document.body) {
window.resizeTo(document.body.clientWidth, document.body.clientHeight-i);
}
self.focus();
}
//--></script>
Not sure if this was supposed to be a part of the IH4 package or not, or if it was part of another installation, but it appears to handle some of what you are describing.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
You have the image hover turned on, but you have not followed the steps in the readme for configuring it properly.. The cached images are not showing (the original image is). Tells me that IH4 is not installed correctly.. Suggest double checking your install.. some or all of the modified files IH4 needs to correctly pull images from your bmz_cache folder are not in place..
OK, thank you. I know that something is rotten here. The first installation worked properly with all three images being different.
Tonight, I will re-upload IH4 file by file checking that all sizes of the files in the original folder are the same that the sizes of the files on server. It will take a couple of hours. I will be back. Thank you again for your help.
Do you think I have to uninstall IH4 and install it again or just overwrite the existing files on server one by one?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Okay, so I finally figured out what you have tried to tell me but I couldn't get into my thick head. Apparently the popup is coming in at a width that is too small and the image is being squashed from the sides. I was able to expand the width of the image and it began appearing as more appropriately expected.
At the moment, I am only guessing since I have not started with a fresh cart and applied IH4 to it, but one thing I see is that I have the following jscript_main.php file in the includes/modules/pages/popup_image directory, and am wondering if it has an effect because it seems to address some of the size issues described. I tried disabling the file from my site, but the resizing on my side still worked. I haven't experienced a "shrink" of the image and do not know where the value of 250 is coming from for the width. Also, the images that I get to appear on my site, if I were to shrink the window, the image doesn't shrink with it like how yours expands with the window until at least 600x600 and then shrinks again with a shrinking window.
Do you have the following jscript_main.php file installed in the includes/modules/pages/popup_image directory?
Code:
<?php
/**
* jscript_main
*
* @package page
* @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: jscript_main.php 3126 2006-03-07 03:09:40Z drbyte $
*/
?>
<script language="javascript" type="text/javascript"><!--
var i=0;
function resize() {
i=0;
// if (navigator.appName == 'Netscape') i=20;
if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
} else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
i=0; //This browser is Internet Explorer 6.x
} else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=25; //This browser is Firefox on Windows
} else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=45; //This browser is Mozilla on Windows
} else {
i=80; //This is all other browsers including Mozilla on Linux
}
if (document.documentElement && document.documentElement.clientWidth) {
// frameWidth = document.documentElement.clientWidth;
// frameHeight = document.documentElement.clientHeight;
imgHeight = document.images[0].height+40-i;
imgWidth = document.images[0].width+20;
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - imgWidth / 2;
var toppos = height / 2 - imgHeight / 2;
frameWidth = imgWidth;
frameHeight = imgHeight+i;
window.moveTo(leftpos, toppos);
// window.resizeTo(imgWidth, imgHeight);
window.resizeTo(frameWidth,frameHeight+i);
}
else if (document.body) {
window.resizeTo(document.body.clientWidth, document.body.clientHeight-i);
}
self.focus();
}
//--></script>
Not sure if this was supposed to be a part of the IH4 package or not, or if it was part of another installation, but it appears to handle some of what you are describing.
This is a default Zen Cart file.. it's not a part of the IH4 fileset, but if it is the source of the sizing issues, then it may need to be included with the appropriate modifications...
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
OK, thank you. I know that something is rotten here. The first installation worked properly with all three images being different.
Tonight, I will re-upload IH4 file by file checking that all sizes of the files in the original folder are the same that the sizes of the files on server. It will take a couple of hours. I will be back. Thank you again for your help.
Do you think I have to uninstall IH4 and install it again or just overwrite the existing files on server one by one?
You need to ROLL YOUR STORE BACK to a pre IH4 state (you did make a backup as suggested before installing right??) trying to delete and manually replace the files will NOT solve your issue.. Please take my advice and start over..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
This is a default Zen Cart file.. it's not a part of the IH4 fileset, but if it is the source of the sizing issues, then it may need to be included with the appropriate modifications...
Well, I see that IH4 modifies the popup_image_additonal version of that file, so I don't know yet if also needs to be included. I do see that there is a problem with jscript_imagehover.js on the problem site. Says line 172, code: 0, char: 1.
In the: includes/templates/custom_template/jscript/jscript_imagehover.js folder/file
I mean, looking at the source code as you probably already have, it looks like it is trying to call a window that will be the size of the image (600x600), but somewhere in the call to the new image, it drops the width for some reason/somehow.. :/
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Okay, so I finally figured out what you have tried to tell me but I couldn't get into my thick head. Apparently the popup is coming in at a width that is too small and the image is being squashed from the sides. I was able to expand the width of the image and it began appearing as more appropriately expected.
Yureka!! Yes the correct image is displayed, but the popup is not opening up to match the image size.. Yes you can manually resize the popup window, but the point is the popup window should open to the correct size to begin with.
http://eitestsite(dot)eyeitalia(dot)...ge.600x600.jpg
Quote:
Originally Posted by
mc12345678
At the moment, I am only guessing since I have not started with a fresh cart and applied IH4 to it, but one thing I see is that I have the following jscript_main.php file in the includes/modules/pages/popup_image directory, and am wondering if it has an effect because it seems to address some of the size issues described. I tried disabling the file from my site, but the resizing on my side still worked. I haven't experienced a "shrink" of the image and do not know where the value of 250 is coming from for the width. Also, the images that I get to appear on my site, if I were to shrink the window, the image doesn't shrink with it like how yours expands with the window until at least 600x600 and then shrinks again with a shrinking window.
Do you have the following jscript_main.php file installed in the includes/modules/pages/popup_image directory?
Not sure if this was supposed to be a part of the IH4 package or not, or if it was part of another installation, but it appears to handle some of what you are describing.
This file was never a part of the IH4 fileset, and it never had to be since the popup windows were never an issue.. However, if that's what is needed here to resolve the issue, then that's the way it has to be..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Well, I see that IH4 modifies the popup_image_additonal version of that file, so I don't know yet if also needs to be included. I do see that there is a problem with jscript_imagehover.js on the problem site. Says line 172, code: 0, char: 1.
In the: includes/templates/custom_template/jscript/jscript_imagehover.js folder/file
I mean, looking at the source code as you probably already have, it looks like it is trying to call a window that will be the size of the image (600x600), but somewhere in the call to the new image, it drops the width for some reason/somehow.. :/
IH4 only modifies the popup_image_additional header_php.php file, not the javascript files in those folders..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Well, I see that IH4 modifies the popup_image_additonal version of that file, so I don't know yet if also needs to be included. I do see that there is a problem with jscript_imagehover.js on the problem site. Says line 172, code: 0, char: 1.
In the: includes/templates/custom_template/jscript/jscript_imagehover.js folder/file
I mean, looking at the source code as you probably already have, it looks like it is trying to call a window that will be the size of the image (600x600), but somewhere in the call to the new image, it drops the width for some reason/somehow.. :/
Okay.. My apologies.. I think the popup issue on the EyeItalia site is unrelated to IH4, and may be a javascript conflict coming from my responsive template.. Standby.. Gonna try your new code on the client site where I first spotted the initial popup problem..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
You need to ROLL YOUR STORE BACK to a pre IH4 state (you did make a backup as suggested before installing right??) trying to delete and manually replace the files will NOT solve your issue.. Please take my advice and start over..
OK, thank you. I will do as you suggested and report back.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
IH4 only modifies the popup_image_additional header_php.php file, not the javascript files in those folders..
Yeah, after a third look at the affected files, you are correct, the header_php.php files are all that are affected. I could have sworn that I saw files with the jscript_main and IH modification names, but I was blatantly wrong. Still, (and I know you're off investigating) the request to show the image is one that indicates it is to have the size desired; however, yeah, something is interacting oddly after the call is made. Look forward to the local test results.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
OK, thank you. I know that something is rotten here. The first installation worked properly with all three images being different.
Tonight, I will re-upload IH4 file by file checking that all sizes of the files in the original folder are the same that the sizes of the files on server. It will take a couple of hours. I will be back. Thank you again for your help.
Do you think I have to uninstall IH4 and install it again or just overwrite the existing files on server one by one?
Diva has already replied; however, would like to say that there is no reason that the files would need to be uploaded one by one. This site identifies at least two ftp applications (names I can not remember at moment) that will upload each file until completion and it is possible to identify all files to be uploaded at once, and it/they will do so. Ie. there are many ftp programs that will hang and basically dump the file(s) or cause other issues with the uploads.
I do recall that I have experienced something similar before as well, though, but couldn't tell you the exact conditions that were in place. What happens if you upload that picture in the standard product entry location such as from the admin panel? The same thing, or do you see results that you were expecting?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Okay.. My apologies.. I think the popup issue on the EyeItalia site is unrelated to IH4, and may be a javascript conflict coming from my responsive template.. Standby.. Gonna try your new code on the client site where I first spotted the initial popup problem..
and..... drumroll please...
IT WORKS!!!
mc12345678 - YOU ARE THE MAN!!!! (I can't tell your gender by your screenname.. :laugh:)
Okay.. my apologies to mc12345678 for the last 5 pages of this thread.. It wasn't until you last post that it finally clicked that my responsive template is the cause of the popup window issue.. Probably a javascript conflict.. when I turned off the responsive template, the issue went away..
I just installed the modified additional_images.php module file on my client's live site (where I first discovered the issue) and BOBS YOUR UNCLE.... IT worked!!!
Before I package this up and submit it as an update, we do need others with the ORIGINAL issue ("no image" product image was displaying in the large image popup), to test and report their findings..
Working here: http://www(dot)consciousink(dot)com/...ies-p-112.html
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Diva has already replied; however, would like to say that there is no reason that the files would need to be uploaded one by one. This site identifies at least two ftp applications (names I can not remember at moment) that will upload each file until completion and it is possible to identify all files to be uploaded at once, and it/they will do so. Ie. there are many ftp programs that will hang and basically dump the file(s) or cause other issues with the uploads.
I do recall that I have experienced something similar before as well, though, but couldn't tell you the exact conditions that were in place. What happens if you upload that picture in the standard product entry location such as from the admin panel? The same thing, or do you see results that you were expecting?
Given the issue EHSI is having I still suggest a rollback and re-install..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
and..... drumroll please...
IT WORKS!!!
mc12345678 - YOU ARE THE MAN!!!! (I can't tell your gender by your screenname.. :laugh:)
Okay.. my apologies to mc12345678 for the last 5 pages of this thread.. It wasn't until you last post that it finally clicked that my responsive template is the cause of the popup window issue.. Probably a javascript conflict.. when I turned off the responsive template, the issue went away..
I just installed the modified additional_images.php module file on my client's live site (where I first discovered the issue) and BOBS YOUR UNCLE.... IT worked!!!
Before I package this up and submit it as an update, we do need others with the ORIGINAL issue ("no image" product image was displaying in the large image popup), to test and report their findings..
Working here:
http://www(dot)consciousink(dot)com/...ies-p-112.html
I need to add that I remember reporting to ckosloff that the additional images were an issue when IH was updated for 1.3.9.. I also remember that he and had a bit of back and forth on the matter because he didn't think that what I was reporting was an issue.. That is part of the reason the large image popup got rolled back to an old version from a prior version of Zen Cart to begin with.. I had NO IDEA at the time that this would leave the image popups subject to XSS vulnerabilities.. I just knew that the popups and additional images were not working correctly, and I thought I found a solution..
Anyway.. mc12345678 again.. thanks for your tenacity, and patience.. :smile:
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Given the issue EHSI is having I still suggest a rollback and re-install..
*nodding head in agreement* but was curious if the system responds differently based on "where" the image is input. Hopefully/expectedly after the reinstall it will work as foreseen, but at least then EHSI will have a deeper understanding of how it all fits together and works.
I did agree to the reinstall right? :) good luck.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
I need to add that I remember reporting to ckosloff that the additional images were an issue when IH was updated for 1.3.9.. I also remember that he and had a bit of back and forth on the matter because he didn't think that what I was reporting was an issue.. That is part of the reason the large image popup got rolled back to an old version from a prior version of Zen Cart to begin with.. I had NO IDEA at the time that this would leave the image popups subject to XSS vulnerabilities.. I just knew that the popups and additional images were not working correctly, and I thought I found a solution..
Anyway.. mc12345678 again.. thanks for your tenacity, and patience.. :smile:
Quite welcome, not to say that I didn't have a vested interest in resolving it. :) Thanks for reaching out for assistance.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Quite welcome, not to say that I didn't have a vested interest in resolving it. :) Thanks for reaching out for assistance.
No seriously.. NO WAY I would have ever been able to fix this.. NEVER!!! Thanks soooooo much!! NOW I am going to go get some lunch!!!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
All I would do is search through the post to write up a recap anyway.. So I'm gonna respectfully ask you to go back through the post..I'm on a mobile device right now (at a restaurant), and recapping things including the code on this tiny device will not be easy.. I promise the required changes are QUITE easy to follow.. The code changes is posted around page 78 or 79..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
No seriously.. NO WAY I would have ever been able to fix this.. NEVER!!! Thanks soooooo much!! NOW I am going to go get some lunch!!!
Well, you probably should get some rest too. I saw you were awake a long time. :P
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
The code originally posted and seeming to work is provided here below and at the associated link:
Quote:
Originally Posted by
mc12345678
So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.php:
Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 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: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
// $products_values->fields['products_image']
//Begin Image Handler changes 1 of 2
//the next line is commented out for Image Handler 3
if (file_exists($_GET['products_image_large_additional'])) {
//End Image Handler changes 1 of 2
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
//Begin Image Handler changes 2 of 2
//the next three lines are commented out for Image Handler 3
} else {
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
}
//End Image Handler changes 2 of 2
?>
</div>
</body>
The above code does a check for the existence of the file on the server, and goes to present an image which if the image path is wrong/a non-image on the server, would not display anything as indicated by Dr. Byte if I understood correctly.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Well, you probably should get some rest too. I saw you were awake a long time. :P
I was!!!! But first I gotta eat!!!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Awesome! @mc1234567 thank you for consolidating the current solution. I'll implement over the weekend.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Awesome! @mc1234567 thank you for consolidating the current solution. I'll implement over the weekend.
Wasn't anything to "consolidate" really.. simply some changes that needed to be made to the additional_images.php file to work properly with the new
tpl_main_page.php popup code included in the current IH4 fileset.. and FYI, you need to include the fix to the popup code that torvista posted earlier..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
The code originally posted and seeming to work is provided here below and at the associated link:
There is a small issue.. I'm getting errors coming from the additional_images.php.. Here's what the logs say:
Quote:
[23-Aug-2013 20:32:35 America/Phoenix] PHP Warning: Missing argument 5 for handle_image(), called in /xxxx/xxxxxx/xxxxxxxx/html/includes/modules/theme298/additional_images.php on line 86 and defined in /xxxx/xxxxxx/xxxxxxxx/html/includes/functions/extra_functions/functions_bmz_image_handler.php on line 51
Line 86 reads:
Code:
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
There is a small issue.. I'm getting errors coming from the
additional_images.php.. Here's what the logs say:
Line 86 reads:
Code:
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
That's a shame that it throughs an error considering it has a default value. Don't know if it might be a specfic php version thing or not, but should be able to put a comma after the height assignment. If still get errors, then , '' (comma and two single quotes.)
So close. :P
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
That's a shame that it throughs an error considering it has a default value. Don't know if it might be a specfic php version thing or not, but should be able to put a comma after the height assignment. If still get errors, then , '' (comma and two single quotes.)
So close. :P
Ummmmm yeah.. :laugh:
Can ya SHOW me what the line SHOULD look like..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Ummmmm yeah.. :laugh:
Can ya SHOW me what the line SHOULD look like..
So probably the most stable and programmer assigned version would be as below (provided again as a unit to minimize searching for the latest):
[QUOTE=mc12345678;1215719]So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.php:
Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 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: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
// $products_values->fields['products_image']
//Begin Image Handler changes 1 of 2
//the next line is commented out for Image Handler 3
if (file_exists($_GET['products_image_large_additional'])) {
//End Image Handler changes 1 of 2
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
//Begin Image Handler changes 2 of 2
//the next three lines are commented out for Image Handler 3
} else {
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
}
//End Image Handler changes 2 of 2
?>
</div>
</body>
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So probably the most stable and programmer assigned version would be as below (provided again as a unit to minimize searching for the latest):
Quote:
Originally Posted by
mc12345678
So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.php:
Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 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: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
// $products_values->fields['products_image']
//Begin Image Handler changes 1 of 2
//the next line is commented out for Image Handler 3
if (file_exists($_GET['products_image_large_additional'])) {
//End Image Handler changes 1 of 2
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
//Begin Image Handler changes 2 of 2
//the next three lines are commented out for Image Handler 3
} else {
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
}
//End Image Handler changes 2 of 2
?>
</div>
</body>
Sorry for the late response.. I was out having dinner.. :smile:
This worked.. No more errors.. The line highlighted in blue is the only change I made.. The line highlighted in red needs Torvista's changes applied though..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Given the issue EHSI is having I still suggest a rollback and re-install..
Good morning,
I rolled back to the original installation of ZC with only my custom template added to ZC files. Then I installed IH4 transferring it file by file to the server and I received a message that the installation of IH4 was successful. I proceeded then to upload my default image with the size of 191K. The IH4 uploaded the image and made all three images (small, medium, and large) to be of the same size 191K.
Having no success with ZC + custom template installation, I installed ZC without my template and then uploaded IH4 (file by file) to the server. The current installation is http://www.augustica.com/Store/index.php the plane ZC with IH4. I tried to upload my default image with the size of 191K. The IH4 uploaded the image and made all three images (small, medium, and large) to be of the same size 191K.
I have no idea what is wrong. It is obviously my fault since I have seen IH4 to re size my image(s) when I installed it the first time several days ago. I just cannot pinpoint the problem.
I need some help here and some extra eyes and brains to figure this one out.
Thank you.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Good morning,
I rolled back to the original installation of ZC with only my custom template added to ZC files. Then I installed IH4 transferring it file by file to the server and I received a message that the installation of IH4 was successful. I proceeded then to upload my default image with the size of 191K. The IH4 uploaded the image and made all three images (small, medium, and large) to be of the same size 191K.
Having no success with ZC + custom template installation, I installed ZC without my template and then uploaded IH4 (file by file) to the server. The current installation is
http://www.augustica.com/Store/index.php the plane ZC with IH4. I tried to upload my default image with the size of 191K. The IH4 uploaded the image and made all three images (small, medium, and large) to be of the same size 191K.
I have no idea what is wrong. It is obviously my fault since I have seen IH4 to re size my image(s) when I installed it the first time several days ago. I just cannot pinpoint the problem.
I need some help here and some extra eyes and brains to figure this one out.
Thank you.
Have you tried in the catalog to upload your picture then go into IH4 to see the results? Or gone into the IH4 admin to reset/clear the bmz cache? (I forget what the specific action title is, but it is to clear the IH4 images and then they get recreated?) Or tried using the site to see if the images get updated and then check the IH4 results again?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Have you tried in the catalog to upload your picture then go into IH4 to see the results? Or gone into the IH4 admin to reset/clear the bmz cache? (I forget what the specific action title is, but it is to clear the IH4 images and then they get recreated?) Or tried using the site to see if the images get updated and then check the IH4 results again?
Thank you for the reply.
I did both. I uploaded my image through the Catalog, not IH4, and prior to that I cleared bmz cache. then I went to check out what IH4 did with the image. The result was the same - all three images were/are 191K.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply.
I did both. I uploaded my image through the Catalog, not IH4, and prior to that I cleared bmz cache. then I went to check out what IH4 did with the image. The result was the same - all three images were/are 191K.
Sorry for what may be a repeat question/answer, but is your site running ver 1.5.x (0 or 1)? Trying to go back to the basics, because this plugin routinely works straight out of the box. (Will work even better after the recent update(s) are applied, but that's a different matter.)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Thank you.
I am running ZC 1.5.1 and IH4 which I downloaded a week ago and which does not include recent update (if there were any during this week).
I was running ZC 1.5.1 a week ago when I installed IH4 and it was running properly.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you.
I am running ZC 1.5.1 and IH4 which I downloaded a week ago and which does not include recent update (if there were any during this week).
I was running ZC 1.5.1 a week ago when I installed IH4 and it was running properly.
With that being said, it was working properly before, and then something changed to where it is not working properly? What else changed on your side? If it was working and then stopped, it's not something related to IH4 and you would need to post help in another thread if you can't resolve on your own.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
This is a straightforward install, and if you review this support thread, you will see that the issues you are reporting are unique to your store.. So the BEST thing to do at this point is to rollback to a pre-IH4 install state and start over.. OR perhaps you might consider paying someone to help you get this installed and properly configured for you..
Quote:
Originally Posted by
EHSI
Thank you.
I am running ZC 1.5.1 and IH4 which I downloaded a week ago and which does not include recent update (if there were any during this week).
I was running ZC 1.5.1 a week ago when I installed IH4 and it was running properly.
Quote:
Originally Posted by
mc12345678
With that being said, it was working properly before, and then something changed to where it is not working properly? What else changed on your side? If it was working and then stopped, it's not something related to IH4 and you would need to post help in another thread if you can't resolve on your own.
At this point I am gonna reiterate my previous suggestion.. IH4 is a straightforward install. The issues being reported by EHSI are not common issues and they are local to his site. There are are many variables that could be the cause, and far too many to keep lobbing guesses at.
Bottomline is that IMHO, it is time for EHSI to consider paying someone to look at his site and IH4 install to get him on solid ground.. I have no additional suggestions to offer.. It is clear IH4 is not working properly.. whether that is due to a bad install, something with his template, permissions, or other server issues... is impossible to tell from this vantage POV. IMHO, it is time for someone to look at the actual site from the back-end to get to the bottom of the issue..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
So I went back to the a week old backup of the site and database and installed them on the server. I imported the database that existed week ago into the new database because the old database does not exist any longer, as I several times tried to install a fresh ZC with only IH4 added.
After the installation, I logged on to the IH4 and I saw three images (small, medium, and large) being there and all having different sizes. I thought, well the problem is solved.
But, when I tried to remove the image and upload it again to make sure that the IH4 functions properly, the IH4 uploaded all three images with the same size of 191K.
At the the time of this installation one week ago, I had only two products and each product had one image. As I mentioned above, I removed image for one product, while retaining the image for the other product. The product which has newly uploaded image has all three sizes equal to 191K. The product which has image uploaded one week ago has three images of different size, as it suppose to be.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
But, when I tried to remove the image and upload it again to make sure that the IH4 functions properly, the IH4 uploaded all three images with the same size of 191K.
Looking at your site from the link a few posts up, it doesn't look like it is using IH. When you view the image that is displayed on the page, it is not a resized image in the bmz-cache folder, but just the base image in the images folder (default ZC behavior) with height and width changed in the <img> tag.
Can you confirm that you have gone to Configuration->Images in the admin and set "IH Resize Images" to "yes?"
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
weif
Looking at your site from the link a few posts up, it doesn't look like it is using IH. When you view the image that is displayed on the page, it is not a resized image in the bmz-cache folder, but just the base image in the images folder (default ZC behavior) with height and width changed in the <img> tag.
Can you confirm that you have gone to Configuration->Images in the admin and set "IH Resize Images" to "yes?"
BTW, I have found that the absence of the bmz_cache folder as part of the path is not a pure indicator that IH is not activated. I have found that it is possible to have the original filename and path if the original image dimension(s) are smaller than the max dimensions identified in IH; however, even in that case because the dimensions for the other two file types are smaller than the saved file the three files do show as having different file sizes.
But as said, the "large" file name does not show bmz_cache as part of the filename.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
At this point I am gonna reiterate my previous suggestion.. IH4 is a straightforward install. The issues being reported by EHSI are not common issues and they are local to his site. There are are many variables that could be the cause, and far too many to keep lobbing guesses at.
Bottomline is that IMHO, it is time for EHSI to consider paying someone to look at his site and IH4 install to get him on solid ground.. I have no additional suggestions to offer.. It is clear IH4 is not working properly.. whether that is due to a bad install, something with his template, permissions, or other server issues... is impossible to tell from this vantage POV. IMHO, it is time for someone to look at the actual site from the back-end to get to the bottom of the issue..
*nodding head* And now twice in almost as many days I've answered something that had a pretty clear description of a way forward to basically say the same thing. Woo hoo!!! :) Totally didn't see those earlier posts. Thought the mad dash posting had ended for a spell. :) ah well.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
At this point I am gonna reiterate my previous suggestion.. IH4 is a straightforward install. The issues being reported by EHSI are not common issues and they are local to his site. There are are many variables that could be the cause, and far too many to keep lobbing guesses at.
Bottomline is that IMHO, it is time for EHSI to consider paying someone to look at his site and IH4 install to get him on solid ground.. I have no additional suggestions to offer.. It is clear IH4 is not working properly.. whether that is due to a bad install, something with his template, permissions, or other server issues... is impossible to tell from this vantage POV. IMHO, it is time for someone to look at the actual site from the back-end to get to the bottom of the issue..
You have exceeded your quota of private messages.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
You have exceeded your quota of private messages.
You need to go to my site and send an e-mail via my contact form..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Applied all the suggested fixes to the code and all seems to work fine. What's next? Can somebody confirm that this does plug the outlined security holes?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Applied all the suggested fixes to the code and all seems to work fine. What's next? Can somebody confirm that this does plug the outlined security holes?
Yes... that was the point..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I am running v1.5.1
I have I installed and running fine except one small thing which isn't exactly a hugh problem just more of a annoyance.
When you click on the product image and it brings the item up in the lightbox (Zen light box also installed) there are 2 images in the slide show but both are identical
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
gazag
I am running v1.5.1
I have I installed and running fine except one small thing which isn't exactly a hugh problem just more of a annoyance.
When you click on the product image and it brings the item up in the lightbox (Zen light box also installed) there are 2 images in the slide show but both are identical
a link to you site to SEE what you are referring to would help.. but this sounds like a LIGHTBOX issue and not an IH4 issue..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
a link to you site to SEE what you are referring to would help.. but this sounds like a LIGHTBOX issue and not an IH4 issue..
Sorry www(dot)lime light store(dot)com remove spaces and (dot)s
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
gazag
Sorry www(dot)lime light store(dot)com remove spaces and (dot)s
FYI, if you are worried about you site being indexed, the spaces aren't necessary.. Simply typing in www(dot)limelightstore(dot)com is plenty to prevent the site from being indexed.. (makes it easier for community members to copy your URL)
Anyway if you are referring to the main image being repeated, this is NOT an IH4 issue.. It's a lightbox issue, and you need to go to the Zen Lightbox thread where lucky for you I just posted the solution for the problem. You will need to wade through a BUNCH of other posts.. Ignore them.. just focus in on MY posts.. Go back about 3 or 4 pages and wade your way forward..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
FYI, if you are worried about you site being indexed, the spaces aren't necessary.. Simply typing in www(dot)limelightstore(dot)com is plenty to prevent the site from being indexed.. (makes it easier for community members to copy your URL)
Anyway if you are referring to the main image being repeated, this is NOT an IH4 issue.. It's a lightbox issue, and you need to go to the Zen Lightbox thread where lucky for you I just posted the solution for the problem. You will need to wade through a BUNCH of other posts.. Ignore them.. just focus in on MY posts.. Go back about 3 or 4 pages and wade your way forward..
THANKS:smile: that was a quick and easy fix. One more quick question - i have v1.5.1 and version IH4.3.1 installed do the security fixes found in the following posts still apply? Because my files look a lot different to what is posted....
http://www.zen-cart.com/showthread.p...47#post1215847
http://www.zen-cart.com/showthread.p...89#post1215889
:lookaroun
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
gazag
Don't thank me.. Thank Daniel (neistudio) it was his fix that solves the issue..
Re: the IH4 fixes posted here.. Yes.. and I will be submitting an update with those changes included..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Don't thank me.. Thank Daniel (neistudio) it was his fix that solves the issue..
Re: the IH4 fixes posted here.. Yes.. and I will be submitting an update with those changes included..
Diva, unless you get this message removed by the admins, forgive me for cross posting on this one issue.
Recognizing that there was an update needed for IH (I'm guessing all active versions are impacted) and for at least Zen Lightbox as an image handler referenced by IH4 an update to Zen Lightbox has been submitted to the plug-in review process. The update addresses only the co-existence of IH and Zen Lightbox. So other issues described in either of these forums were not incorporated into that update. Some are specific to alternate plugins and other unique situations.
Anyways, wanted to to put it out there because IH4 instructions do refer to ZLB and in this case/situation they are tied at the hip.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Applied all the suggested fixes to the code and all seems to work fine. What's next? Can somebody confirm that this does plug the outlined security holes?
For those just tuning in: the security hole being discussed related to a template file that was used in some versions of IH4 to display the additional images. The specific security issue was known as XSS (Cross Site Scripting) which is, in my summary, a situation where the code of one site can be or does use or access the code of another site via a function call from outside the code. In this case, a verification of existence of a local version (file) of the file/pathname combination sent to the template file shows a specific default image if the file/pathname doesn't equal a local item. If it is local, then the file/pathname is sent to be processed as an image.
So that is why it can be said that the correction addresses the XSS concern. Now IH provides a local filename when handling an image and before displaying the image, there is a verification that the image path is local.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Diva, unless you get this message removed by the admins, forgive me for cross posting on this one issue.
Recognizing that there was an update needed for IH (I'm guessing all active versions are impacted) and for at least Zen Lightbox as an image handler referenced by IH4 an update to Zen Lightbox has been submitted to the plug-in review process. The update addresses only the co-existence of IH and Zen Lightbox. So other issues described in either of these forums were not incorporated into that update. Some are specific to alternate plugins and other unique situations.
Anyways, wanted to to put it out there because IH4 instructions do refer to ZLB and in this case/situation they are tied at the hip.
Right, and in answering gazag's last question I was only referring to the IH4 corrections posted in THIS support thread, not the separate (unrelated) ZLB fixes I posted in the ZLB thread as they have NOTHING to do with the IH4 fixes (and their purpose -- address a security vulnerability)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hey there,
having some issues in the admin being able to enable/disable products from category page, I have read throuhg all of the posts i can find, ensured that the code in category_product_listing.php were correct:
Code:
if ($products->fields['products_status'] == '1') {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON; ?>" />
<input type="hidden" name="flag" value="0" />
</form>
<?php
} else {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF; ?>"/>
<input type="hidden" name="flag" value="1" />
</form>
and categories.php:
Code:
if ( isset($_GET['flag']) && ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_GET['flag']);
}
}
and still cant turn them on or off, checked for error logs, none, check for console errors, none.
Anything im missing here?
ZC 1.51
IMH 4
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Hey there,
having some issues in the admin being able to enable/disable products from category page, I have read throuhg all of the posts i can find, ensured that the code in category_product_listing.php were correct:
Code:
if ($products->fields['products_status'] == '1') {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON; ?>" />
<input type="hidden" name="flag" value="0" />
</form>
<?php
} else {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF; ?>"/>
<input type="hidden" name="flag" value="1" />
</form>
and categories.php:
Code:
if ( isset($_GET['flag']) && ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_GET['flag']);
}
}
and still cant turn them on or off, checked for error logs, none, check for console errors, none.
Anything im missing here?
ZC 1.51
IMH 4
Realize you said ZC1.5.1, but that is reminiscent of ZC1.5 and not necessarily related to IH4. When did this begin happening? Upgrade?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
no, i don't really know when it started, but i didn't do any upgrades, any searches for products not turning on or off, has pointed me to IH, it was the last mod installed according to the guy who built the site, but not too sure, im just trying to fix it lol.
However viewing the page in page source shows this:
<form name="setflag_products" action="http://mysite.com/my_secret_admin/categories.php?action=setflag&pID=98&cPath=3&page=1" method="post">
I saw someone else asking should the change all posts to gets?
could that be?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
no, i don't really know when it started, but i didn't do any upgrades, any searches for products not turning on or off, has pointed me to IH, it was the last mod installed according to the guy who built the site, but not too sure, im just trying to fix it lol.
And it would help if we knew WHICH version on IH4 you are running.. sounds like an old version.. and if you search this thread for category_product_listing.php the fix is posted..
Quote:
Originally Posted by
jeffiec
However viewing the page in page source shows this:
<form name="setflag_products" action="http://mysite.com/my_secret_admin/categories.php?action=setflag&pID=98&cPath=3&page=1" method="post">
I saw someone else asking should the change all posts to gets?
could that be?
NO..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
4.2, what would be the best way to upgrade, in the instructions, it only talks about if you have installed ih3?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
4.2, what would be the best way to upgrade, in the instructions, it only talks about if you have installed ih3?
The way I have done it in the past, is to download (or have) both the old and new versions, compare the two to see if there are files that get deleted from the old (usually haven't seen that happen.), then once determined and made a list of which should go, compare the new and existing files to see what changes need to be made. Merge the changes into the new set of files. Delete any files previously identified and pretty much at the same time upload the entire package (so that the auto installer can do it's thing which includes making backup copies of what was to be replaced, just-in-case). But, a backup of existing files is made/available as part of any routine update.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
ok, uninstalled 4.2, installed 4.3.1, still cant enable/disable, this just isn't my day.
so any searches on not being able to enable/disable from category page, brings up all about IH$, since im up to the latest and greatest and everyone else seems to be working, what else can be the issue? i have made no mods to the admin side.
Any help appreciated.
Jeff
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
ok, uninstalled 4.2, installed 4.3.1, still cant enable/disable, this just isn't my day.
so any searches on not being able to enable/disable from category page, brings up all about IH$, since im up to the latest and greatest and everyone else seems to be working, what else can be the issue? i have made no mods to the admin side.
Any help appreciated.
Jeff
It would surprise me that the content of the following link hasn't been incorporated in an update since it was made, so first I would suggest if not done already to clear your cache and temporary files (or anything else to "refresh" your browser) while not logged into your admin, if you haven't already. If that still doesn't resolve your issue, see this link: http://www.zen-cart.com/showthread.p...hp#post1117504
The content of that link addresses the issue you are describing with the red/green button not working in the file category_product_listing.php that I went ahead and searched for seeing that you still were having an issue. If unable to still resolve, please seek paid help to address your problem, as you said, others aren't experiencing this with the updated version(s). Btw, there is some updates posted a few pages back that I have not verified as incorporated to the downloads associated with the additional_images functionality.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
It would surprise me that the content of the following link hasn't been incorporated in an update since it was made, so first I would suggest if not done already to clear your cache and temporary files (or anything else to "refresh" your browser) while not logged into your admin, if you haven't already. If that still doesn't resolve your issue, see this link:
http://www.zen-cart.com/showthread.p...hp#post1117504
The content of that link addresses the issue you are describing with the red/green button not working in the file category_product_listing.php that I went ahead and searched for seeing that you still were having an issue. If unable to still resolve, please seek paid help to address your problem, as you said, others aren't experiencing this with the updated version(s). Btw, there is some updates posted a few pages back that I have not verified as incorporated to the downloads associated with the additional_images functionality.
Not sure I fully understand what you are saying, have cleared all temp files and the link you posted matches what that file already has, remember, I uninstalled and re-installed to 4.3.1 IH is working fine.
Telling someone they need to pay for help can be taken a few ways, i will for arguments sake, take it in a neutral way.
So what you are saying is instead of sharing ideas, with fellow coders, is not the way to go? I should just go out and hire someone who will no doubt do the same thing, unless it's deva herself? And like i said, i don't even think IH is the issue, however, most of the searches so far, have pointed at IH, that's why I am asking if someone knew of another add-on i could look at or java.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
The code you posted looks like Zen Cart 1.3.x code... Possibly Zen Cart was upgraded from a previous version and something was missed when merging files... Or maybe some older code was merged into your "/admin/categories.php" by mistake when installing a plugin...
The code from Zen Cart 1.5.1 for "/admin/categories.php" (note the parts in red):
Code:
case 'setflag':
if ( isset($_POST['flag']) && ($_POST['flag'] == '0') || ($_POST['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_POST['flag']);
}
}
zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : '')));
break;
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
The flag property is captured within a post form as a hidden field with the alternate value of the current option, I don't think a get statement will pull the data that you are looking for. This was identified by looking at the page source.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Thank you Thank you Thank you Working as intended.
Jeff
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
The flag property is captured within a post form as a hidden field with the alternate value of the current option, I don't think a get statement will pull the data that you are looking for. This was identified by looking at the page source.
At this point I should beat Diva to the punch. It no appears that this issue is not specifically related to IH4 and further discussion, if any, should be taken to a new/alternate thread or PMs. Was bad of me not to state this sooner, but I expect the comment to come.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Thank you Thank you Thank you Working as intended.
Jeff
Please share. What was the fix and associated problem?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Not sure I fully understand what you are saying, have cleared all temp files and the link you posted matches what that file already has, remember, I uninstalled and re-installed to 4.3.1 IH is working fine.
Telling someone they need to pay for help can be taken a few ways, i will for arguments sake, take it in a neutral way.
So what you are saying is instead of sharing ideas, with fellow coders, is not the way to go? I should just go out and hire someone who will no doubt do the same thing, unless it's deva herself? And like i said, i don't even think IH is the issue, however, most of the searches so far, have pointed at IH, that's why I am asking if someone knew of another add-on i could look at or java.
So let me weigh in on mc12345678's "pay for help" comment.. It's a suggestion I too have made when it seems warranted.. Not sure why people appear to get their feathers ruffled over this as it is a LEGIT suggestion.. The comment is neutral and meant to mean that if after trying to get help, you reach an IMPASSE (for whatever reason), that one should/could consider paying for professional help.. I've done it when it's become necessary.. (hell I don't know everything, and I don't mind paying for professional advice/help when needed) but some folks find the thought objectionable.. The suggestion is not an insult, or a way or avoiding helping or anything else that's been suggested.. it's truly a legit option.. 'tis all.. Everything is NOT going to be free just because Zen Cart is free.. (IJS)
Quote:
Originally Posted by
mc12345678
Please share. What was the fix and associated problem?
Quote:
Originally Posted by
jeffiec
Thank you Thank you Thank you Working as intended.
Jeff
lhungil posted the solution a few posts ago (quoted below).. It appears the issue is due to left over 1.3.9 code which was missed during the upgrade..
Quote:
Originally Posted by
lhungil
The code you posted looks like Zen Cart 1.3.x code... Possibly Zen Cart was upgraded from a previous version and something was missed when merging files... Or maybe some older code was merged into your "/admin/categories.php" by mistake when installing a plugin...
The code from Zen Cart 1.5.1 for "/admin/categories.php" (note the parts in red):
Code:
case 'setflag':
if ( isset($_POST['flag']) && ($_POST['flag'] == '0') || ($_POST['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_POST['flag']);
}
}
zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : '')));
break;
-
Image Handler 4 (for v1.5.x) v4.3.2 submitted tonight
Image Handler4 v4.3.2 Changelog
- Important required changes to modules/YOUR_TEMPLATE/additional_images.php to support the changes made to /includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php in v4.3.1
- Minor correction to /includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php
-
Images displaying in my catalog, but not in my admin when adding images to products
I have an unusual problem, and may need to be sorted with my host (BlueHost).
My problem started when I could not get to display my header image in emails, while it was available in my browser if I pointed the url directly to it. This has been fixed by BlueHost.
But now I have an issue with imagehandler, if I add new images to a product, the images do display in my catalog, but not in admin > imagehandler4.
Here is te code from <td class="dataTableContent" align="center" valign="top"> which is correct
Code:
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://my-site.com/my-admin/image_handler.php?products_filter=32&imgName=434-8&action=layout_info'">
But the path to the image sudddenly includes the directory in which ZC is installed, while my URL points directly to my ZC installation:
Code:
<img src="/Directory/bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg" border="0" alt="ProductName - 434" title=" Big Pocket Wool & Cashmere Jacket - 434 " height="175"><br /> 175x175<br /><strong>5.4Kb</strong> </td><td class="dataTableContent" align="center" valign="top">
Is there anywhere in IH that I can change the path above to read the image correctly ie: /bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg"
Thanks.
Goshawk
-
Re: Images displaying in my catalog, but not in my admin when adding images to produc
Quote:
Originally Posted by
Goshawk
I have an unusual problem, and may need to be sorted with my host (BlueHost).
My problem started when I could not get to display my header image in emails, while it was available in my browser if I pointed the url directly to it. This has been fixed by BlueHost.
But now I have an issue with imagehandler, if I add new images to a product, the images do display in my catalog, but not in admin > imagehandler4.
Here is te code from <td class="dataTableContent" align="center" valign="top"> which is correct
Code:
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://my-site.com/my-admin/image_handler.php?products_filter=32&imgName=434-8&action=layout_info'">
But the path to the image sudddenly includes the directory in which ZC is installed, while my URL points directly to my ZC installation:
Code:
<img src="/Directory/bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg" border="0" alt="ProductName - 434" title=" Big Pocket Wool & Cashmere Jacket - 434 " height="175"><br /> 175x175<br /><strong>5.4Kb</strong> </td><td class="dataTableContent" align="center" valign="top">
Is there anywhere in IH that I can change the path above to read the image correctly ie: /bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg"
Thanks.
Goshawk
Please don't take this wrong.. but I really don't understand what the issue is.. Are you saying that the images don't show on the product pages or do they not appear in the IH image manager in the admin?? It would help if you posted a link to an actual product where the issue is occurring..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Goshawk
I have an unusual problem, and may need to be sorted with my host (BlueHost).
My problem started when I could not get to display my header image in emails, while it was available in my browser if I pointed the url directly to it. This has been fixed by BlueHost.
But now I have an issue with imagehandler, if I add new images to a product, the images do display in my catalog, but not in admin > imagehandler4.
Here is te code from <td class="dataTableContent" align="center" valign="top"> which is correct
Code:
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://my-site.com/my-admin/image_handler.php?products_filter=32&imgName=434-8&action=layout_info'">
But the path to the image sudddenly includes the directory in which ZC is installed, while my URL points directly to my ZC installation:
Code:
<img src="/Directory/bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg" border="0" alt="ProductName - 434" title=" Big Pocket Wool & Cashmere Jacket - 434 " height="175"><br /> 175x175<br /><strong>5.4Kb</strong> </td><td class="dataTableContent" align="center" valign="top">
Is there anywhere in IH that I can change the path above to read the image correctly ie: /bmz_cache/7/726d23ceac06644ebcac83d0ffb615ab.image.175x175.jpg"
Thanks.
Goshawk
In addition to Diva's question, what version of IH4 are you using?
-
2 Attachment(s)
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi,
I am using Image_Handler4_v4_3_1.
attached are 2 images of the same product.
1 shows the admin of image handler, 2 other shows the product in the catalog
Attachment 13068
Attachment 13069
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi,
I'm in my fourth try to install IH 4 and it's not happening for me. I use Firefox, Dreamweaver and Filezilla for transfer. I did the drag and drop thing for the files... everything shows as the instructions say however, when I get back to clicking a link on my admin, I get the blank page.
I can't get the auto-installer to kick in. I've checked the logs for errors and nothing shows there. I've found on the net that if my default language was other then English, removing the other language, installing IH and reinstalling the language could work, but it did not for me.
I've also found on this thread that for some, the admin>includes>configuration.php file was getting modified automatically in regards to the admin folder but mine isn`t. It is as it should be
Quote:
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
I have the latest Zencart installed
canada post
ceon uri mapping
french language
I did a file compare on the zen cart original file YOUR_ADMIN/includes/modules/category_product_listing.php and mine with Beyond Compare and the file was unchanged so went ahead and installed as instructed...
still no go... am I missing something?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
marieAA
Hi,
I'm in my fourth try to install IH 4 and it's not happening for me. I use Firefox, Dreamweaver and Filezilla for transfer. I did the drag and drop thing for the files... everything shows as the instructions say however, when I get back to clicking a link on my admin, I get the blank page.
I can't get the auto-installer to kick in. I've checked the logs for errors and nothing shows there. I've found on the net that if my default language was other then English, removing the other language, installing IH and reinstalling the language could work, but it did not for me.
I've also found on this thread that for some, the admin>includes>configuration.php file was getting modified automatically in regards to the admin folder but mine isn`t. It is as it should be
I have the latest Zencart installed
canada post
ceon uri mapping
french language
I did a file compare on the zen cart original file YOUR_ADMIN/includes/modules/category_product_listing.php and mine with Beyond Compare and the file was unchanged so went ahead and installed as instructed...
still no go... am I missing something?
Blank page = an error log.. so without know what error is being kicked out, I couldn't begin to guess what's going on.. Post the error logs generated when you install..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
sorry, I still have nothing in the logs folder of the store. and no error log on my host either. I see that some posted images of a list of errors that shows up at the top of the page.. is there a way to turn that on?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I've been running one of my client's test stores with error-reporting level E_ALL and wound up with a bunch of E_NOTICE logs of the form:
Code:
[17-Sep-2013 13:18:53 Europe/Berlin] PHP Notice: Use of undefined constant IH_RESIZE_TITLE - assumed 'IH_RESIZE_TITLE' in C:\xampp\htdocs\testsite\testadmin\includes\languages\english\extra_definitions\bmz_language_admin.php on line 3
It turns out that none of the constants named in the referenced file are enclosed in quotes; here's the updated bmz_language_admin.php module, with the quotes added:
Code:
<?php
define('IH_RESIZE_TITLE', 'IH resize images');
define('IH_RESIZE_TEXT', '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>.');
define('SMALL_IMAGE_FILETYPE_TITLE', 'IH small images filetype');
define('SMALL_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for small images as uploaded image');
define('SMALL_IMAGE_BACKGROUND_TITLE', 'IH small images background');
define('SMALL_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('SMALL_IMAGE_QUALITY_TITLE', 'IH small images compression quality');
define('SMALL_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for small jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_SMALL_IMAGES_TITLE', 'IH small images watermark');
define('WATERMARK_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked small images instead of unmarked small images.');
define('ZOOM_SMALL_IMAGES_TITLE', 'IH small images zoom on hover');
define('ZOOM_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to enable a nice zoom overlay while hovering the mouse pointer over small images.');
define('ZOOM_IMAGE_SIZE_TITLE', 'IH small images zoom on hover size');
define('ZOOM_IMAGE_SIZE_TEXT', 'Set to -Medium-, if you want to the zoom on hover display to use the medium sized image. Otherwise, to use the large sized image on hover, set to -Large-');
define('MEDIUM_IMAGE_FILETYPE_TITLE', 'IH medium images filetype');
define('MEDIUM_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for medium images as uploaded image-s.');
define('MEDIUM_IMAGE_BACKGROUND_TITLE', 'IH medium images background');
define('MEDIUM_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('MEDIUM_IMAGE_QUALITY_TITLE', 'IH medium images compression quality');
define('MEDIUM_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for medium jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_MEDIUM_IMAGES_TITLE', 'IH medium images watermark');
define('WATERMARK_MEDIUM_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked medium images instead of unmarked medium images.');
define('LARGE_IMAGE_FILETYPE_TITLE', 'IH large images filetype');
define('LARGE_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for large images as uploaded image-s.');
define('LARGE_IMAGE_BACKGROUND_TITLE', 'IH large images background');
define('LARGE_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('LARGE_IMAGE_QUALITY_TITLE', 'IH large images compression quality');
define('LARGE_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for large jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_LARGE_IMAGES_TITLE', 'IH large images watermark');
define('WATERMARK_LARGE_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked large images instead of unmarked large images.');
define('LARGE_IMAGE_MAX_WIDTH_TITLE', 'IH large images maximum width');
define('LARGE_IMAGE_MAX_WIDTH_TEXT', 'Specify a maximum width for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
define('LARGE_IMAGE_MAX_HEIGHT_TITLE', 'IH large images maximum height');
define('LARGE_IMAGE_MAX_HEIGHT_TEXT', 'Specify a maximum height for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
define('WATERMARK_GRAVITY_TITLE', 'IH watermark gravity');
define('WATERMARK_GRAVITY_TEXT', 'Select the position for the watermark relative to the image-s canvas. Default is <strong>Center</Strong>.');
define('IH_VERSION_TITLE', 'IH version');
define('IH_VERSION_TEXT', 'IH Version is stored but not shown on configuration menus');
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
lat9
I've been running one of my client's test stores with error-reporting level E_ALL and wound up with a bunch of E_NOTICE logs of the form:
Code:
[17-Sep-2013 13:18:53 Europe/Berlin] PHP Notice: Use of undefined constant IH_RESIZE_TITLE - assumed 'IH_RESIZE_TITLE' in C:\xampp\htdocs\testsite\testadmin\includes\languages\english\extra_definitions\bmz_language_admin.php on line 3
It turns out that none of the constants named in the referenced file are enclosed in quotes; here's the updated bmz_language_admin.php module, with the quotes added:
Code:
<?php
define('IH_RESIZE_TITLE', 'IH resize images');
define('IH_RESIZE_TEXT', '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>.');
define('SMALL_IMAGE_FILETYPE_TITLE', 'IH small images filetype');
define('SMALL_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for small images as uploaded image');
define('SMALL_IMAGE_BACKGROUND_TITLE', 'IH small images background');
define('SMALL_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('SMALL_IMAGE_QUALITY_TITLE', 'IH small images compression quality');
define('SMALL_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for small jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_SMALL_IMAGES_TITLE', 'IH small images watermark');
define('WATERMARK_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked small images instead of unmarked small images.');
define('ZOOM_SMALL_IMAGES_TITLE', 'IH small images zoom on hover');
define('ZOOM_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to enable a nice zoom overlay while hovering the mouse pointer over small images.');
define('ZOOM_IMAGE_SIZE_TITLE', 'IH small images zoom on hover size');
define('ZOOM_IMAGE_SIZE_TEXT', 'Set to -Medium-, if you want to the zoom on hover display to use the medium sized image. Otherwise, to use the large sized image on hover, set to -Large-');
define('MEDIUM_IMAGE_FILETYPE_TITLE', 'IH medium images filetype');
define('MEDIUM_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for medium images as uploaded image-s.');
define('MEDIUM_IMAGE_BACKGROUND_TITLE', 'IH medium images background');
define('MEDIUM_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('MEDIUM_IMAGE_QUALITY_TITLE', 'IH medium images compression quality');
define('MEDIUM_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for medium jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_MEDIUM_IMAGES_TITLE', 'IH medium images watermark');
define('WATERMARK_MEDIUM_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked medium images instead of unmarked medium images.');
define('LARGE_IMAGE_FILETYPE_TITLE', 'IH large images filetype');
define('LARGE_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for large images as uploaded image-s.');
define('LARGE_IMAGE_BACKGROUND_TITLE', 'IH large images background');
define('LARGE_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
define('LARGE_IMAGE_QUALITY_TITLE', 'IH large images compression quality');
define('LARGE_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for large jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
define('WATERMARK_LARGE_IMAGES_TITLE', 'IH large images watermark');
define('WATERMARK_LARGE_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked large images instead of unmarked large images.');
define('LARGE_IMAGE_MAX_WIDTH_TITLE', 'IH large images maximum width');
define('LARGE_IMAGE_MAX_WIDTH_TEXT', 'Specify a maximum width for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
define('LARGE_IMAGE_MAX_HEIGHT_TITLE', 'IH large images maximum height');
define('LARGE_IMAGE_MAX_HEIGHT_TEXT', 'Specify a maximum height for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
define('WATERMARK_GRAVITY_TITLE', 'IH watermark gravity');
define('WATERMARK_GRAVITY_TEXT', 'Select the position for the watermark relative to the image-s canvas. Default is <strong>Center</Strong>.');
define('IH_VERSION_TITLE', 'IH version');
define('IH_VERSION_TEXT', 'IH Version is stored but not shown on configuration menus');
Thanks for this.. will make the change and submit update.. :smile:
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
marieAA
sorry, I still have nothing in the logs folder of the store. and no error log on my host either. I see that some posted images of a list of errors that shows up at the top of the page.. is there a way to turn that on?
The list of errors at the top of the page appears when the auto installer tries to process the files and comes across an error in that process.
Btw, the configure.php file is not touched by the installer, the fact that your file contains what you showed, indicates that ZC knows where the admin directory is and no changes to your configure.php should be expected by IH.
You stated that you did a file compare of one file, but did you do a file compare with all core files modified by IH as part of the instructions? Ie was this a first time install, or an upgrade? (Verifying the meaning of the statement of fourth time trying to install IH4.) Cache and sessions were cleared? Anything presented when viewing the source from within the browser? Do you happen to have a cache folder in addition to a logs folder and did an error get logged into the cache folder? (Yes I'm guessing at areas, because there really should be an error somewhere about this lack of system response.) Is there possibly so many error logs that the system is slow to respond to provide the list of error logs which contains the error associated with this event?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
The list of errors at the top of the page appears when the auto installer tries to process the files and comes across an error in that process.
Btw, the configure.php file is not touched by the installer, the fact that your file contains what you showed, indicates that ZC knows where the admin directory is and no changes to your configure.php should be expected by IH.
You stated that you did a file compare of one file, but did you do a file compare with all core files modified by IH as part of the instructions? Ie was this a first time install, or an upgrade? (Verifying the meaning of the statement of fourth time trying to install IH4.) Cache and sessions were cleared? Anything presented when viewing the source from within the browser? Do you happen to have a cache folder in addition to a logs folder and did an error get logged into the cache folder? (Yes I'm guessing at areas, because there really should be an error somewhere about this lack of system response.) Is there possibly so many error logs that the system is slow to respond to provide the list of error logs which contains the error associated with this event?
fourth try installing it for the first time... not upgrading.
Nothing at all when looking at the source.. I get this:
Quote:
<html>
<head></head>
<body></body>
</html>
I did check on the other core files but didn't do Beyond Compare on them because all of those were original files for me, I didn't modify any of them prior to IH. I did check the cache folder, sorry should have mentioned it, and this one too is empty. I can't figure it out. Every single time I revert to my older backup, everything is running smoothly, no errors and everytime I try to put in the files again, blank page again. As for the quantity of errors, I would have had to have other errors prior to IH to make a list so long right? Things is that I fix all errors as I find them and there are none prior to IH and I don't get either why nothing happens when I add the IH files. I'll try again from the beginning again.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
My apologies for taking of your time. I had done a major stupid. I always take a fresh copy of my site and place it in a separate folder to test new mods to make sure I don't break the live one. While looking again at the configure.php files, I realised that I had forgotten to rename the store folder. So the errors were getting logged in the live store folder.
and if it can help anyone else with a different default language, I installed it again while having the default different language installed and it wasn't an issue at all. So no need to remove the language etc...
My sincere apologies, all is well now.
-
Main image not showing on product page
Hi,
Can someone put me in the right direction here, as my main images are not showing in zen-cart-v1.5.1-full-fileset-09182012
I was using Image Handler 4 for v1.5.x - Version: v4.3.1, but it did not show the images in the IH manager in admin (see post above - and included screen shots), so I did a complete uninstall of IH4.3.1 (used the IH built in uninstaller from ZC_admin), and deleted all the files that IH left behind (checked against the original IH file structure), also deleted the bmz_cache folder.
As it is suggested in your image_handler_readme.html, zen_lightbox needs to be installed (or some files to be re-written) after IH installation.
Therefore I uninstalled zen_lightbox-v1.6.4_1, by manually deleting all the files and running the uninstall.sql to make sure that nothing remainde of both IH and zen_lightbox installations.
Following your install instructions, I did reinstall Image Handler 4 for v1.5.x - Version: v4.3.2. In ZC_admin the installation went ok (all green messages).
Then I proceeded with the installation of zen_lightbox-v1.6.4_1
Here is the URL of a test product:
http://leather-jackets-leather-fashi...t-002-p-9.html
Looking at the DOM source of the page, I am puzzled by looking at the directories that the images are located in:
- productMainImage: <img src="images/medium/FOLDER_NAME/002_MED.jpg".........../>
- productAdditionalImages: <img src="images/FOLDER_NAME/002_01.jpg"........./>
Here is part of the DOM source code:
Code:
<!--bof Main Product Image -->
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>');
//-->
</script>
<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 "><br><span class="imgLink">larger image</span></a>
<noscript>
<a href="http://leather-jackets-leather-fashion.com/index.php?main_page=popup_image&pID=9" target="_blank"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>
</noscript>
</div><!--eof Main Product Image-->
<!--bof Additional Product Images -->
<div id="productAdditionalImages">
<div class="additionalImages centeredContent back" style="width:25%;">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/4/49744121e52c7d8d3fcdd0ac7c72cf72.image.661x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/FOLDER_NAME/002_01.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " width="144.666666667" height="175" /><br />larger image</a>');
Here is the code from main_product_image.php, showing that IH made the needed changes:
Code:
<?php
/**mod Image Handler 4.3.2
* main_product_image module
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @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 $
* Last modified by DerManoMann 2010-05-31 23:41:53
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
//Begin Image Handler changes 1 of 2
//the next three lines are commented out for Image Handler 4
//$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;
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
//End Image Handler changes 1 of 2
//Begin Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
// 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;
//}
//End Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
/*
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
So please can you tell me what went wrong, and why I have 2 different URL's showing?
Many thanks for your help,
Goshawk
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
Goshawk
Hi,
Can someone put me in the right direction here, as my main images are not showing in
zen-cart-v1.5.1-full-fileset-09182012
I was using
Image Handler 4 for v1.5.x - Version: v4.3.1, but it did not show the images in the IH manager in admin (see post above - and included screen shots), so I did a complete uninstall of IH4.3.1 (used the IH built in uninstaller from ZC_admin), and deleted all the files that IH left behind (checked against the original IH file structure), also deleted the bmz_cache folder.
As it is suggested in your
image_handler_readme.html, zen_lightbox needs to be installed (or some files to be re-written) after IH installation.
Therefore I uninstalled
zen_lightbox-v1.6.4_1, by manually deleting all the files and running the uninstall.sql to make sure that nothing remainde of both IH and zen_lightbox installations.
Following your install instructions, I did reinstall
Image Handler 4 for v1.5.x - Version: v4.3.2. In ZC_admin the installation went ok (all green messages).
Then I proceeded with the installation of
zen_lightbox-v1.6.4_1
Here is the URL of a test product:
http://leather-jackets-leather-fashi...t-002-p-9.html
Looking at the DOM source of the page, I am puzzled by looking at the directories that the images are located in:
- productMainImage: <img src="images/medium/FOLDER_NAME/002_MED.jpg".........../>
- productAdditionalImages: <img src="images/FOLDER_NAME/002_01.jpg"........./>
Here is part of the DOM source code:
Code:
<!--bof Main Product Image -->
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>');
//-->
</script>
<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 "><br><span class="imgLink">larger image</span></a>
<noscript>
<a href="http://leather-jackets-leather-fashion.com/index.php?main_page=popup_image&pID=9" target="_blank"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>
</noscript>
</div><!--eof Main Product Image-->
<!--bof Additional Product Images -->
<div id="productAdditionalImages">
<div class="additionalImages centeredContent back" style="width:25%;">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/4/49744121e52c7d8d3fcdd0ac7c72cf72.image.661x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/FOLDER_NAME/002_01.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " width="144.666666667" height="175" /><br />larger image</a>');
Here is the code from main_product_image.php, showing that IH made the needed changes:
Code:
<?php
/**mod Image Handler 4.3.2
* main_product_image module
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @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 $
* Last modified by DerManoMann 2010-05-31 23:41:53
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
//Begin Image Handler changes 1 of 2
//the next three lines are commented out for Image Handler 4
//$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;
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
//End Image Handler changes 1 of 2
//Begin Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
// 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;
//}
//End Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
/*
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
So please can you tell me what went wrong, and why I have 2 different URL's showing?
Many thanks for your help,
Goshawk
If understand correctly, in places that are normally a medium image, are wondering why IH4 doesn't override that. For that, read the instructions. Medium images are not handled by IH. I forget the explanation why, but if you want a different image to be displayed so that it is handled by IH then would need to change the ZC code to display a different sized image in place of the medium image.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Not true.. the IMAGE HOVER feature of Image Handler doesn't work on the medium images displayed on the product information page.. Otherwise image Handler manages ALL product and category images..
Quote:
Originally Posted by
mc12345678
If understand correctly, in places that are normally a medium image, are wondering why IH4 doesn't override that. For that, read the instructions. Medium images are not handled by IH. I forget the explanation why, but if you want a different image to be displayed so that it is handled by IH then would need to change the ZC code to display a different sized image in place of the medium image.
Tells me that you uploaded your main product image (the "medium image") to a folder called "/images/medium/Jenny/": http://leather-jackets-leather-fashion.com/images/medium/Jenny/002_MED.jpg. Your other images on the other hand are located in a folder called "/images/Jenny/": http://leather-jackets-leather-fashion.com/images/Jenny/002_01.jpg.
Your medium image gives one a 403 error (which is why it doesn't display). 403 error aside, the first thing that stands out for me is that there is NO REASON for you to put images in the "medium" or "large" image folders, nor is there any reason to name your files as you have done with the "_MED" appended to the file name. In fact you should NOT use these folders or naming conventions at all..
As stated frequently in this support thread and in the IH4 readme instructions, you DO NOT (SHOULD NOT) need to upload specific small, medium, or large images at all.. You do not need to upload images to the "medium" or "large" image folders, nor do you need to append "_MED" or "_LRG" ro your file names.. Upload your LARGEST IMAGE and IH4 will generate optimized small, medium, and large images for you. So I would start with removing the images in the "/images/medium/Jenny/" folder and edit the product to make sure the largest main product image is in the "/images/Jenny/" folder.
Secondly because of the way ZEN CART magaes additional images, you are going to need to change your image names from what I assume is the default manufacturers image names. Your images names should NOT contain ANY numbers otherwise you will find that eventually images that belong to one product will appear on other products as well..
Quote:
Originally Posted by
Goshawk
Hi,
Can someone put me in the right direction here, as my main images are not showing in
zen-cart-v1.5.1-full-fileset-09182012
I was using
Image Handler 4 for v1.5.x - Version: v4.3.1, but it did not show the images in the IH manager in admin (see post above - and included screen shots), so I did a complete uninstall of IH4.3.1 (used the IH built in uninstaller from ZC_admin), and deleted all the files that IH left behind (checked against the original IH file structure), also deleted the bmz_cache folder.
As it is suggested in your
image_handler_readme.html, zen_lightbox needs to be installed (or some files to be re-written) after IH installation.
Therefore I uninstalled
zen_lightbox-v1.6.4_1, by manually deleting all the files and running the uninstall.sql to make sure that nothing remainde of both IH and zen_lightbox installations.
Following your install instructions, I did reinstall
Image Handler 4 for v1.5.x - Version: v4.3.2. In ZC_admin the installation went ok (all green messages).
Then I proceeded with the installation of
zen_lightbox-v1.6.4_1
Here is the URL of a test product:
http://leather-jackets-leather-fashi...t-002-p-9.html
Looking at the DOM source of the page, I am puzzled by looking at the directories that the images are located in:
- productMainImage: <img src="images/medium/FOLDER_NAME/002_MED.jpg".........../>
- productAdditionalImages: <img src="images/FOLDER_NAME/002_01.jpg"........./>
Here is part of the DOM source code:
Code:
<!--bof Main Product Image -->
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>');
//-->
</script>
<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 "><br><span class="imgLink">larger image</span></a>
<noscript>
<a href="http://leather-jackets-leather-fashion.com/index.php?main_page=popup_image&pID=9" target="_blank"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>
</noscript>
</div><!--eof Main Product Image-->
<!--bof Additional Product Images -->
<div id="productAdditionalImages">
<div class="additionalImages centeredContent back" style="width:25%;">
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="bmz_cache/4/49744121e52c7d8d3fcdd0ac7c72cf72.image.661x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/FOLDER_NAME/002_01.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " width="144.666666667" height="175" /><br />larger image</a>');
Here is the code from main_product_image.php, showing that IH made the needed changes:
Code:
<?php
/**mod Image Handler 4.3.2
* main_product_image module
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @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 $
* Last modified by DerManoMann 2010-05-31 23:41:53
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
//Begin Image Handler changes 1 of 2
//the next three lines are commented out for Image Handler 4
//$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;
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
//End Image Handler changes 1 of 2
//Begin Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
// 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;
//}
//End Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
/*
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
So please can you tell me what went wrong, and why I have 2 different URL's showing?
Many thanks for your help,
Goshawk
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Not true.. the IMAGE HOVER feature of Image Handler doesn't work on the medium images displayed on the product information page.. Otherwise image Handler manages ALL product and category images..
Tells me that you uploaded your main product image (the "medium image") to a folder called "
/images/medium/Jenny/":
http://leather-jackets-leather-fashion.com/images/medium/Jenny/002_MED.jpg. Your other images on the other hand are located in a folder called "
/images/Jenny/":
http://leather-jackets-leather-fashion.com/images/Jenny/002_01.jpg.
Your medium image gives one a 403 error (which is why it doesn't display). 403 error aside, the first thing that stands out for me is that there is NO REASON for you to put images in the "medium" or "large" image folders, nor is there any reason to name your files as you have done with the "_MED" appended to the file name. In fact you should NOT use these folders or naming conventions at all..
As stated frequently in this support thread and in the IH4 readme instructions, you DO NOT (SHOULD NOT) need to upload specific small, medium, or large images at all.. You do not need to upload images to the "medium" or "large" image folders, nor do you need to append "_MED" or "_LRG" ro your file names.. Upload your LARGEST IMAGE and IH4 will generate optimized small, medium, and large images for you. So I would start with removing the images in the "
/images/medium/Jenny/" folder and edit the product to make sure the largest main product image is in the "
/images/Jenny/" folder.
Secondly because of the way ZEN CART magaes additional images, you are going to need to change your image names from what I assume is the default manufacturers image names. Your images names should NOT contain ANY numbers otherwise you will find that eventually images that belong to one product will appear on other products as well..
I stand corrected. I obviously did a less than thorough review of the situation. Keep up the good work.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi Everyone...
I seem to be having an issue. I have installed the Image Handler 4 and I am now getting Page Not Found when I ad product to cart. Any ideas? I believe I installed everything correctly as I have installed this thing about million times before on other sites, but there seems to be a problem here, not sure what needs to be checked. Thanks.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
amandavz
Hi Everyone...
I seem to be having an issue. I have installed the Image Handler 4 and I am now getting Page Not Found when I ad product to cart. Any ideas? I believe I installed everything correctly as I have installed this thing about million times before on other sites, but there seems to be a problem here, not sure what needs to be checked. Thanks.
I have run across this in only one situation, it had to do with the dimensions of the image. On my site I have to have the maximum dimension in either height or width less than 1024. When I had run across this, if I added the picture I would get a page not found response in admin. If the image appeared on the main page, I would receive the same. If the image was not on either of those, then things would work, but as soon as I selected an option that was to display the image, then it would fail out again and I would have to back up to a previously functional screen.
Ultimately I think I had to go into mySQLadmin and remove the picture reference so that things would function again. Then I downsized the picture(s) and uploaded again without issue.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
I have run across this in only one situation, it had to do with the dimensions of the image. On my site I have to have the maximum dimension in either height or width less than 1024. When I had run across this, if I added the picture I would get a page not found response in admin. If the image appeared on the main page, I would receive the same. If the image was not on either of those, then things would work, but as soon as I selected an option that was to display the image, then it would fail out again and I would have to back up to a previously functional screen.
Ultimately I think I had to go into mySQLadmin and remove the picture reference so that things would function again. Then I downsized the picture(s) and uploaded again without issue.
Well...my images are set to 150x150, 400x400, and 550x550. I don't seem to be having any issues in the back end of this, just the front. When I add product to cart, it takes me to the page not found.
I did go through my FTP and saw that it had files missing from the install, so I loaded them and am still having the same issue. Not sure what to do now.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
amandavz
Well...my images are set to 150x150, 400x400, and 550x550. I don't seem to be having any issues in the back end of this, just the front. When I add product to cart, it takes me to the page not found.
I did go through my FTP and saw that it had files missing from the install, so I loaded them and am still having the same issue. Not sure what to do now.
and what makes you think that this is an issue cause by IH4?? IH4 would NOT affect the shopping cart behavior you describe (otherwise many others would report the SAME issue).. What other modules have you installed?? If you roll back your install to a pre-IH4 state do you still have the same problem??
Also a link to your site would be quite helpful.. (as suggested on page 1 of this support thread and in the readme file..)
-
Re: Image Handler 4 Support Thread (BEFORE YOU POST A SUPPORT QUESTION HERE)
Tips for posting IH4 support requests..
Quote:
Originally Posted by
DivaVocals
BEFORE YOU POST A SUPPORT QUESTION HERE READ THROUGH THIS SECTION (this is from the Image Handler readme file):
Troubleshooting Basics
Make sure your custom template is active. (Admin > Tools > Template Selection)
Make sure Image Handler 4 is installed. Admin > Tools > Image Handler4 > Admin Tools. Set permissions in both your images and bmz_cache folders to 755 (eg: both of these folders need to have the same permissions).
If Image Handler 4 does not work or gives you errors:
- Make sure all files are in correct location
- Make sure you uploaded ALL the Image Handler 4 files
- Make sure the files are not corrupt from bad FTP transfers
- Make sure your file merge edits are correct
- MAKE SURE YOU RE-READ THE CONFIGURATION AND USAGE SECTIONS!!!
- Make sure that there are no javascript conflicts from other programs
- Make sure that your main product image files names DO NOT contain any special characters
ie: non-alphanumeric characters such as
/ \ : ! @ # $ % ^ < > , [ ] { } & * ( ) + =
Always use proper filenaming practices when naming your images - See this document as a reference: http://www.records.ncdcr.gov/erecords/filenaming_20080508_final.pdf\
When posting bugs/issues about Image Handler 4, it's a WHOLE LOT more helpful to resolve them if you post details. Just saying "it's broken" or "doesn't work" does not provide nearly enough information to help YOU resolve YOUR issue.
Please provide as MUCH information as possible including:
- The version of Zen Cart you are running
- The version of Image Handler 4 you are running (you can see this by going to “Admin > Tools > Image Handler4” – the version is displayed in the upper left hand side)
- Any other add-ons you may have also installed
- Hosting/server information (PHP versions, mySQL versions, hosting provider etc)
- The EXACT error/issue you are experiencing
- AND if you're REALLY detail oriented, tell us the install sequence/method you used to install Image Handler 4.
- Post a link (not a screen print) to a specific product/product listing page where the issue you are experiencing can be seen (Please DO NOT make folks fish through your site looking for an example of your issue)
AND this last point is important.. The volunteers who help here need to SEE what you see LIVE. A screenprint really isn’t good enough.
And a (gentle) reminder about FREE forum support:
This is ain’t Microsoft folks!
(a frequently used analogy by some to compare open source projects to commercial projects)
Like other open source projects, this support forum is manned by VOLUNTEERS (ie: unpaid folks). They are not OBLIGATED to assist here, but they do so because they WANT to. They give of their time here when their individual schedules permit. Usually the response is pretty quick 'round these parts, but when it’s not or your question has gone unanswered this may mean one of a few things:
- NO ONE has an answer to your question/issue.
(Some folks will only respond when they have something MEANINGFUL to say versus a blanket “I don’t know how to do that” kind of answer.) - Folks are just busy and will answer if/when they can..
(family and other personal obligations, day jobs, paid jobs, etc will usually trump forum participation – this is to be expected – after all it’s unrealistic to expect that folks are sitting around this forum all day and night waiting to answer questions) - Your question got missed. (and while I’m on this point) Your post MIGHT have been missed if your post is now a FEW pages back (like more than TWO or more pages) with no response.. Missed does NOT mean “it’s been an hour and no one responded to my question, so let me 'bump' the thread by re-posting my question again”
Anyway.. carry on.. Enjoy the new version..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Well...I didn't think so either. I am working on a site for a girl and I cleaned up her layout (no installs) and installed the image handler for her. When I left I didn't see any issues and everything seemed to be working beautifully although I didn't try adding any items to the cart so I am not sure what happened between the time I did the install and this morning. I will wait to hear from her and get back to you with more details...or another thread somewhere. LOL. Sorry...but thanks for your help.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Okay...I see that she also cannot receive message from her store either. There are no files in Image Handler that would cause this is there? Just double checking so that I can get this pinned down. Thanks for all your help.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
amandavz
Well...I didn't think so either. I am working on a site for a girl and I cleaned up her layout (no installs) and installed the image handler for her. When I left I didn't see any issues and everything seemed to be working beautifully although I didn't try adding any items to the cart so I am not sure what happened between the time I did the install and this morning. I will wait to hear from her and get back to you with more details...or another thread somewhere. LOL. Sorry...but thanks for your help.
Quote:
Originally Posted by
amandavz
Okay...I see that she also cannot receive message from her store either. There are no files in Image Handler that would cause this is there? Just double checking so that I can get this pinned down. Thanks for all your help.
No.. otherwise others would report the issue.. but based on the files IH4 modifies, and the function it provides, there would be no logical reason to conclude that IH4 is the cause of the issue you describe.. I suggest you roll back the store to where it was before you installed IH4, and resolve the checkout issues.. My guess is that some other edits you've done are the source of the issue or it was an issue that PRE-EXISTED before your made your changes..