The problem was resolved
Printable View
The problem was resolved
crazy how we can't creat new threads for this module - they all get wrapped up in one and it's impossible to search for your issue..
anyway, i just tried uploading some png files and they show fine the admin section but when i go to my site, they show up with an 'x' in them.. so i went to image handler in teh admin section and did a 'preview' and got error messages.. so then i converted the png files to jpg and the site look fine BUT in the admin/image handler section when i do a preview it shows the png files with an 'x' in them (even though i now have no png files on my site).. is there something about png files that image handler does not like?
I'm sure I am just over looking something but i just installed the Image Handler on my site. The problem im having is all my categories and my layout boxes on the right side are gone now just on the index page. When i go to admin and remove IH from database all returns to normal.
I have searched the forums and havent found something relating to this.
Suggestions?
There is an error in includes/classes/bmz_image_handler.class.php which may stripe out all your parameters setting when you use zen_image
Open that file, look for
replace that whole function byPHP Code:
function get_additional_parameters($alt, $width, $height, $parameters) {
PHP Code:
function get_additional_parameters($alt, $width, $height, $parameters) {
global $ihConf;
if ($this->sizetype == 'small') {
if ($ihConf[$this->sizetype]['zoom']) {
if ($this->zoom['file'] == '' || !$ihConf[$this->sizetype]['hotzone']) {
// if no zoom image, the whole image triggers the popup
$this->zoom['startx'] = 0;
$this->zoom['starty'] = 0;
$this->zoom['width'] = $width;
$this->zoom['height'] = $height;
}
//escape possible quotes if they're not already escapped
$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
$alt = str_replace('"', '"', $alt);
// strip potential suffixes just to be sure
$src = $this->strip_sizetype_suffix($this->src);
// define zoom sizetype
$zoom_sizetype = ($this->sizetype=='small')?'medium':'large';
// additional zoom functionality
$products_image_directory = substr($src, strlen($ihConf['dir']['images']), strrpos($src, '/') - strlen($ihConf['dir']['images']) + 1);
$products_image_filename = substr($src, strrpos($src, '/'), strlen ($src) - strrpos ($src, '/') - strlen ($this->extension));
$products_image_zoom = $ihConf['dir']['images'] . $zoom_sizetype . '/' . $products_image_directory . $products_image_filename . $ihConf[$zoom_sizetype]['suffix'] . $this->extension;
$ih_zoom_image = new ih_image($products_image_zoom, $ihConf[$zoom_sizetype]['width'], $ihConf[$zoom_sizetype]['height']);
$products_image_zoom = $ih_zoom_image->get_local();
list($zoomwidth, $zoomheight) = @getimagesize($ihConf['dir']['docroot'] . $products_image_zoom);
// we should parse old parameters here and possibly merge some inc case they're duplicate
$parameters .= ($parameters != '') ? ' ' : '';
return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
}
return $parameters;
}
return $parameters;
}
What is the best way to uninstall IH? I have it installed in a ZC 1.3.8a cart and there are some mod conflicts I want to check, but to do so I have to uninstall IH...
I am looking for the best/safest way.
thanks.
HI
I have zen cart 1.3.8a working OK till now. I installed IH2 and i was able to resolve some issues (mouse hover and zoom on images specifically) .
Just go to your ADMIN menu- tools-imagehandler- (choose admin on its menu) remove IH. there is no other way to uninstall it. Don`t erase files on server.
I am thinking about your problem may be other Add ons because my website works without conflicts
check it out
www.caliventas.com
No, did not, but now I have another big problem.
I also loaded jscript_imagehover from tophand.
Replaced both files from originals but no images load.
Cleared bmz_cache to no avail.
Cannot figure out what is going on.
Restored from previous backup and same thing.
Updated wamp server to latest version, no joy.
Please help.
Disregard, I do have site when restoring from backup.
It's only that I am doing a major overhaul in test site: adding products, manufacturers, categories, etc.
This reorganization includes reorganizing image location and redong all old products, so some images don't show.
Sorry about pushing the panic button.