Is this piece of the application wrapped in a custom tag?  If you nest code
in a custom tag, and don't do any checking of the execution mode
(thisTag.ExecutionMode) then the nested code will execute 2X.

----- Original Message -----
From: "Hinojosa, Robert A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 12:08 PM
Subject: VERY strange problem


> I'm having this really wierd problem that I've never encountered before.
> When I execute a page in CF all the includes are being executed twice.
> Including those that write to the database and what not.  Debugging output
> shows as expected, with the page only executing once... All of my queries
> only show being inserted once.  But in reality it's doing it twice.
Anyway,
> i've tried to narrow down the issue by writing to a file in certain places
> throughout the page execution.  Also, this has been working for months,
and
> all of a sudden it's doing this on all servers (dev, q&a, and prod), and
no
> code has changed on these pages for weeks.
>
> This shows some very strange things which i've notated.
>
> Begin page 257716647 /this is my index.cfm page
> Begin handler start 257716656 /this calls the page to process error
> handling and db calls
> Begin handler start 257716727     /it's calling it again, even though
there
> are no loops around this call or anything.  This is very straight forward.
> Begin sql call 257716737 /now the sql called included, executing once
> Begin sql call 257716747 /and twice
> END sql call 257717067 /now back outside the sql include and going
> to the redirect.
> END sql call 257717077 /and for some reason cffile get's called
> again
> -------------redirection.
>
> I've aborted where the redirection is, and I only get what I expect to get
> in the debug output, single calls to the db and included files.  Yet, I
look
> in the db and there are two records inserted, and i look in the output of
my
> cffile, and i get above.  Has anyone seen anything like this before?
>
> Thanks,
>
> Robert Hinojosa
> [EMAIL PROTECTED]
> 972.243.4343 x7446
>
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to