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.
March 6, 2005
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.
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".
March 6, 2005
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.
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.
Most Users Ever Online: 959
Currently Browsing this Page:
Guest Posters: 3763
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6400), Nicky (3)