Forums / General Questions / Error: File upload not saved. Help

Error: File upload not saved. Help

Locked

Views: 4,510

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Oct 2006, 4:35 PM
#1
siikor avatar

siikor

New Zenner

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

Error: File upload not saved. Help

I can not upload Products Image

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/www/data/www.?????.??/catalog/images/medium/icon.gif) is not within the allowed path(s): (/www/06/siivelt.pri.ee:/www/data/?????.??/tmp) in /www/06/???????.??/catalog/admin/includes/classes/upload.php on line 112

23 Oct 2006, 8:09 PM
#2
altijd_online avatar

altijd_online

New Zenner

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

Re: Error: File upload not saved. Help

It looks like the same error here!

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpZ5kIn8) is not within the allowed path(s): (/usr/home/****:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/*****/public_html/gallerij/admin/includes/classes/upload.php on line 112

Does more people have this?
What can we do about it

30 Oct 2006, 7:53 AM
#4
altijd_online avatar

altijd_online

New Zenner

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

Re: Error: File upload not saved. Help

Yes, the map Images is writteble

30 Oct 2006, 9:22 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Error: File upload not saved. Help

altijd-online:

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpZ5kIn8) is not within the allowed path(s): (/usr/home/****:/usr/lib/php:/usr/local/lib/php:/tmp)

The file you uploaded was sent from your browser to the webserver into this folder+filename, based on the configuration of your webserver's PHP settings:
/var/tmp/phpZ5kIn8

However, it appears that your webserver's PHP configuration also prevents you from having PHP move the file from its temporary upload location into your webroot area where your main site files are located:
/usr/home/****

Unless you are the sysadmin of the server, there is nothing "you" can do yourself about this.

You will have to have your hosting company correct their PHP configuration by either:

  • change the PHP upload_tmp_dir path to the /tmp folder
    or
  • change the open_basedir restrictions to allow access to the /var/tmp folder

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Oct 2006, 1:59 PM
#6
website_rob avatar

website_rob

Inactive

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

Re: Error: File upload not saved. Help

open_basedir restriction

  • this setting is related to Ownership, of a file or dir.

Problems are usually caused by trying to upload somewhere where you do not have Ownership and therefore, do not have access rights. Using 'open_basedir restriction' is a common security measure used by Hosters and does not cause problems when 'path' used is correct.

If you can upload the file using an FTP program but not through the script, you should double-check the 'path' settings in your config files. If you cannot upload using an FTP program then directory Ownership is the problem. Best solution in these type situations is to contact your Hoster. If you cannot figure out the solution, they can. :wink2:

The learning is in the doing.

Potent Products

31 Oct 2006, 12:37 PM
#7
altijd_online avatar

altijd_online

New Zenner

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

Re: Error: File upload not saved. Help

Thanxs for the posts!
I will contact the hoster and make it his problem....

thanxs again

Roel