Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,396

Results 581 to 600 of 7,094
22 Oct 2006, 3:06 AM
#581
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

neo314:

Do you run your own server? If PHP error display is off, you could have one small php error and get a blank page.

Thanks for the reply. You are correct I have display errors off. Ive turned them on and this is what 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

22 Oct 2006, 6:32 AM
#582
neo314 avatar

neo314

New Zenner

Join Date:
Sep 2006
Posts:
10
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

focus360:

Thanks for the reply. You are correct I have display errors off. Ive turned them on and this is what 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

Is the store in the root directory of /var/www/vhosts/mywebsite.com/httpdocs/?

The key appears to be in the first error message, "open_basedir restriction in effect."

For one reason or another, your store does not have permission to open that file and include it in the running script. I would check permissions and ownership on the directories, but the error message inlies that the file that your are trying to include is outside of the domain name or site root and is encoutering a php restriction on your system.

I am assuming that you installed the files in the same locations specified by the IH add-on, so if the store runs I don't know why this location would be a problem. That leads me back to the permissions and ownership of the directory, but that usually provides a different error.

You can find some info on that error at http://us3.php.net/features.safe-mode

Sorry I couldn't be more help. That might be a valid error to contact your ISP over. You might also turn off safe mode and research the security issues you need to pay attention to when safe mode if off.

Steven

22 Oct 2006, 8:36 AM
#583
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

aussiesapphire:

Sorry - also forgot to mention that it still doesnt really explain why IH has suddenly stopped recognizing the images that are already there. Any ideas ??

Leah

When something suddenly stops working it is often due to a change (usually an upgrade) by the host.

Check with them to see if they've changed anything.

22 Oct 2006, 10:57 AM
#584
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

neo314:

Is the store in the root directory of /var/www/vhosts/mywebsite.com/httpdocs/?
Steven

The store is in the root directory and IH has been installed into the correct folders.

Unfortunaly my isp will not help me! It seems strange to me that Zen Cart works fine but when I install IH it comes up with this "open_basedir restriction in effect" error.

If there was a restriction in effect then zen cart would not have worked!

Ive no idea!?!

:blink:

22 Oct 2006, 3:19 PM
#585
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

A strange thing happen: when I'm try to load a new image, the new image button has this link:
http://www.domain.com/admin/image_handler.php?&products_filter=283&action=layout_new
and Forbidden page show me.
The &products..... is wrong: in fact if I delete the & the link work, but in the second step error again
Help me

22 Oct 2006, 6:07 PM
#586
neo314 avatar

neo314

New Zenner

Join Date:
Sep 2006
Posts:
10
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

focus360:

The store is in the root directory and IH has been installed into the correct folders.

Unfortunaly my isp will not help me! It seems strange to me that Zen Cart works fine but when I install IH it comes up with this "open_basedir restriction in effect" error.

If there was a restriction in effect then zen cart would not have worked!

Ive no idea!?!

:blink:

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?

22 Oct 2006, 7:55 PM
#587
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I can't get the bloody water marks to work, i only use small images for the moment and i am using Internet Explorer.

IH watermark small images yes

Is there something else i am suppose to change ?

23 Oct 2006, 12:12 AM
#588
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Ryk:

When something suddenly stops working it is often due to a change (usually an upgrade) by the host.

Check with them to see if they've changed anything.

Checking with the host now to enquire about changes - waiting to hear back. Checked the permissions on the bmz_cache and the images folders - both at 777.

Any other ideas?? I am getting desperate.
What happens if I clear the image cache - I am presuming that with ih2 not working properly, all my existing images that are displaying on the website might disappear on me which would be an even bigger problem.

cheers
Leah

23 Oct 2006, 8:14 AM
#589
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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!!!

23 Oct 2006, 2:02 PM
#590
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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.

23 Oct 2006, 2:51 PM
#591
bhpepper avatar

bhpepper

New Zenner

Join Date:
Oct 2006
Posts:
27
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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

23 Oct 2006, 2:56 PM
#592
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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?

23 Oct 2006, 3:07 PM
#593
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

**

23 Oct 2006, 3:16 PM
#594
fweb avatar

fweb

New Zenner

Join Date:
Apr 2006
Location:
Monaco
Posts:
31
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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/shop/index.php?main_page=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?

23 Oct 2006, 3:47 PM
#595
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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...

23 Oct 2006, 6:56 PM
#596
fweb avatar

fweb

New Zenner

Join Date:
Apr 2006
Location:
Monaco
Posts:
31
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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

24 Oct 2006, 8:38 AM
#597
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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

24 Oct 2006, 8:43 AM
#598
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

24 Oct 2006, 9:41 AM
#599
vfcoup70 avatar

vfcoup70

New Zenner

Join Date:
Jul 2006
Posts:
17
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) 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?

24 Oct 2006, 1:33 PM
#600
neo314 avatar

neo314

New Zenner

Join Date:
Sep 2006
Posts:
10
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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: