The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
"Upload folder either invalid or not writable" - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: "Upload folder either invalid or not writable" (/showthread.php?tid=646)



"Upload folder either invalid or not writable" - Stephan - Apr 9th, 2010

Getting the error message in the post title.

In Settings, under the Files tab, I've kept the default formtools\upload folder, and the Test Folder Permissions comes back okay, but when I try to upload a file via the form, it doesn't work, and when I try via the form edit page, it results in the error "Upload folder either invalid or not writable."

I've also checked the file size limits in php.ini, and uploads are enabled.

The file upload from this form was tested and working using my old (self-written) process.php page, so I think the html is written correctly.

I'm stuck! Does anyone have any suggestions? I'm using WAMP localhost for testing.

Thanks!
Okay, I fixed this, but I'm not sure why it worked.

I went into the Forms > Edit > Options for the File field that wasn't uploading. Under the Fields tab, File field type, Add Row, Setting to File upload folder.

I kept the settings the same as the defaults and the next test worked.

Which is awesome (Form Tools is great, btw), but why aren't the default settings working?

(Apr 9th, 2010, 10:05 AM)Stephan Wrote: Getting the error message in the post title.

In Settings, under the Files tab, I've kept the default formtools\upload folder, and the Test Folder Permissions comes back okay, but when I try to upload a file via the form, it doesn't work, and when I try via the form edit page, it results in the error "Upload folder either invalid or not writable."

I've also checked the file size limits in php.ini, and uploads are enabled.

The file upload from this form was tested and working using my old (self-written) process.php page, so I think the html is written correctly.

I'm stuck! Does anyone have any suggestions? I'm using WAMP localhost for testing.

Thanks!



RE: "Upload folder either invalid or not writable" - jglnb - Apr 9th, 2010

I had a similar issue and Ben pointed out the existance of a small bug !

Here you will find the link to the bug report !

Cheers
JG


Quote:Ack, I feel kind of bad about this one. I just sat down to do it and found that there's actually a bug in the Export Manager that prevents the default file upload URL & folder get passed to the template for each field. So it needs a little trickery to figure it out... sorry!

[I logged the bug here, btw: http://bugs.formtools.org/index.php?cmd=view&id=213]

Here's how to do it.

(1) On the Edit Form -> Fields tab, click the "Options" link for your image field. There, click the "Customize" button and select the "File Upload Folder" option in the first dropdown list. That will then display a bunch of info on that row. Don't change anything, just click "update".



RE: "Upload folder either invalid or not writable" - Nowton - May 26th, 2010

(Apr 9th, 2010, 1:54 PM)jglnb Wrote: I had a similar issue and Ben pointed out the existance of a small bug !

Here you will find the link to the bug report !

Cheers
JG


Quote:Ack, I feel kind of bad about this one. I just sat down to do it and found that there's actually a bug in the Export Manager that prevents the default file upload URL & folder get passed to the template for each field. So it needs a little trickery to figure it out... sorry!

[I logged the bug here, btw: http://bugs.formtools.org/index.php?cmd=view&id=213]

Here's how to do it.

(1) On the Edit Form -> Fields tab, click the "Options" link for your image field. There, click the "Customize" button and select the "File Upload Folder" option in the first dropdown list. That will then display a bunch of info on that row. Don't change anything, just click "update".

Confused! Should I do this on every file-upload field in every form? If so, I've got my work cut out for me...please advise. Thanks.


RE: "Upload folder either invalid or not writable" - Ben - May 27th, 2010

Quote:Confused! Should I do this on every file-upload field in every form?

You shouldn't have to! It's a royal pain in the butt, I know! Smile

I'll include a fix for this in the next 2.0.1 build. If I haven't gotten to it by this weekend, send me a nagging email at ben.keen@gmail.com with a link to this thread. Smile

- Ben


RE: "Upload folder either invalid or not writable" - Ben - May 30th, 2010

Hi Nowton,

Actually, now I've looked into this, I'm not totally positive it's the cause of the problem.

Would it be possible to log into your installation so I could see it for myself?

- Ben


RE: "Upload folder either invalid or not writable" - Nowton - Jun 1st, 2010

(May 30th, 2010, 5:55 PM)Ben Wrote: Hi Nowton,

Actually, now I've looked into this, I'm not totally positive it's the cause of the problem.

Would it be possible to log into your installation so I could see it for myself?

- Ben

Ben, you have our credentials.


RE: "Upload folder either invalid or not writable" - Ben - Jun 1st, 2010

Just to close this thread, it's all sorted out now. It was a configuration issue.

- Ben