cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Backup form problem
October 9, 2007
6:45 pm
absynthe
Guest

Hello, 

I've just installed the latest release of cforms II on a clean new install of WordPress 2.3
The plugin is activated and I can access the form settings page but when I want to save my form clicking the "Backup This Form" button, I get this error message :

Warning: Unknown: open_basedir restriction in effect. File(C:\\WINNT\\TEMP\\) is not within the allowed path(s): (c:/Dev/web) in Unknown on line 0

Warning: File upload error – unable to create a temporary file in Unknown on line 0

 

Any ideas ?!

Thanks in advance.
Absynthe

October 9, 2007
7:18 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

When you say 'save' you mean download and save a backup copy?

If this is the case, I wonder why the server is responding with a "File upload error"?!

Also, I'm not sure what triggers the 'open_basedir restriction' I've not seen anything like this before.

It seems that your web hosting company has misconfigured the web server, or its PHP environment.

October 10, 2007
10:28 am
absynthe
Guest

Actually, I'm testing it on a local instalation (Apache2 & PHP5 on win2000) and had no issue of this kind untill now. I believe it has something to do with directory restrictions.
When I say 'save' using the 'Backup This Form' button, well I don't know what exactly is suppose to happen as it didn't work for now, but I believe it 'pops' some config text file and ask for a directory to save it (if you can explain shortly to me what normaly should happen, maybe it can help).
What I can figure out for now, is that cforms script is trying to access some temp folder at C:\\WINNT\\TEMP\\ which is denied by php.ini set with open_basedir = "c:/Dev/web".

October 10, 2007
7:07 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Correct, all "Backup" does, is it'll offer a text file for download. What happens after that is out of cforms control. Usually the browser offers to save it in some place or open it directly with your preferred text editor.

 

 

October 12, 2007
9:06 pm
dkedinger
Guest

The open_basedir restriction is a feature the doesn't allow scripts to write to anything that is not within their "basedir" or home user folder.

The solution is to edit the php.ini file and set the upload tmp directory to something within the user folder. You will need to modify the upload_tmp_dir value in the php.ini file.

Good luck! 

October 13, 2007
4:58 pm
Absynthe
Guest

Thanks dkedinger, that's finaly what I figured out, setting a tmp folder inside my "web" folder.
Something else I noticed that was giving me some trouble too, I'm using a diseable referrer function in my browser that was blocking the process too.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3761

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5358

Posts: 18739

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)