-
Re: Image Handler 2 Support
I'm desperate!
I've just complete reinstall new fresh zencart.
the first option is image handler, but the problem remain.
Only when I try to add a new image from image handle manager, HTTP 403 forbidden page show me
folder image=777
folder bmz=777
Help me, please!!!
-
Re: Image Handler 2 Support
Although dir. permission may be correct it could be a problem with Ownership permissions and/or version of PHP being used and how it is setup.
Most Hosters are willing to work with their Clients with permission type problems and can clear up, or least explain, whatever problems you may be having. Your Hoster is also much more familiar with your account setup and commone problems, and can usually provide faster help as well.
-
Re: Image Handler 2 Support
Hi all,
I loaded image handler 2-- first to my demo site for testing and all worked well.
I then loaded it to my custom template and site. Some images had the rollover pop up - some did not. Also i could not change the background color of the images.
I thought i did everything by the instructions, but I must have missed something.
Anyone have some idea of why only some images will pop up with the rollover and why none of the image backgrounds can be changed.
I am using the latest versions of ZC.
~Thanks
Bill
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Website Rob
Although dir. permission may be correct it could be a problem with Ownership permissions and/or version of PHP being used and how it is setup.
Most Hosters are willing to work with their Clients with permission type problems and can clear up, or least explain, whatever problems you may be having. Your Hoster is also much more familiar with your account setup and commone problems, and can usually provide faster help as well.
How can I see the ownership permission?
I've 2 website: in the first I've php 4.4.1 and alla work well; on the second I've php 4.4.4 and I've the problem I tell in this thread.
Is this the problem?
-
Re: Zen Cart has gone blank after install
Quote:
Originally Posted by
neo314
If the permissions or ownership of the files/directories is incorrect, that would be a problem. is the bmz_cache directory set to 777?
Is the ownership of the zencart files the same as that of the IH files?
Ive gone for a complete reinstallation of zen cart. - Checked that zen cart works fine. Then I install IH by uploading the folders.
Still no luck Zen cart stops working cant access front of store or admin. When I turn on display php errors i get.
Warning: main() [function.main]: open_basedir restriction in effect. File(/bmz_gif_info.class.php) is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/httpdocs:/tmp) in /var/www/vhosts/mywebsite.com/httpdocs/includes/classes/bmz_image_handler.class.php on line 12
Warning: main(bmz_gif_info.class.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/mywebsite.com/httpdocs/includes/classes/bmz_image_handler.class.php on line 12
Fatal error: main() [function.require]: Failed opening required 'bmz_gif_info.class.php' (include_path='.:') in /var/www/vhosts/mywebsite.com/httpdocs/includes/classes/bmz_image_handler.class.php on line 12
The persmisons are of bmz_cache are set to 777. The ownership of the zencart files are the same as that of the IH files.
I can get rid of the first line the one with the 'open_basedir restriction' I do this by adding the complete route to line 12 i.e. http://www.mywebsite.com/....../bmz_gif_info.class.php.
My isp wont help me as it is a dedicated server. They said it is likely to be my php settings, which I have not changed so are the default installation settings.
It would make sense if this was the case. Ive turned safe mode off on the specific domain but maybe my php settings are too secure for the IH module? Does anyone know what settings are the optimum to run IH?
Still confussed! :blink: Please dont stop helping zen people
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
sleepless
Hi,
Let me start off with an apology if this has been asked and answered and I missed it.
I am using the latest version of Zen Cart 1.3.5. I have the the image handler 2 installed as well. I notice when I visit a page on my site with 6 or more products listed, when you scroll down the page, the medium image pops up at the top of the page and out of sight.
http://www.kellyscountrycorner.com/s...e=products_new
This only happens, as far as I know, in IE. FireFox is fine.
Is anyone else having this issue? If so is there a fix?
Thanks,
Kelly :smile:
includes\templates\template_default\jscript\jscrip t_imagehover.js
Js error in IE the first fix I did was to get rid or the yellow ? at the bottom of the screen, now to fix the problem above as well also involve editing line 124
If you have not edited the line
The line should read
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
Change it to:
ycoord += truebody().scrollTop + event.clientY-currentimageheight;
If you have edited the line it will read:
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) - docheight - truebody().scrollTop));
Change it to:
ycoord += truebody().scrollTop + event.clientY-currentimageheight;
You should have good functionality in IE and Firefox, (Not Netscape (Did not work with netscape before anyway)), needs more work for that. I have finished with this for now since I have had only 1 visitor with Netscape in last 6 months.
Hope this helps.
Ps Where has Tim gone?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Darkwander
I can't get the bloody water marks to work, i only use small images for the moment and i am using Internet Explorer.
Is there something else i am suppose to change ?
Anyone have any ideas...
-
Re: Image Handler 2 Support
For now, if you want there is a little handy utility to do watermerking, one or batch processing. its free
http://www.picture-shark.com/download.htm
Hope this helps.
Imagehandler is working fine on my servers?
Hope this helps
-
Re: Image Handler 2 Support
Ok My problem is now sorted!!!
I deleted line 12
require_once('bmz_gif_info.class.php');
and replaced it with the contents of bmz_gif_info.class.php
Everything now works!!!! Including all IH.
So why does the script use require_once('bmz_gif_info.class.php');???
No other scripts in includes/classes call a script.
Ive found nothing which is missing, zoom, compression, and watermarks all work.
:D
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
100asa
How can I see the ownership permission?
I've 2 website: in the first I've php 4.4.1 and alla work well; on the second I've php 4.4.4 and I've the problem I tell in this thread.
Is this the problem?
My ISP solve the problem: have setup a parameter in mod security (this was your reply my trouble ticket).
Now all is working
-
Re: Image Handler 2 Support
Hi.
I've loaded IH2 everything seems to be working fine except one thing..After loading a new product, I enter the site to check that its loaded correctly, and I always get this:
Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/name/html/includes/classes/bmz_image_handler.class.php on line 531
The only way I can make it go away is by clicking the refresh button. There must be something missing somewhere, or a file permission I've missed somewhere but I've double checked and they all seem fine..Can someone HELP?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
focus360
Ok My problem is now sorted!!!
I deleted line 12
require_once('bmz_gif_info.class.php');
and replaced it with the contents of bmz_gif_info.class.php
Everything now works!!!! Including all IH.
So why does the script use require_once('bmz_gif_info.class.php');???
No other scripts in includes/classes call a script.
Ive found nothing which is missing, zoom, compression, and watermarks all work.
:D
I'm glad that is fixed. It is odd that you had this problem and I did not.
I'll certainly keep this in mind in case something crops up. I just moved my under construction zcart to another server and it continued to work... so far.
:unsure:
-
Re: Image Handler 2 Support
Me too, have no probs at the mo
Where is Tim?
-
Re: Image Handler 2 Support
Hi I am having a bizzare problem with imahe handler - If I change the size of the images via zen after loading them up via image handler my zoom no longer works???
Have installed 1.35 the put on sefu (I know if I put this on after image handle weird things have happened) added 2 products and images via image handler - everything was fine wee zooms working and then after changing the small image size (to make my additional pics bigger) the zoom has gone.
Have tried uninstalling and reinstalling, clearing cache - turning zoom on & off putting small image size back to what it was before but nothing is working - completely and utterly stuck????
-
Re: Image Handler 2 Support
Is there a way to disable the rollover image popup and leave the rest intact? Thx!
-
Re: Image Handler 2 Support
Yup - go to images and then turn the small image zoom to no.
-
Re: Image Handler 2 Support
HI this does seem to be a bug - I have had the same thing happen on another store (one 1.32 & one 1.35) if you install image handler and then change the small image size in config>image the zoom effect dissappears and does not come back....
No matter what you do - has anyone else had the same issues or managed to solve this?
Cheers totally stuck...
-
Re: Image Handler 2 Support
I'd like clarification about the 777 permissions on the bmz_cache directory. Also the files are defaulting 666 - why not 644?
I've tried 755 and it seems to work fine, I've not yet tried changing the 666 > 644. What precautions do people take that use the open 777 permissions, and is there some problem if I continue to use the 755 setting?
Any other thoughts or ideas out there on this topic?
-
Re: Image Handler 2 Support
The way image handler works is it needs the same permission set on BMZ cache as your image folder - different permissions allow different levels of access to files I have a linux server and setting a file to 444 normally means it cannot be accessed via a web browser where a file with 777 can be seen and accessed by all.
When files get ftp'd they don't go up with a open permision (i.e777) you as the server adminstrarter have to set these. It protects your files.
If you do a search on goggle for folder permissions you'll find more info.
So basically pop your files up - make your BMZ cache match your image folder permissions and you should be set to go.
-
Re: Image Handler 2 Support
If I use IH do I still need to upload image_LRG.jpg?
If so does anyone know how to quickly rename about 2000 jpgs (preserving the orignal name)
Eg I have 05368002560.jpg and I need 05368002560_LRG.jpg Iknow images can be renamed in photoshop batch, but as far as I know it does not preserve the original name.
If not, why does my IH zoom and larger pic pop-up, only display pics the same size as is loaded?
help
-
Re: Image Handler 2 Support
Nope image handler created the thumbnail (i.e main pic) medium pic & the large pic for you. If you read the documenattion that comes with image handler it will explain all. If you need to add a prefix or sufix - the batch export process in fireworks works really well.
One thing to check is that your product listing pic is not the same size as your product imfo pic - also make sure image handler resize is set to yes and proprtianl pics is set to 1 - all you need to do is add a product click the i icon pic up your pic and thats it 3 pics created for you no )_LRG or _MED.
-
Re: Image Handler 2 Support
Still need a fix to turn the small image zoom back on after changing the small image size in config>images
Any advice apprecaited
-
Re: Image Handler 2 Support
Thanks for the response Peanut
My experience covers server permissions basics pretty well. I do use a linux/apache server setup.
I assumed 755 would work as the main image folders use it - although the bmz directory has to be written to.
I tested it and all was fine. I just don't understand why anyone would allow 777 even tempoarily; perhaps some servers require it but this seems nuts.
Question: Why are all the image files created by IH in this bmz_cache directory defaulting to 666. I've changed them to 644 and the folders to 755. but I think when it creates new files they will probably be 666. So the routine is that one needs to remember to track them down each time new images are added?
PS- What is the batch export process in Firefox you mention? Is it part of the developer's toolbar?
-
Re: Image Handler 2 Support
Just a post to inform that IH2 for 1.3.5 works perfectly with 1.3.6. Was installed on a testing site without any visible errors after running some tests.
Have fun!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
oceano
Thanks for the response Peanut
My experience covers server permissions basics pretty well. I do use a linux/apache server setup.
I assumed 755 would work as the main image folders use it - although the bmz directory has to be written to.
I tested it and all was fine. I just don't understand why anyone would allow 777 even tempoarily; perhaps some servers require it but this seems nuts.
Question: Why are all the image files created by IH in this bmz_cache directory defaulting to 666. I've changed them to 644 and the folders to 755. but I think when it creates new files they will probably be 666. So the routine is that one needs to remember to track them down each time new images are added?
PS- What is the batch export process in Firefox you mention? Is it part of the developer's toolbar?
fireworks.. not firefox :). fireworks is an image editing program.. just misread it :)
-
Re: Image Handler 2 Support
I have searched around and cannot find any posts on this, I think, simple question.
Is there a way to remove the little "plus sign" + from the lower right corner of the product thumbnails that image handler 2 creates?
Thanks
j
-
Re: Image Handler 2 Support
I started a thread a couple days ago - This thread is located at:
http://www.zen-cart.com/forum/showth...1&goto=newpost
which was has been determined is a IH2 problem in 1.3.6.
Can IH2 be corrected to work with 1.3.6 or do core files need to be altered?:unsure:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
greenongreen
I have searched around and cannot find any posts on this, I think, simple question.
Is there a way to remove the little "plus sign" + from the lower right corner of the product thumbnails that image handler 2 creates?
Thanks
j
Yes - but I can't remember where exactly the info is...try the IH documentation on www.breakmyzencart.com
-
Re: Image Handler 2 Support
Ok, I'm probably being a thicky here but I am having problems with Image Handler!
It's all installed ok but when i go to admin--->tools--->image handler and, add a new image all the sizes are the same! I am copying the image into the Default image file whilst leaving the medium image files and large image files blank.
I have set the permissions on bmz_cache to writable so this isn't the problem.
Has anyone got any ideas?
Thanks,
Gary :smile:
Oh - I did look in the forums for the answer to this but couldn't find it!
-
Re: Image Handler 2 Support
Hi Gary
1st thing I would check is admin>confi>images - to check what sizes your product info images etc set to - if these are all the same your images will be resized by image handler to be the same size.
The normal set up is your main/thumbnail picture - i.e product listing image to be smaller than the product info/medium picture and the karger one to be bigger also double check that you have image handler set to resize your pics.
Don't touch the small image size if you want the zoom effect to work (I did this and broke it and don't have a clue how to fix it....)
Hope this helps
-
Re: Image Handler 2 Support
Hi Peanut,
Thanks for the reply. I've taken a screenshot of admin-->config--->images section on my account and i think it looks ok.
The screenshot is http://www.handcrafteduk.com/Product...k/untitled.JPG
if someone wouldn't mind taking a look? BTW..I'm not going to use the zoom effect.
Thanks,
Gary :smile:
-
Re: Image Handler 2 Support
Hi Gary
Had a click look at your site too - image handler won't make your pics bigger - it works on resizing smaller (as far as I know) so if the pic you put through image handler is only 250 pixles wide it won't make it any bigger
Don't know if that helps any.
I have used image handler on a few sites and the only issue I have ever had is losing the zoom by changing the small image size.
I would try putting a large pic through - i.e say 400 pixles by 400 pixles and this should then resize it down to the smaller sizes you have
-
Re: Image Handler 2 Support
peanut77 you're a total genius - thanks. :smile:
Now I've got that sorted (and whilst I'm here!) do you have any ideas why, when i click on one of my products why there is no photo for the larger image? there is a link in place of the photo which, when clicked is blank! ( http://www.handcrafteduk.com/index.p...ndex&cPath=1_4 )
Don't worry if you're not sure - you've already helped me enough today! :wink2:
-
Re: Image Handler 2 Support
Unfortunately I'm no genuis but been stuck on enough stuff and pulled enough hair out to answer this one :-) and I'm hanging round this forum like a bad smell in the hope someone will take pity on me and help me solve my vanishing zoom problem...
In the case mentoned above - i would simply go back and use image handler to put your pics on saves any hassle - and remember if you like image handler make a wee donation.
-
Re: Image Handler 2 Support
Hello!
I'm back!! :blush:
I've managed to get the images do all be different sizes now but there's a problem. The photos all appear fine on the initial product page ( http://www.handcrafteduk.com/index.p...ndex&cPath=1_4 ) but when you click on one of the didgeridoos, instead of the medium image appearing there is a blank space. When clicking on 'teak didgeridoo - larger image' it is blank.
I've set the permissions in images/medium and images/large to allow zencart to write there but it didn't solve the problem. Oh, also the folder bmz_cache is writable.
Any ideas?
Thanks,
Gary :smile:
Oh, and Peanut, I hope you've solved the zoom issues!
-
Re: Image Handler 2 Support
I'm not sure how you are entering product info, but the browser is trying to find http://www.handcrafteduk.com/images/...20(11)_MED.JPG which doesn't exist.
It shouldn't be doing that anyway with IH2 installed - and did you use the latest version from the Downloads section or did you get it from www.breakmyzencart.com? (Sadly, Tim seems to have disappeared from view and the version on his site is now out-of-date)
I haven't got time to speculate on possible problems, but if you want to PM me admin access details, I'll take a quick peek for you and see if it's anything obvious.
-
Re: Image Handler 2 Support
Eureka!!! I found out what i was doing wrong.
Just in case anyone is having the same problem I'll point out my error! When I was uploading my image I was only putting it into the default image file thinking it would automatically scale, and insert, it into the larger images on the website. This obviously isn't the case!
So, when adding an image browse and put THE SAME image in default, medium and, large and it'll work.
I bet everyone else already knows this! :P
-
Re: Image Handler 2 Support
Actually that's not necessary - but if it works for you, that's fine.
Normally, the first image is added via the product data entry page and placed in the directory you want it in. The section you are using is usually best used for adding additional images.
-
Remove Plus Signs
I posted this question earlier and was told to visit breakmyzencart but found no answer.
Does anyone know how to remove the Plus Signs + that image handler creates on the bottom right of the thumbnails? Or maybe just a lead to what files to look at.
THanks,
j
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
trippy1976
I found how to change the medium image. It's the Product Info - width and height parameters under admin-->config-->images
Bad news is I have to re-do my template if I want my medium images to be larger :) Guess it uses the same on the IH zoom as it does in the product images space on an item's listing. Which blows out my template. Oh well :)
Don't know if someone else has figured this out yet, but if you want your small images' zoom to use the large image (instead of the medium) I figured out how to do that (see at www.zencart136.jadetrue.com). Open up includes/classes/bmz_handler.class.php and find aprox line 691:
Code:
$zoom_sizetype = ($this->sizetype=='small')?'medium':'large';
to
Code:
$zoom_sizetype = ($this->sizetype=='large')?'medium':'large';
Hope that helps some!
-
Re: Image Handler 2 Support
Along with a few other people think I foudn a bug:
When writing in the BMZ Cache the script is automatically naming all folders and images as user / group apache / apache, can anybody confirm this?
The Zen I am working on is on Plesk, anybody know where to change it to save me looking?
-
Re: Image Handler 2 Support
Just wanted to suggest a feature for image handler.
I miss the way the old IH handled images, by creating a small/medium/ and large in their own folders. I host quite a few websites where the people aren't all that computer savvy, and they have no idea how to reduce the size of their images from their camera before uploading. IH2 does its job by reducing the size of the images for the web, but doesn't address the issue of storage of these super large images. With the old version, I could just suggest to people that were running out of space that they could just delete all images in their /original folder if they had originals locally.
I would love it if IH2 could somehow replace the original image with the large size image, or somehow offer a batch resizing option to save space on the server.
Just my .02~
-
Re: Remove Plus Signs
Admin --> Configuration --> Images
Look in there.
Quote:
Originally Posted by
greenongreen
I posted this question earlier and was told to visit breakmyzencart but found no answer.
Does anyone know how to remove the Plus Signs + that image handler creates on the bottom right of the thumbnails? Or maybe just a lead to what files to look at.
THanks,
j
-
Re: Image Handler 2 Support
Hi - Just to post the solution for something which was driving me insane - I broke the image handler small image zoom by amending the small image size in config>images and couldn't fix it or find a fix (unistalled reinstaled etc etc) so to end a long story
Your small image sizes must be the same size as your product listing image sizes or the zoom won't work (this was also causing errors to be thrown up as well).
One happy image handler bunny :-)
-
Re: Image Handler 2 Support
Has anybody got any experience making image handler use image magick?
I defined it in the extra conf files - anything else I am missing?
Thanks, Alex
-
Re: Image Handler 2 Support
Just got Image Handler up and running.
I have a product that is supposed to have a second image:
http://216.246.55.121/~obaby/shop/in...products_id=41
in the place where the image is supposed to be, i get :
} // endif
actually, the } // endif is on every product page...
Can someone help me get the second images back?
Thanks, ad
-
Re: Image Handler 2 Support
First I want to say this is a great contribution to zen-cart! thank you!
Second I have a question:
* Will there be an option to have mouseover attribute images? The same technique as the normal images, but for the attribute images.
I don't know if it's already there, but I couldn't find it with the forum search!
Thanks in advance!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
thetankgirl
First I want to say this is a great contribution to zen-cart! thank you!
Second I have a question:
* Will there be an option to have mouseover attribute images? The same technique as the normal images, but for the attribute images.
I don't know if it's already there, but I couldn't find it with the forum search!
Thanks in advance!
Very unlikely - the author of the module has not been seen for several months now; although it's possible someone else may consider enhancing it.
-
Re: Image Handler 2 Support
I have a problem in that the category images zoom no problem, however when you get into the categories the images in the product list do not zoom... andy ideas?
I know the server has php5 without gd (I wish I knew how to reinstall with gd or just go back to php4 with gd.. but I dont) could this be the problem?
the site is http://jaffasworld.co.uk
thanks in advance
-
Re: Image Handler 2 Support
This is what happened to me - double check that the small image size is not set to be smaller than the product listing size or the images don't zoom.
-
Re: Image Handler 2 Support
Has anybody been able to get IH2 working on 1.3.6 after upgrading from 1.3.5?
I am trying to upgrade but for some reason none of my old product images are showing up. I uploaded the bmz cache folder that contained all the images, I uploaded all the IH2 files, and imported my database.
IH2 itself seem sot be working ok. I was able to add images to a couple of test products I created.
However, I can't get the old images I had on the 1.3.5 version of the store to display. If I go to IH2 Manager I don't see any images assigned to the products.
help :(
-
Re: Image Handler 2 Support
-
Re: Image Handler 2 Support
I'm having the same problem as alexblom, where all the images are being created as user apache and group apache, a non-existant user and group on my server. As a result of this, the premissions are restricted on the cache files, and Image Handler can't write to them or delete them once they have been written for the first time. This is causing all sorts of errors, with Image Handler recreating each cache image on every page view, with some images never showing up and other pages just refusing to parse.
My host is a quality one and has very low cpu/bandwidth use, so that isn't the issue.
Is there any way to force image handler to write with the correct user and group? We have that php extension installed that forces programs to write with the correct user and group, but Image Handler seems to make an exception to that.
Failing that, is there another mod with the 'automatically resize images' function? I can deal with one dependent on GD or ImageMagick.
Many thanks.
-
Re: Image Handler 2 Support
Also, forgot to mention that I'm runnning a Plesk control panel on CentOS.
-
Re: Image Handler 2 Support
Hi everyone.
I have a problem with IH. I upgraded to 1.3.6, made sure all my permissions for images and bmz_cashe folders were correct and corresponding with each other and came up with this prob.
Code:
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/b/b86296bbaa236efe649500691a3135fc.image.44x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/4/418fead62bb78eb5521701c6c5c2a306.image.59x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/9/9eb10a9a007ca23ae7c90d6f7c652914.image.73x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/2/2b2762445b2407b8421481f8087b030b.image.40x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/b/b8f18a290f5f5e77c3920c3fabc5ec28.image.39x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/4/445e0202529f1d2529e686803b7c2989.image.53x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/f/f2a50cd8b3858f80b8b5762c4b4faa2d.image.50x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/2/2b0ca90e7ce5abba1b1d3d8cc51667a5.image.42x110.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/8/8920da66b7ba644bea2dc59db63ed24f.image.90x108.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/5/5be3bc43731790e42480ddf8cde1b2c9.image.90x72.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
Warning: imagejpeg(): Unable to open '/home/showgirl/public_html/bmz_cache/c/ce0bf956b8fcf753d7e6a5d2bbbb18f2.image.90x90.jpg' for writing in /home/showgirl/public_html/includes/classes/bmz_image_handler.class.php on line 652
so I unistalled, cleared cache then reinstalled and still have this problem.
The corresponding line these warnings refer too in the bmz_image_handler.class.php file is as below.
Code:
$ok = imagejpeg($image, $dest_name, $quality);
BTW - I did notice this issue mentioned earlier in the thread, but this didn't help me in any way.
does anyone have any ideas on how to fix!!
TIA
-
Re: Image Handler 2 Support
make sure you changed the file permissions on ALL the subdirectories inside the bmz_cache folder.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
polarduality
make sure you changed the file permissions on ALL the subdirectories inside the bmz_cache folder.
Thanks polarduality but did that prior to posting!!
-
Template Override system
Image handler overwrites several ZC files. Is it okay to use the template override system instead? Thanks.
Steve
-
Re: Image Handler 2 Support
UPDATE:
ok, not sure why it happened in the first place, but after thinking about for a while, I managed to fix it.
THE FIX for anyone else who might come across this prob.
I decided to re-unistall IH2 and clear the cache. After I did this in the Zen admin, I then checked the bmz_cache folder on the server to make sure it was cleared and low and behold it was'nt. (not sure why this did not work when clearing IH cache in zen admin)
I then manually cleared each and every sub directory under the bmz_cache folder on my server.
I then went back into my admin >>> tools >>>> IH2 >>> admin and re-installed the IH.
Presto - PROBLEM FIXED :D
Hope this helps if anyone else has this problem, but before doing this fix, first check that your permissions in your images and bmz-cache folders are both set to 777 as you don't want to un-necessarily do this if your problem is that of inconsistant permissions.
-
Re: Image Handler 2 Support
Hmmm....tried that...still didn't work.....
-
Attribute images with Image Handler 2
Hi There,
I have successfully installed IH2 and my sites looks much better for it in IE6 which doesn't handle client-side scaling at all well.
There are however a couple of things which I need to get working and any help/pointers would be great:
1) Attribute images are still poor quality, client-side scalings not handled by IH2. Is this a problem with my install? Or has support for this not been developed?
If the case is the latter, then is there an easy way for me to call images using IH2 so that can have a go at making the changes myself? Or can anyone on the list recommend an alternative solution?
2) I would also like to add some javascript to change the main product image each time an attribute option is selected or an attribute image is clicked.
Does anyone on the list have a script which can do this?
Thanks in advance
ColinR
-
Re: Image Handler 2 Support
IH2 handles ONLY product images.
There is a Swap Image on MouseOver mod by DrByte somewhere, but it isn't (as far as I know) compatible with IH2. However, it may give you some pointers ...and if you can come up with a working version with IH2 installed, that would be an extremely useful contribution to add to the community.
However, image swapping doesn't have to be javascript... take a look at http://www.cssplay.co.uk/menu/gallery.html (oh sorry - there goes the next couple of hours! :D ) where there's some great ideas. (How it's done is nearly always in his View Source)
-
Re: Image Handler 2 Support
*bookmarks link :)
lot's of good stuff in there. :)
-
Re: Image Handler 2 Support
Hi Ryk,
Thanks for the pointers. To keep things simple then, I have implemented a separate image popup for attribute images - which is probably more sensible than swapping the main product image.
I have used a free, third-party script to generate smoother attribute images on demand rather than trying to hack into IH2. I am however running this alongside IH2 (which naturally brings other benefits) without any problems.
Perhaps I need to package this up as a new contribution when it's tidied up?
To make this work you'll need this script in your root directory:
http://www.zubrag.com/scripts/thumbnail-generator.php
You then need to modify the bottom of file /includes/functions/html_output.php as follows:
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
if (zen_not_null($parameters)) $image .= ' ' . $parameters;
$image .= ' />';
return $image;
}
?>
...becomes...
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="thumb.php?src=' . zen_output_string($src) . '&x=100&y=100&f=0" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
if (zen_not_null($parameters)) $image .= ' ' . $parameters;
$image .= ' onclick="popupWindow(\'http://YOURDOMAIN/index.php?main_page=popup_image&src='.zen_output_string($src).'\')"';
$image .= ' />';
return $image;
}
?>
Finally you need to modify the template which displays in the popup image window so that you can present any image you choose simply by providing the path in a new 'src' attribute:
/includes/templates/YOUR_TEMPLATES/popup_image/tpl_main_page.php
Change...
<?php
// $products_values->fields['products_image']
echo '<a href="javascript:window.close()">' . zen_image($products_image_large, $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
...to...
<?php
if ($_GET['src']) {
echo '<a href="javascript:window.close()"><img src="' . $_GET['src'] . '"></a>';
} else {
// $products_values->fields['products_image']
echo '<a href="javascript:window.close()">' . zen_image($products_image_large, $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
}
?>
</div>
This should now present any image you upload in the attributes controller as a server-side scaled image in your products pages and allow you to pop up the full size version in the standard popup image window.
Feel free to test and advise.
ColinR
-
Re: Image Handler 2 Support
We have IH version 2.0 installed on a zencart version 1.3.6 - is there a sql patch required? The additional images are not showing on the category pages. I checked under admin/product types to edit those configs (to show additional images) and that's not even an option. I checked the sql tables, and the option isn't listed. I've searched other threads and can't seem to find an answer. If there is a sql patch required, where could I find it?
Thanks,
Danielle
-
Re: Image Handler 2 Support
@colinr - thanks; I'll give that a try later (hopefully!)
@chayton6 - did you install the latest version of IH2 from the download section AFTER 1.3.6? You do need to do it that way...there is a post by DrByte somewhere explaining about ereg replacement.
-
Re: Image Handler 2 Support
colinr - what version of ZC are you using? Your html_output doesn't match the 1.3.6 one...and there are two sections at about line 120 and about line 196 with similar code to above...neither of which is anywhere near the end of the file! :D
However, the second instance does have some effect, but not what I was hoping for! The main product image has disappeared and the attribute images now appear to be expanded thumbnails!!
OK, I'm going to start this again. :D
-
Re: Image Handler 2 Support
Nope - can't get this to work; is it working for you colinr? Have carefully re-done the procedure you've outlined and the results are the same as I reported earlier.
-
Re: Image Handler 2 Support
@chayton6 - did you install the latest version of IH2 from the download section AFTER 1.3.6? You do need to do it that way...there is a post by DrByte somewhere explaining about ereg replacement.[/QUOTE]
Yes, I read his posts. No, I did not install IH2 after the cart. Actually, I didn't do the installs at all. The store owner had the cart upgraded from a prev version to 1.3.6. I read the threads and he'd listed three pages that need to be used from the IH2 install (additional_images.php I believe and 2 others) and I uploaded those from the IH2 install. But that's not really addressing the fact that I don't have the option to set 'show additional images' to true - that option doesn't exist on my products types / edit layout page and isn't in my sql tables as an option. That's why I asked about the sql patch.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Ryk
Nope - can't get this to work; is it working for you colinr? Have carefully re-done the procedure you've outlined and the results are the same as I reported earlier.
Sorry about that. It definately works - but I think the 'original' code I sent through was actually a mod I had done previously and overlooked. Too many late nights. :blink:
I will check through my code when I get a chance and send amendments.
ColinR
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
colinr
I will check through my code when I get a chance and send amendments.
Much appreciated - thank you.
-
Re: Image Handler 2 Support
Hi Ryk,
Further to my previous post I think I have got to the bottom of this.
When I first looked at this a couple of weeks back I duplicated the html image wrapper function 'zen_attribute_image' in /includes/functions/html_output.php and renamed the duplicate function 'zen_attribute_image' so that I could easily apply new code to attribute images only.
Here then is the complete zen_attribute_image function - including the pop-up code modifications I sent last night - which should simply be appended to /includes/functions/html_output.php.
/*
* The HTML attribute image wrapper function
*/
function zen_attribute_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
global $template_dir;
// soft clean the alt tag
$alt = zen_clean_html($alt);
// use old method on template images
if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
return zen_image_OLD($src, $alt, $width, $height, $parameters);
}
//auto replace with defined missing image
if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
$src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
}
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
return false;
}
// if not in current template switch to template_default
if (!file_exists($src)) {
$src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
}
// hook for handle_image() function such as Image Handler etc
if (function_exists('handle_image')) {
$newimg = handle_image($src, $alt, $width, $height, $parameters);
list($src, $alt, $width, $height, $parameters) = $newimg;
}
// Convert width/height to int for proper validation.
// intval() used to support compatibility with plugins like image-handler
$width = empty($width) ? $width : intval($width);
$height = empty($height) ? $height : intval($height);
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="thumb.php?src=' . zen_output_string($src) . '&x=100&y=41&f=0" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
if (zen_not_null($parameters)) $image .= ' ' . $parameters;
$image .= ' onclick="popupWindow(\'http://YOUR_DOMAIN/index.php?main_page=popup_image&src='.zen_output_string($src).'\')"';
$image .= ' />';
return $image;
}
?>
You then need to modify /includes/modules/attributes.php (or naturally a copy of this file at /includes/modules/YOUR_TEMPLATES/attributes.php) changing all occurances of...
zen_image(
...to..
zen_attribute_image(
...so that the new zen_attribute_image function is called rather than the generic zen_image function.
There may, of course, be a more elegant way to do this. Any suggestions are welcome.
ColinR
-
Re: Image Handler 2 Support
BRILLIANT!!
:clap:
Thank you - that's superb.
One possibility for improvement that you may be able to rattle off the top of your head, but which would take me hours of trial and error
Could it be made obvious that the attribute image is now a link? The mouse pointer doesn't change when rolled over.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Ryk
BRILLIANT!!
:clap:
Thank you - that's superb.
Cheers! :smile:
Quote:
Originally Posted by
Ryk
One possibility for improvement that you may be able to rattle off the top of your head, but which would take me hours of trial and error
Could it be made obvious that the attribute image is now a link? The mouse pointer doesn't change when rolled over.
/includes/templates/YOUR_TEMPLATES/css/stylesheet.css
attribImg { cursor: pointer; cursor: hand; }
...or...
attribImg img { cursor: pointer; cursor: hand; }
...ought to do it.
Alternatively:
$image = '<a href="javascript: popupWindow(\'http://YOUR_DOMAIN/index.php?main_page=popup_image&src='.zen_output_s tring($src).'\')"><img src="thumb.php?src=' . zen_output_string($src) . '&x=100&y=41&f=0" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
if (zen_not_null($parameters)) $image .= ' ' . $parameters;
$image .= ' /></a>';
ColinR
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
colinr
.attribImg img { cursor: pointer; cursor: hand; }
works for me.
I think this is worth packing up as a contribution. Do you want to do it, or shall I?
Incidentally, you can remove "http://YOUR_DOMAIN/" from javascript: popupWindow without any ill-effect - or so it seems!
-
Re: Image Handler 2 Support
Because I had some problems with the zoom in, I tried to reinstall Image Handler, but now I get this error on my front-page:
Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in /opt/lampp/htdocs/zencartnieuw/includes/classes/bmz_image_handler.class.php on line 646
It's under the welcome message, the rest of the front page is normal.
Does anybody have a clue what this could be?
-
Re: Image Handler 2 Support
Oh yeah, I'm using the newest version of xampp (for a while now). I had Image Handler working the first time on the same test-server.
-
Re: Image Handler 2 Support
Hi Ryk,
Quote:
Originally Posted by
Ryk
works for me.
I think this is worth packing up as a contribution. Do you want to do it, or shall I?
If you're happy to lend a hand turning this into a downloadable contribution that would be great as I'm a bit short of time at the moment.
I've sent a message to the developer of the thumb.php script to see if I can include it in the package and will let you know. If not then a link in the installation instructions would do it - but naturally this could break at some point.
As this stuff is actually independent of IH2 we could extend it's use to improve the presentation of ALL images from an otherwise default ZenCart install.
It may also be possible to modify the core zen_image function(s) rather than creating a new zen_attribute_image function - but we'll need to look into this.
Quote:
Originally Posted by
Ryk
Incidentally, you can remove "http://YOUR_DOMAIN/" from javascript: popupWindow without any ill-effect - or so it seems!
Ok. I'm not sure if this would work for all browsers so to play it safe we can replace http://YOUR_DOMAIN/ with the base href variable. Should be easy enough.
ColinR
-
Re: Image Handler 2 Support
Check your PMs.
Re the domain ... only checked on FF & IE, but vaild point.
-
Image Handler 2 Support - Is this Behavior Correct?
Okay, it seems to work well except:
When rollover/popups are enabled, all my original 2nd, 3rd etc images are gone on the product page. No big deal, I didn't need this feature anyway.
HOWEVER:
When uploading an image for a product, I MUST select a "base name" (which says "optional") for it to upload all three sizes (otherwise they're all the same LARGE size). Subsequent uploads for the same product - additional images - do not require that I add the base name.
Is this how it's supposed to work? The "optional" tag makes me thing this is off just a bit.
Chris
-
Re: Image Handler 2 Support Code fix?
Suggested code mod:
My image bmz cache was not clearing with the admin 'clear cache' link..
Referring to the suggestion in the php site..
http://uk.php.net/manual/en/class.dir.php
The line in v2's admin/includes/functions/extra_functions/ functions_bmz_io.php file, line 24 is
Code:
while ($file = $dir->read()) {
It sprang into life when I put
Code:
while (false !== ( $file = $dir->read() ) ) {
Am I right? btw the web server is a 4.4.4 php version
-
Re: Image Handler 2 Support
When does Image Handler 2 (for Zen Cart 1.2x) create the small and medium versions of the image?
How does it know when a new image for a product has been uploaded (replacing an existing image or an entirely new image)?
What happens to existing small and medium images when you change the desired sizes of the small and medium images?
I'm asking because I want to make sure that the right images are available at all times.
I'm updating the Zen Cart database in batch from an external application (Microsoft Access database) and uploading the large pictures manually to the images directory.
Daniel
p.s. I hope it is ok to post in this thread? It seems there is no separate category on the forum for Image Handler.
-
Re: Image Handler 2 Support
I'm sure someone else knows, but I think the bmz functons automatically kick in when an image is requested from the cart-side page display. But also you can call up individual product images with the handler admin, and play around.
You can always clear the cache (specially if you use my mod above!) and see how it gets filled up after a cart-side page request.
Presumably if you change an image size setting, the old images named .image.(width)x (height) will be left in the cache folders, new ones of appropriate size will generate on the next page request.
So each cached image has its size as part of the long filename, so different sized images are created to suit, and are unique to a particular size.
If you want to know if the page is using cached images, look at the picture url, if its cached, it has 'bmz_cache' in the image 'src' url, as it comes from that cache folder.
Incidentally I think I've found a way of running the cache outside of web space, anyone interested, do p.m me. But it needs code changes.
-
Re: Image Handler 2 Support
I have a strange problem. I upgraded to 1.3.6 and reinstalled the newest IH. All seemed to work. I took the time to delete the unneeded images in the small, large, medium directories in anticipation that IH will recreate the right sizes in the bmz_cache folder. I deleted the sub folders in bmz too just to make sure it will be recreated. Large versions of my pictures are now in the default images directory. As I understand everything should work now automatic. Well...it does for small and medium images, but when I click for a large pictures I get a fuzzy one. I look at the property and it shows way smaller file size then my original in the images folder. This particular large image does not to be calculated as it is 450x450 and my settings are set to max 500px. Path shows my image folder.
I don't understand what is going on but here is something interesting I found out. If I set image large max with to 440 (just 10px smaller then my original image) it gets generated in the bmz_cache folder and shows just fine!!! What is going on!
Btw with new uploaded images OTHER THAN THE SAME PICTURE NAME, everything works. I think somewhere something is cached? Maybe in the DB? I un-installed and re-installed IH in the admin. No better result. Pleas help.
-
Re: Image Handler 2 Support
Just wanted to mention this is still a test site not the ones in my signature.
:)
-
Re: Image Handler 2 Support
OK, I tried this now on my live site with one picture. I uploaded one large picture SP-02BR.jpg in my images directory with ftp. I deleted the corresponding pictures in small, large, medium folders. Now you can see what IH creates.
http://www.mydanilo.com/index.php?ma...products_id=18
Medium image gets created correctly in bmz folder. Large image ( if we can believe the property dialog) gets taken from the /image folder. But look at the file size: 3.98kb. This is crap, the image IS in the image folder and is 66.3kb big.
Where is this wrong info stored? Why is this going wrong?
-
Re: Image Handler 2 Support
Hi mydanilo
was at your site page given, BUT I get the ordinary product (cached) image as 13k, the popup large image as 69k as you said, its a BIG 708 pixels.
So it seems to work ok?
Yes I agree what you said... if the 'real' uploaded image is less size over-all, than the 'large' size, IH does not touch it, you get the real image from /image folder.
This is presumably also done because yes, you can get reduced quality from a cached resize, so by uploading a suitably sized pic, you avoid IH caching of it..
You can up the cached pics compression quality in the images section admin, to 100, its 85 default.
Large image is the pop-up one. If the pop-up image is 'too big' then IH comes in and makes a reduced size cached version the right size for 'large'.
-
Re: Image Handler 2 Support
Hi Hareslade,
I could shoot myself.....after the whole morning trying to figure this out, your reply triggered what is wrong. >>>> I HAD TO CLEAR THE CACHE OF MY BROWSER!!!!!
....and there.. it works! Thank you for testing it out for me.
And I thought the cache of the cart or some merging during upgrade or or.. but the closest possible thing I did not think of. WELL, I hope this will help somebody else at some point. Case closed.
:)
-
Re: Image Handler 2 Support
Please don't do yourself in:)
I find IE6 hangs on to locally cached images, Firefox is possibly better, and also Firefox **always** reads a changed css file, while IE6 ignores it usually.
-
Re: Image Handler 2 Support
Well, I am using Firfox 2.0. Cache did not refresh itself. I had to do it manually. I think one could set it to clear every time the browser closes. Maybe a good idea...
-
Re: Image Handler 2 Support
Problem with Image Handler 2 - not sure what version is running but it suddenly stopped working. Consensus here seemed to be that my host changed something about the way they handle image files but I could not get any answer from them on specifics - is a unix server and I use c-panel for hosting admin.
Got it sort of working again by deleting a line in a file which referred to image magik (I think) - from a tip on this thread somewhere but now I cannot upload the main image directly from the product listing page - it appears to load but doesnt until I load up that item in image handler. The image which wont display on the web will then do so.
This is a right pain but at least is workable except that I want to now use the Document-General product type and I find that items of this product type will not display at all in Image Handler so my work around solution will not work if I choose that product type.
URL is www.aussiesapphire.com.au
example of problem item is
http://www.aussiesapphire.com.au/sho...roducts_id=283
any ideas on where to look for a solution
thanks
Leah
-
Re: Image Handler 2 Support
Don't know if someone post here how to deal with safe mode = "on" on server. If not i have a solution.
You must use ftp functions to create necessary directories.
You can use my code to do this. Just change variables (to connect to your ftp server), upload it and run.
Code:
<?php
$dir = "bmz_cache";
$ftp_address = "ftp.server.address"; // ftp.shop.com
$login = "login name to ftp server"; // mylogin
$password = "password to ftp server"; // mypassword
$yourpath = "path to your shop directory from ftp root"; // www/myshop
$conn_id = ftp_connect($ftp_address);
$login_result = ftp_login($conn_id, $login, $password);
if (ftp_chdir($conn_id, $yourpath)) {
echo "Current directory is now: " . ftp_pwd($conn_id) . "\n<br>";
} else {
echo "Couldn't change directory\n";
}
if (ftp_mkdir($conn_id, "bmz_cache")) {
echo "successfully created bmz_cache\n<br>";
} else {
echo "There was a problem while creating $dir\n";
}
ftp_chmod($conn_id, 0777, "bmz_cache");
if (ftp_chdir($conn_id, "bmz_cache")) {
echo "Current directory is now: " . ftp_pwd($conn_id) . "\n<br>";
} else {
echo "Couldn't change directory\n";
}
//will be good to add error handling :)
ftp_mkdir($conn_id, "1");
ftp_chmod($conn_id, 0777, "1");
ftp_mkdir($conn_id, "2");
ftp_chmod($conn_id, 0777, "2");
ftp_mkdir($conn_id, "3");
ftp_chmod($conn_id, 0777, "3");
ftp_mkdir($conn_id, "4");
ftp_chmod($conn_id, 0777, "4");
ftp_mkdir($conn_id, "5");
ftp_chmod($conn_id, 0777, "5");
ftp_mkdir($conn_id, "6");
ftp_chmod($conn_id, 0777, "6");
ftp_mkdir($conn_id, "7");
ftp_chmod($conn_id, 0777, "7");
ftp_mkdir($conn_id, "8");
ftp_chmod($conn_id, 0777, "8");
ftp_mkdir($conn_id, "9");
ftp_chmod($conn_id, 0777, "9");
ftp_mkdir($conn_id, "0");
ftp_chmod($conn_id, 0777, "0");
ftp_mkdir($conn_id, "a");
ftp_chmod($conn_id, 0777, "a");
ftp_mkdir($conn_id, "b");
ftp_chmod($conn_id, 0777, "b");
ftp_mkdir($conn_id, "c");
ftp_chmod($conn_id, 0777, "c");
ftp_mkdir($conn_id, "d");
ftp_chmod($conn_id, 0777, "d");
ftp_mkdir($conn_id, "e");
ftp_chmod($conn_id, 0777, "e");
ftp_mkdir($conn_id, "f");
ftp_chmod($conn_id, 0777, "f");
ftp_close($conn_id);
?>
-
Re: Image Handler 2 Support
aussiesapphire, it's a shame your Host could give you better information. If the script was working fine and you did not change anything, then it is always best to speak with your Host regarding any changes they might have made.
Using Admin > Tools > Server/Version Info, do a find on the page for:
GD Support
register_globals
safe_mode
Each one has two variables (ON or OFF), can you tell what they are?
Also, it was asked earlier in this thread if IH2 creates directories & files in the 'bmz_cache' directory, with Ownership permissions of nobody. I can confirm this is true but usually, if you cannot see a directory or file and you know it is there, it means you do not have Ownership. That also means you cannot do anything with that directory or file.
aussiesapphire, presuming your permissions settings were correct when the IH2 script was installed, when using your FTP program do you see anything in the 'shop/bmz_cache/' dir.?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Website Rob
aussiesapphire, it's a shame your Host could give you better information. If the script was working fine and you did not change anything, then it is always best to speak with your Host regarding any changes they might have made.
Using Admin > Tools > Server/Version Info, do a find on the page for:
GD Support
register_globals
safe_mode
Each one has two variables (ON or OFF), can you tell what they are?
Also, it was asked earlier in this thread if IH2 creates directories & files in the 'bmz_cache' directory, with Ownership permissions of nobody. I can confirm this is true but usually, if you cannot see a directory or file and you know it is there, it means you do not have Ownership. That also means you cannot do anything with that directory or file.
aussiesapphire, presuming your permissions settings were correct when the IH2 script was installed, when using your FTP program do you see anything in the 'shop/bmz_cache/' dir.?
thanks
I will check the info at top but when I look at my webspace on ftp, I can see the b,z_cache directory with subdirectories (numbered and then lettered) - they have files and they are set to 777 permission.
will check out the other info now
thanks
Leah
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Website Rob
aussiesapphire, it's a shame your Host could give you better information. If the script was working fine and you did not change anything, then it is always best to speak with your Host regarding any changes they might have made.
Using Admin > Tools > Server/Version Info, do a find on the page for:
GD Support
register_globals
safe_mode
Each one has two variables (ON or OFF), can you tell what they are?
Server Host: () Database Host: localhost (127.0.0.1)
Server OS: Database: MySQL 4.1.21-standard-log
Server Date: 11/21/2006 07:19:03 Database Date: 11/21/2006 07:19:03
Server Up Time:
PHP Version: 4.4.4 (Zend: 1.3.0)
HTTP Server: Apache 3 - HOSTMerit
GD Support enabled
GD Version bundled (2.0.28 compatible)
register_globals Off Off (ie. Local and Master values both off)
safe_mode Off Off (ie. Local and Master values both off)
Does this give you any clues - I would be grateful for some help
cheers
Leah
-
Problems with watermarking
I had watermarking of large images working but I guess when I went live with the site it somehow broke. I went to tools->image handler and it said IH wasn't installed! I reinstalled it and set large watermarking to on but still no watermarks. Can someone give me a clue as to what is wrong?
Here's what my image config looks like:
Small Image Width 150
Small Image Height 80
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 100
Subcategory Image Height 57
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
mage - Shopping Cart Width 50
Image - Shopping Cart Height 40
Category Icon Image Width - Product Info Pages 57
Category Icon Image Height - Product Info Pages 40
Top Subcategory Image Width 150
Top Subcategory Image Height 85
Product Info - Image Width 250
Product Info - Image Height 220
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 120
Image - Product Listing Height 100
Image - Product New Listing Width 100
Image - Product New Listing Height 80
Image - New Products Width 100
Image - New Products Height 80
Image - Featured Products Width 100
Image - Featured Products Height 80
Image - Product All Listing Width 100
Image - Product All Listing Height 80
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 image filetype no_change I
H small image background 255:255:255
IH watermark small images no
IH zoom small images yes
IH small image hotzone no
IH small image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no
IH zoom medium images no
IH medium image hotzone no
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images yes
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
IH zoom gravity SouthEast
-
Re: Image Handler 2 Support
Could I get someone to walk me through the installation of this image handler. I'm really new to ZenCart, and have never dealt with an image handler before. However, I'm blind and so, obviously, images aren't my thing. So, I think this could really help the images on my site. The whole image thing is confusing to me.
Thanks,
Melissa
http://store.equineshop.biz
-
Re: Image Handler 2 Support
From the information you have provided I can see no reason why the script should not be working. Your Hoster is your best bet for getting this sorted out.
Although it is true, most Hosters don't provide support for 3rd party scripts, it should also be true that if a Hoster makes a change and it causes problem for scripts that were previously working fine, they should help to sort out any problems caused by their changes.
I say that because of what you stated earlier, "not sure what version is running but it suddenly stopped working". One can only presume that nobody "you" know of, did some work on "any part" of your site that might have created the problem. Scripts that are working correctly do not just suddenly stop working. Somebody had to have done something, the questions are who & what.
-
Re: Image Handler 2 Support
I've been tinkering and when I am in admin under the IH manager, I can see the watermark on the tiny samples, but when I go to my catalog, the images do not have watermarks. Any clue as to what's going on?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Website Rob
From the information you have provided I can see no reason why the script should not be working. Your Hoster is your best bet for getting this sorted out.
I say that because of what you stated earlier, "not sure what version is running but it suddenly stopped working". One can only presume that nobody "you" know of, did some work on "any part" of your site that might have created the problem. Scripts that are working correctly do not just suddenly stop working. Somebody had to have done something, the questions are who & what.
I am the only person who manages the website so there is no-one apart from the hosting company who could change anything - I certainly did not. It just stopped working suddenly after a break of a few weeks when I went to go back and load some new items.
I have another email into the support crew asking about it. I did notice that there seemed to be a new option in my cPanel (I think ?? - dont remember seeing it before this problem) - a new thing called Image Manager which does thumbnails and resizing. I think it may have something to do with this - an upgrade or something required to install this program.
My problem is that I just do not know enough about this stuff to talk intelligently with them so I can be easily fobbed off with vague comments disclaiming any responsibility - even if they do give me something specific I probably wont know what to do with it except to bring it back here and hope for help from you guys.
If I cant get this to work with IH2, what are my options. I really need multiple images on each item and images loaded from the main product listing page now do not work. They display after I load them in IH2 but this does not allow me to use Document-General product type. Ideas on a new direction ???
cheers
Leah