-
1. Re: CF8 has stopped populating form scope
Adam Cameron. Apr 24, 2010 9:14 AM (in response to Adam Cameron.)Err... OK... weird. It's started working again now. And this didn't seem to require any specific input from me... it just started working again. I just cracked on with my coding, thinking "well if I need to test anything, I'll use BlueDragon instead, and deal with this later", and inadvertantly refreshed the CF8 window rather than the BD one, and the form worked fine. I went back to the test form I posted before, and simply reloaded it (resending the form data), and that worked too. And that definitely had not had any changes made to it since I last saw it not work.
"It's just one of those things", I guess.
If anyone's had this happen before and knows why, I'd still be keen to know WTF was going on, but for my immediate purposes, this issue has self-corrected.
Cheers.
--
Adam
-
2. Re: CF8 has stopped populating form scope
BKBK Apr 24, 2010 12:37 PM (in response to Adam Cameron.)There's one possibility I can think of. When you open the page for the first time, no form is submitted, and so the form scope dumped is the standard empty struct you expect. Now, it is quite likely that Coldfusion or the browser cached that version of the page, and reused it, instead of a fresh version.
-
3. Re: CF8 has stopped populating form scope
Adam Cameron. Apr 25, 2010 1:41 AM (in response to BKBK)Good thinking, but in the case of the repro code I quoted, I had never browsed to it before, so there was nothing previously to have been cached. Similarly with the actual form I was working on, various debugging elements I had added in were processing and rendering just fine.
--
Adam -
4. Re: CF8 has stopped populating form scope
Dan Bracuk Apr 25, 2010 6:03 AM (in response to Adam Cameron.)Regarding:
If anyone's had this happen before and knows why, I'd still be keen to know WTF was going on, but for my immediate purposes, this issue has self-corrected.
It's happened to us. In our case, the page was being served twice, I could see it happening. I would submit the form and everything would behave normally. Then, as soon as the status bar said "Done", the browser would start processing again and I'd get an error for a missing form variable. This behaviour was confirmed by viewing the IIS logs. We never did determine why it was happening.
-
5. Re: CF8 has stopped populating form scope
BKBK Apr 25, 2010 9:09 AM (in response to Adam Cameron.)Adam Cameron. wrote:
Good thinking, but in the case of the repro code I quoted, I had never browsed to it before, so there was nothing previously to have been cached. Similarly with the actual form I was working on, various debugging elements I had added in were processing and rendering just fine.
It's a self-submitting form page. The only way to have submitted the form is to have first browsed to the page!
-
6. Re: CF8 has stopped populating form scope
Adam Cameron. Apr 26, 2010 1:09 AM (in response to BKBK)Good thinking, but in the case of the repro code I quoted, I had never browsed to it before, so there was nothing previously to have been cached. Similarly with the actual form I was working on, various debugging elements I had added in were processing and rendering just fine.
It's a self-submitting form page. The only way to have submitted the form is to have first browsed to the page!
Haha, yes, indeed that one is. Well-spotted. The other one isn't and the code I posted is a gross simplification of most of the test rigs I had. You weren't to know that. But rest assured it's not a CF or a browser caching issue.
--
Adam
-
7. Re: CF8 has stopped populating form scope
Adam Cameron. Apr 26, 2010 1:11 AM (in response to Dan Bracuk)It's happened to us. In our case, the page was being served twice, I could see it happening. I would submit the form and everything would behave normally. Then, as soon as the status bar said "Done", the browser would start processing again and I'd get an error for a missing form variable. This behaviour was confirmed by viewing the IIS logs. We never did determine why it was happening.
Interesting. I'm not getting that double-load thing though. The browser symptom wasn't there, adn I was watching the HTTP traffic and it was definitely only being requested/responded to the once.
--
Adam -
8. Re: CF8 has stopped populating form scope
Adam Cameron. May 23, 2010 1:36 PM (in response to Adam Cameron.)Argh!
It's happening again.
I augmented the test rig this time to also dump out getHttpRequestData(), and I can see the form fields in there. Just not in the form scope.
I shall reboot and see what happens after that...
--
Adam
-
9. Re: CF8 has stopped populating form scope
Adam Cameron. May 26, 2010 1:09 AM (in response to Adam Cameron.)Weird... if I crank up my CF9 instance and try the same thing, the same thing happens, so I can't understand how it's a CF thing... but equally I can't think what else it would be. Also weird is that if I refresh the browser after the initial form submission "fails", then the stuff does show up in the form scope (this is both on the CF8 & CF9 instance). I'm not sure what to make of that.
--
Adam
-
10. Re: CF8 has stopped populating form scope
bah1234ir Jan 18, 2011 1:41 PM (in response to Adam Cameron.)I know this post is ages ago, but I get a similar issue which is very intermittent did you ever find out the cause?
- IE reports the page as expired; then the form vars don't exist.
- Form structure is empty (no form.fieldnames)
- getHttpRequestData().method is being reported as a GET
- cgi.http_referer is blank
Cannot determine if this is cause by network issues or the webserver. (CF8, IIS6)
-
11. Re: CF8 has stopped populating form scope
Adam Cameron. Jan 18, 2011 1:49 PM (in response to bah1234ir)Sorry, no: I didn't make any headway with this. It's happened again, but I just shrugged and left it. I'm not using this machine for much development @ the mo' either, for that matter.
I've not seen this happen before on any other CF8 install I have used (and I am using CF8 all day every day on my work machine).
--
Adam


