Hi, I have created a form that mostly works but sometimes, after the upload step, upon going to the next page, I get an error 500. It does not happen consistently (using the same files) so I am having trouble figuring out what is wrong.
In terms of file allowed, I did this:
thanks
In terms of file allowed, I did this:
file_upload:JPG-tiff-jpg-png-gif-zip-rar-txt-doc-docx-pdf-ppt-pptx-xls-xlsx,attachments_3:JPG-tiff-jpg-png-gif-zip-rar-txt-doc-docx-pdf-ppt-pptx-xls-xlsx
thanks
Hi genugen,
I tried submitting several times but didn't get any errors.
Is there any error message in the 500 Page? Do the server logs tell you anything?
Bob
I tried submitting several times but didn't get any errors.
Is there any error message in the 500 Page? Do the server logs tell you anything?
Bob
Thanks for checking this. I have seen tat you have submitted a few forms with no error, you are lucky!😀 Did you submit several files or only one?
I have noticed that if I upload 2 .jpg files, or 1 .jpg and 1 .docx, it works, but when I tried with 1 .jpg and 1 .doc, it failed.
The way I have set it up (but you probably know that already) was to stack a single file upload and a multi file widget (the reason is that I want the first upload field to be visible and then have the option to display additional ones). I have an "upload file" action in my On Page Four, should I also add a "Multi Upload" action there too?
Thanks for your help
I have noticed that if I upload 2 .jpg files, or 1 .jpg and 1 .docx, it works, but when I tried with 1 .jpg and 1 .doc, it failed.
The way I have set it up (but you probably know that already) was to stack a single file upload and a multi file widget (the reason is that I want the first upload field to be visible and then have the option to display additional ones). I have an "upload file" action in my On Page Four, should I also add a "Multi Upload" action there too?
Thanks for your help
Hi genegun,
Hmm . . . I'm not sure what happens when you mix the two kinds of file uploader, the multi-upload expects an array and the single one doesn't.
Can you try adding a Debugger action, maybe on a copy of the form rather than the live version, and see what the output is when there is an error.
Bob
Hmm . . . I'm not sure what happens when you mix the two kinds of file uploader, the multi-upload expects an array and the single one doesn't.
Can you try adding a Debugger action, maybe on a copy of the form rather than the live version, and see what the output is when there is an error.
Bob
Hi,
What's the point of having both uploaders ? the multi uploader will display 1 field first and then you can add more, so you don't need a single upload field for that!
Regards,
Max
What's the point of having both uploaders ? the multi uploader will display 1 field first and then you can add more, so you don't need a single upload field for that!
Regards,
Max
When I include the mutli upload widget, all I get is a "attach document" link. I would prefer to already have one upload box displayed by default and then be able to add additional box by showing a "upload more documents" link. This is why as a quick fix, I added the single upload field on top. then, using GreyHead's little FAQ, I got the form to zip all of that in a single archive.
Regarding the presence of both a single and multi upload widgets I would have thought that it was a pretty common occurrence on complex forms no?
Thanks for looking up my question guys, I really appreciate
Regarding the presence of both a single and multi upload widgets I would have thought that it was a pretty common occurrence on complex forms no?
Thanks for looking up my question guys, I really appreciate
Hi genegun,
Please try adding this code to a Load JS action in your form On Load event. It should automatically open the first file upload on the Widget.
Note: it works for me in FF, Chrome and IE10 but is a bit basic so will probably also open a new uploader if you re-load the form for any reason! As written it will also only work on the first widget on the page if you have more than one.
Bob
Please try adding this code to a Load JS action in your form On Load event. It should automatically open the first file upload on the Widget.
window.addEvent('domready', function() {
var mu_widget = $$('.multi-upload-add-attachment-link a');
mu_widget[0].onclick();
});
Note: it works for me in FF, Chrome and IE10 but is a bit basic so will probably also open a new uploader if you re-load the form for any reason! As written it will also only work on the first widget on the page if you have more than one.
Bob
Thanks a lot, it indeed does the job. Now I will run some tests with various uploads and report back if the issue persists.
I have tested the form and now I get a 500 error every single time I try to upload something.
- I removed the single upload element
- I removed the single upload action
- I kept the multi upload widget
- I added a multi upload action and set it according to the multi upload widget (attachments_3:JPG-tiff-jpg-png-gif-zip-rar-txt-doc-docx-pdf-ppt-pptx-xls-xlsx)
- I have set the form method to "File" under the form "Edit" screen
- Just in case, I removed the custom code that zips everything
but I get this every time after the upload step
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Ii then re-setup everything with the normal file upload event but it fails too.
The multi upload FAQ suggests to use the normal upload event. What then is the purpose of the one in the widget processors?
EDIT: Ok I got everything to work (only one multi field, first box displayed, zipping, emailing).
However, the size, not the extension of the file(s) seems to be the problem. Basically, any individual file below 100 kb will pass, regardless how many are uploaded at once and which extension. But if at least one file exceeds 100 kb, i get the 500 error. I have set the Max Size field in the MulitUpload action to 10000, and up to 100000 which should be more than enough so I guess that the problem lies somewhere here.
EDIT2: Having checked with another form component, I have the same problem so it is probably a limitation on my server side. What is odd is that my php.ini has a limit set at 10M which should therefore not be a problem😟 I contacted my hosting company to ask them to check it out.
- I removed the single upload element
- I removed the single upload action
- I kept the multi upload widget
- I added a multi upload action and set it according to the multi upload widget (attachments_3:JPG-tiff-jpg-png-gif-zip-rar-txt-doc-docx-pdf-ppt-pptx-xls-xlsx)
- I have set the form method to "File" under the form "Edit" screen
- Just in case, I removed the custom code that zips everything
but I get this every time after the upload step
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Ii then re-setup everything with the normal file upload event but it fails too.
The multi upload FAQ suggests to use the normal upload event. What then is the purpose of the one in the widget processors?
EDIT: Ok I got everything to work (only one multi field, first box displayed, zipping, emailing).
However, the size, not the extension of the file(s) seems to be the problem. Basically, any individual file below 100 kb will pass, regardless how many are uploaded at once and which extension. But if at least one file exceeds 100 kb, i get the 500 error. I have set the Max Size field in the MulitUpload action to 10000, and up to 100000 which should be more than enough so I guess that the problem lies somewhere here.
EDIT2: Having checked with another form component, I have the same problem so it is probably a limitation on my server side. What is odd is that my php.ini has a limit set at 10M which should therefore not be a problem😟 I contacted my hosting company to ask them to check it out.
Hi genegun,
There are server limits on file upload sites though 100 kb is unusually low. Check the site admin Site | System Information | PHP Information page and look for upload_max_filesize - there may be other settings that affect this as well.
Bob
There are server limits on file upload sites though 100 kb is unusually low. Check the site admin Site | System Information | PHP Information page and look for upload_max_filesize - there may be other settings that affect this as well.
Bob
Hi genegun,
You can check the server logs for clues - or ask your web-host if they have any other settings that might limit this. Dumping the values of the $_FILES array would be useful but probably won't work because of the 500 error :-(
Bob
You can check the server logs for clues - or ask your web-host if they have any other settings that might limit this. Dumping the values of the $_FILES array would be useful but probably won't work because of the 500 error :-(
Bob
The error log corresponding to my last attemt is here:
I am afraid I am out of my league here...
[Tue Apr 09 17:53:49 2013] [warn] [client 153.160.156.224] mod_fcgid: HTTP request length 131788 (so far) exceeds MaxRequestLen (131072), referer: http://vps-1020100-10773.cp.tsukaeru.ne.jp/index.php?option=com_chronoforms&tmpl=component&chronoform=paper-rescue-order&event=Page%20Three&cf_sid=087a40385c40ccaa827b7c6b33c33945
I am afraid I am out of my league here...
Hi genegun,
That's a server setting I've never seen before. I Googled and found this page which might help you.
Bob
That's a server setting I've never seen before. I Googled and found this page which might help you.
Bob
This topic is locked and no more replies can be posted.