manningc
asked on
No data found in document -error dialog
I have built many web-form sites which are processed by
CGI programs in perl on UNIX servers. Occasionally a user
reports getting the error dialog "No data found in document"
or just "No data found" when clicking on the Submit button.
Can anyone tell me what causes this? It only occurs occasionally and only to certain people. Is there a client
environment issue which usually causes this? I have also
experienced this myself occasionally when filling out web forms.
CGI programs in perl on UNIX servers. Occasionally a user
reports getting the error dialog "No data found in document"
or just "No data found" when clicking on the Submit button.
Can anyone tell me what causes this? It only occurs occasionally and only to certain people. Is there a client
environment issue which usually causes this? I have also
experienced this myself occasionally when filling out web forms.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could have asked more before giving a D grade.
This apart, i claim to be some sort of CGI expert, at least because i've written CGI scripts since the CGI protocol was invented, and have had occasions to face all kinds of problems, on lots of different OS/WebServer combinations; "Document contains no data" means what i've said and it is not my fault if you don't know how to debug your environment.
Just a hint: make your script output debug information to a log file (at least until you find the problem); _be_sure_output_to_the_log _is_unbuff ered_.
You could make it print stuff like "Opening a certain file", "Reading data", "Parsing data..." "done.", and so on, as you see need.
Good luck.
This apart, i claim to be some sort of CGI expert, at least because i've written CGI scripts since the CGI protocol was invented, and have had occasions to face all kinds of problems, on lots of different OS/WebServer combinations; "Document contains no data" means what i've said and it is not my fault if you don't know how to debug your environment.
Just a hint: make your script output debug information to a log file (at least until you find the problem); _be_sure_output_to_the_log
You could make it print stuff like "Opening a certain file", "Reading data", "Parsing data..." "done.", and so on, as you see need.
Good luck.
ASKER
The grading form has no "letter grades" on it. Just words,
like "excellent"...etc. I checked "Acceptable". It doesn't say
anything about a "D". There's no need to be so sensitive; nobody forced you to answer the question. There's no need to condescend; just because I didn't know this particular thing doesn't mean I'm an idiot.
You got the points, didn't you?
like "excellent"...etc. I checked "Acceptable". It doesn't say
anything about a "D". There's no need to be so sensitive; nobody forced you to answer the question. There's no need to condescend; just because I didn't know this particular thing doesn't mean I'm an idiot.
You got the points, didn't you?
Hmmm, that must be a new feature; there used to be "A" to "E" grades.
I don't think you are an idiot, but giving a D grade is not considered very kind unless you have gotten an idiot answer (that's why i got so sensitive); anyway, i've just read your profile and seen you are new to this forum... have fun! :)
I don't think you are an idiot, but giving a D grade is not considered very kind unless you have gotten an idiot answer (that's why i got so sensitive); anyway, i've just read your profile and seen you are new to this forum... have fun! :)
ASKER
this does happen, so I accept your answer. However, my production scripts have no "silent dies" and contain very strict error handling. The form being processed is pretty complex
so all I can figure is that there must be some weird data
condition users hit occasionally that I can't reproduce in
testing.
Thanks....