Because I have a test page that increments a session variable by 1. Every time I call that page, the session variable increases by 2. And I can tell that the 2nd time is happening "behind the scenes" because I dump the session variable.
-- Olivier Bridgeman On Wednesday, 23 January 2013 15:53:21 UTC-5, Dan Wilson - [email protected] wrote: > > How do you know the page action is run two times? > > DW > > olivierb wrote: > > > OK, I still need help with debugging this issue. Just so I'm clear, it > seems that every page action is run two times. My browser shows the > result after the first run, and then the action is run a second time > in the background. > > What I've tried so far: > 1) I've tried to restart CF and then start the application with > ?init=me as per http://docs.model-glue.com/ticket/404. This does not help. > 2) I'm using Model-Glue 3. I tried running the application with > Model-Glue 3.1.299. I still get the same error. > 3) I tried running the app in Firefox and in Chrome, in case there was > a plugin running. I still get the same error. > > Can anyone suggest where else to look? > > -- > Olivier Bridgeman > > On Thursday, 6 De cember 2012 17:24:04 UTC-5, JR wrote: > > Forgot about YSlow. I always keep it disabled unless I need it. I > just looked and that bug was fixed 3 years ago. How time flies. > > > On Thu, Dec 6, 2012 at 5:17 PM, Matt Quackenbush > <[email protected] <javascript:>> wrote: > > I remember that. :-) As I recall it was posting form data twice. > > > > On Thu, Dec 6, 2012 at 4:16 PM, Dan Wilson <[email protected] > <javascript:>> wrote: > > I ran into the same issue once. > > It turned out Firebug, or the YSlow plug in was running > &nbs p; the request again to time it. > > I nearly pulled out my hair, before I figured it out. > > On Dec 6, 2012 5:13 PM, "JR" <[email protected] > <javascript:>> wrote: > > > > Is the version of Model-Glue out of date? I ran into an > issue a while back where listeners were duplicated > depending on how the application was initialized. > > > > http://docs.model-glue.com/ticket/404 > <http://docs.model-glue.com/ticket/404> > > > > > > On Thu, Dec 6, 2012 at 4:57 PM, olivierb > <[email protected] <javascript:>> wrote: > >> > >> Hi, > >> > >> I have a model-glue app running that's been fine but on > our development environment, I've recently noticed a > problem where it seems that events are being triggered two > times. I just noticed this because when I call an event > thats adds an item to SESSION scope, it gets added 2 times. > >> > >> I'm running the following code on a test page: > >> > >> <cfif StructKeyExists(URL, "clearSession") AND > URL.clearSession EQ 1> ; > >> <cfset structDelete(SESSION, "myCounter")> > >> </cfif> > >> > >> <cfif StructKeyExists(SESSION, "myCounter")> > >> <cfset SESSION.myCounter += 1> > >> <cfelse> > >> <cfset SESSION.myCounter = 1> > >> </cfif> > >> > >> <cfdump var="#SESSION#" label="SESSION"> > >> > >> <cfdump var="#SESSION.myCounter#" format="text" > > output="#getDirectoryFromPath(getBaseTemplatePath())#\devlog.txt" > /> > >> > >> > >> When I call the the page as: > >> test?clearSession=1 > >> > & nbsp; >> I see on the screen that: > >> myCounter is 1 > >> > >> The devlog.txt file contains: > >> > >> 1 > >> > > ************************************************************************************ > > >> > >> 1 > > > > > ************************************************************************************ > > >> > >> > >> When I call the page a second time as just: test > >> (without the clearSession URL parameter) > >> > >> I see on the screen that: > >> myCounter is 1 > >> > & nbsp; >> The devlog.txt file contains: > >> > >> 1 > >> > > ************************************************************************************ > > >> > >> 1 > >> > > ************************************************************************************ > > >> > & nbsp; >> 2 > >> > > ************************************************************************************ > > >> > >> 3 > >> > > ************************************************************************************ > > >> > >> > >> When I call the page a third time as just: test > & nbsp; >> (without the clearSession URL parameter) > >> > >> I see on the screen that: > >> > >> myCounter is 4 > >> > >> The devlog.txt file contains: > >> > >> 1 > >> > **************************** > ******************************************************** > > >> > >> 1 > >> > > ************************************************************************************ > > >> > >> 2 > >> > > ************************************************************************************ > > >> > &n bsp; >> 3 > >> > > ************************************************************************************ > > >> > >> 4 > >> > > ************************************************************************************ > > >> > >> 5 > >> > > ************************************************************************************ > > >> > >> > >> > >> So it seems that the action is repeated after it is > displayed on my browser, because the text log counter is 1 > ahead of the screen. > >> > >> I created a page called test.cfm in my root folder with > the same cod e to see if this was related to MG and in that > test page, the myCounter goes up by 1 on every refresh. > >> > >> Does anyone have insight onto where to look or how to > debug this? > >> > >> -- > >> Olivier Bridgeman > >> > >> -- > >> Model-Glue Site s: > >> Home Page: http://www.model-glue.com > >> Documentation: http://docs.model-glue.com > >> Bug Tracker: http://bugs.model-glue.com > >> Blog: http://www.model-glue.com/blog > >> > >> You received this message because you are subscribed to > the Google > >> Groups "model-glue" group. > >> To post to this group, sen d email to > [email protected] <javascript:> > >> To unsubscribe from this group, send email to > >> [email protected] <javascript:> > >> For more options, visit this group at > >> http://groups.google.com/group/model-glue?hl=en > <http://groups.google.com/group/model-glue?hl=en> > > > > > > --< BR> > Model-Glue Sites: > > Home Page: http://www.model-glue.com > > Documentation: http://docs.model-glue.com > > Bug Tracker: http://bugs.model-glue.com > > Blog: http://www.model-glue.com/blog > > > > You received this message because you are subscribed to > the Google > > Groups "model-glue" group. > &nb sp; > To post to this group, send email to > [email protected] <javascript:> > > To unsubscribe from this group, send email to > > [email protected] <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/model-glue?hl=en > <http://groups.google.com/group/model-glue?hl=en> > > -- > Model-Glue Sites: > &nb sp; Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to > the Google > Groups "model-glue" group. > To post to this group, send email to > [email protected] <javascript:> > &nbs p; To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > <http://groups.google.com/group/model-glue?hl=en> > > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > & nbsp; Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > <javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > <http://groups.google.com/group/model-glue?hl=en> > > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: ht tp://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected]<javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
