Good morning...

CF 4.5 / Win 2000 Pro

Trying to setup a shopping cart and was doing fine last night testing this
code.
This morning when I start running it, I get the error message:
(The CFLOOP at 21:1 to 21:29 is the <CFLOOP Query="Session.Cart"> at the
bottom)

Why would the Session.Cart query suddenly not be available?
The Application.cfm should be creating it, even if it's undefined.......????

Rick

----------------------------------------------------------------------------
-------------

Error Diagnostic Information
QUERY

The QUERY attribute of the tag does not specify the name of an available
query

The error occurred while processing an element with a general identifier of
(CFLOOP), occupying document position (21:1) to (21:29).

----------------------------------------------------------------------------
--------------------------


- SessionManagement is enabled


- Code from Application.cfm

            <CFIF Not IsDefined("Session.Cart")>

                   <CFSET Session.Cart = QueryNew("PhotoFileName, Quantity,
Size, Amount")>

            </CFIF>


- Code from event_photo_cart.cfm

            <CFIF Form.Size4x6 is not "0">

                    <CFLOCK Scope="Session" Type="Exclusive" TimeOut="5">

                            <CFSET Temp = QueryAddRow(Session.Cart)>
                            <CFSET Temp = QuerySetCell(Session.Cart,
"PhotoFileName", "<CFOUTPUT>#Form.PhotoFileName#</CFOUTPUT>")>
                            <CFSET Temp = QuerySetCell(Session.Cart,
"Quantity", "<CFOUTPUT>#Form.Size4x6#</CFOUTPUT>")>
                            <CFSET Temp = QuerySetCell(Session.Cart, "Size",
"4 x 6")>
                            <CFSET Temp = QuerySetCell(Session.Cart,
"Amount",
"<CFOUTPUT>#DollarFormat(Evaluate(Form.Size4x6*3.95))#</CFOUTPUT>")>

                    </CFLOCK>

            </CFIF>

<CFLOOP Query="Session.Cart">
<CFOUTPUT>
PhotoFileName:&nbsp;&nbsp;#PhotoFileName#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quant
ity:&nbsp;&nbsp;#Quantity#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size:&nbsp;&nbsp;#Si
ze#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Amount:&nbsp;&nbsp;#Amount#
</CFOUTPUT>
</CFLOOP>

<CFABORT>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137470
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to