mel150
asked on
cfinput error
Oh-oh, I've done it now. I am getting these errors when I try to go to http://dev.mymagickitchen.com/catalog/index.cfm?fuseaction=cust_catalog&product_id=384&Cat_sort=1&rest_cat=0&drilldown=true&default_description=0&pageRef=current_month_cust&custom_cat=1&CFID=7105299&CFTOKEN=44840730
attributes.fuseaction: cust_catalog message: Context validation error for tag CFINPUT.
detail: The tag must be nested inside a CFFORM tag.
extendedinfo:
ErrorCode:
Type: Template
1 (31,0) C:\CFusionMX\wwwroot\WEB-I NF\cftags\ input.cfm
2 (21,0) C:\CFusionMX\wwwroot\WEB-I NF\cftags\ input.cfm
3 (17,0) C:\CFusionMX\wwwroot\WEB-I NF\cftags\ input.cfm
4 (45,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ includes\i nc_dsp_pro duct_on_me nu_page.cf m
5 (162,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ dsp_cust_c ategory_li st.cfm
6 (236,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ index.cfm
7 (234,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ index.cfm
8 (6,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ index.cfm
9 (1,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ index.cfm
10 (1,0) F:\Inetpub\wwwroot\mymagic kitchen_de v\catalog\ index.cfm
Can anyone see what the problem is in the code? Here it is:
<cfoutput>
<cfif NOT IsDefined("categoryName") OR categoryName NEQ get_product_list.product_g roup_type>
<cfset categoryName = get_product_list.product_g roup_type>
<tr bgcolor="##FF5416"><td colspan="6" align="left"><IMG src="#request.imagesroot#/ spacer.gif " ALT="" BORDER=0 width="10" height="1"><span class="head2" style="color: ##ffffff"><b>#categoryName #</b></spa n></td></t r>
</cfif>
<cfset i = 1 + #i#>
<tr bgcolor="#IIf(CurrentRow Mod 2, DE('F5F5EB'), DE('ffffff'))#">
<td align="center" ><img src="#request.imagesroot#/ spacer.gif " ALT="" BORDER=0 width="10" height="1"></td>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr>
<td><img src="#request.imagesroot#/ spacer.gif " alt="" border=0 width="3" height="1"></td>
<td class="entrees" align="left" colspan="2">
<cfif #get_product_list.heart# neq "">
#get_product_list.heart#
</cfif>
<a href="index.cfm?fuseaction =dsp_nutri tion&prodi d=#get_pro duct_list. id#&rest_c at=#rest_c at#&from_e ntrees=#fr om_entrees #&cat_sort =#cat_sort #&startite m=#i#&last item=#i#<c fif IsDefined('pageref')>&#pag eref#</cfi f>" CLASS="text"> <FONT COLOR="666600">#trim(get_p roduct_lis t.name)#</ FONT>...<i >learn more</i></a>
</td>
</tr>
<cfif #get_product_list.short_de scription# neq "" and #get_product_list.dsp_shor t_desc# eq 1>
<tr>
<td><img src="#request.imagesroot#/ spacer.gif " alt="" border=0 width="3" height="1"></td>
<td><img src="#request.imagesroot#/ spacer.gif " alt="" border=0 width="5" height="1"></td>
<td>#get_product_list.shor t_descript ion#</td>
</tr>
</cfif>
<!--- Display the product ratings. --->
<cfinclude template="inc_dsp_product_ ratings_on _menu_page .cfm">
</table>
</td>
<!--- If the product is a meal package then we won't display the quantity and price options. --->
<cfif trim(get_product_list.name ) EQ "Magic Meal Packages">
<td colspan="4" align="center"><a href="index.cfm?fuseaction =dsp_nutri tion&prodi d=#get_pro duct_list. id#&rest_c at=#rest_c at#&from_e ntrees=#fr om_entrees #&cat_sort =#cat_sort #&startite m=#i#&last item=#i#<c fif IsDefined('pageref')>&#pag eref#</cfi f>" class="text"><font color="##666600"><i>Learn more...</font></i></a></td >
<!--- Decrement the count in this case so we don't mess up the product count. --->
<cfset i = i - 1>
<cfelse>
<td align="center" class="entrees"><cfinput type="text" NAME="quantity#i#" VALIDATE="INTEGER" VALUE="0" MESSAGE="Please enter the quantity" size="1" style="width:20"></td>
<td align="center" class="entrees">$#NumberFo rmat(get_p roduct_lis t.price, "__________.__")#</td>
<td align="center" class="entrees">
<cfif get_product_list.sizes eq 1>
<cfquery datasource="#request.maind sn#" name="get_sizes">
select id,name from sizes where product_id=#get_product_li st.id# order by sort_order
</cfquery>
<cfif get_sizes.recordcount GT 1>
<select name="sizes#i#">
<cfloop query="get_sizes">
<option value="#get_sizes.id#">#ge t_sizes.na me#
</cfloop>
</select>
<cfelse>
<input name="sizes#i#" type="Hidden" value="#get_sizes.id#">#ge t_sizes.na me#
</cfif>
<cfelse>
<input type="hidden" name="sizes#i#" value="0">
N/A
</cfif>
</td>
<td align="center" class="entrees"><input type="image" src="#request.imagesroot#/ bag_mini.g if" name="submit_#i#" width="15" height="16" border="0"></td>
</cfif>
</tr>
<tr><td colspan="6" ><img src="#request.imagesroot#/ spacer.gif " alt="" BORDER="0" width="4" height="3"></td></tr>
<tr><td colspan="6"><img src="#request.imagesroot#/ spacer.gif " alt="" border="0" width="4" height="3"></td></tr>
<input type="hidden" name="product_id#i#" value="#get_product_list.i d#">
</cfoutput>
Thanks in advance, I'll keep looking in the meantime...
attributes.fuseaction: cust_catalog message: Context validation error for tag CFINPUT.
detail: The tag must be nested inside a CFFORM tag.
extendedinfo:
ErrorCode:
Type: Template
1 (31,0) C:\CFusionMX\wwwroot\WEB-I
2 (21,0) C:\CFusionMX\wwwroot\WEB-I
3 (17,0) C:\CFusionMX\wwwroot\WEB-I
4 (45,0) F:\Inetpub\wwwroot\mymagic
5 (162,0) F:\Inetpub\wwwroot\mymagic
6 (236,0) F:\Inetpub\wwwroot\mymagic
7 (234,0) F:\Inetpub\wwwroot\mymagic
8 (6,0) F:\Inetpub\wwwroot\mymagic
9 (1,0) F:\Inetpub\wwwroot\mymagic
10 (1,0) F:\Inetpub\wwwroot\mymagic
Can anyone see what the problem is in the code? Here it is:
<cfoutput>
<cfif NOT IsDefined("categoryName") OR categoryName NEQ get_product_list.product_g
<cfset categoryName = get_product_list.product_g
<tr bgcolor="##FF5416"><td colspan="6" align="left"><IMG src="#request.imagesroot#/
</cfif>
<cfset i = 1 + #i#>
<tr bgcolor="#IIf(CurrentRow Mod 2, DE('F5F5EB'), DE('ffffff'))#">
<td align="center" ><img src="#request.imagesroot#/
<td align="left">
<table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr>
<td><img src="#request.imagesroot#/
<td class="entrees" align="left" colspan="2">
<cfif #get_product_list.heart# neq "">
#get_product_list.heart#
</cfif>
<a href="index.cfm?fuseaction
</td>
</tr>
<cfif #get_product_list.short_de
<tr>
<td><img src="#request.imagesroot#/
<td><img src="#request.imagesroot#/
<td>#get_product_list.shor
</tr>
</cfif>
<!--- Display the product ratings. --->
<cfinclude template="inc_dsp_product_
</table>
</td>
<!--- If the product is a meal package then we won't display the quantity and price options. --->
<cfif trim(get_product_list.name
<td colspan="4" align="center"><a href="index.cfm?fuseaction
<!--- Decrement the count in this case so we don't mess up the product count. --->
<cfset i = i - 1>
<cfelse>
<td align="center" class="entrees"><cfinput type="text" NAME="quantity#i#" VALIDATE="INTEGER" VALUE="0" MESSAGE="Please enter the quantity" size="1" style="width:20"></td>
<td align="center" class="entrees">$#NumberFo
<td align="center" class="entrees">
<cfif get_product_list.sizes eq 1>
<cfquery datasource="#request.maind
select id,name from sizes where product_id=#get_product_li
</cfquery>
<cfif get_sizes.recordcount GT 1>
<select name="sizes#i#">
<cfloop query="get_sizes">
<option value="#get_sizes.id#">#ge
</cfloop>
</select>
<cfelse>
<input name="sizes#i#" type="Hidden" value="#get_sizes.id#">#ge
</cfif>
<cfelse>
<input type="hidden" name="sizes#i#" value="0">
N/A
</cfif>
</td>
<td align="center" class="entrees"><input type="image" src="#request.imagesroot#/
</cfif>
</tr>
<tr><td colspan="6" ><img src="#request.imagesroot#/
<tr><td colspan="6"><img src="#request.imagesroot#/
<input type="hidden" name="product_id#i#" value="#get_product_list.i
</cfoutput>
Thanks in advance, I'll keep looking in the meantime...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well,
It's not being executed or not getting to it. The message is very clear:
attributes.fuseaction: cust_catalog message: Context validation error for tag CFINPUT.
detail: The tag must be nested inside a CFFORM tag.
I'm not familiar with fusebox but I know the CF messages are accurate.
It's not being executed or not getting to it. The message is very clear:
attributes.fuseaction: cust_catalog message: Context validation error for tag CFINPUT.
detail: The tag must be nested inside a CFFORM tag.
I'm not familiar with fusebox but I know the CF messages are accurate.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way, I'm guessing you found it since I see no error message when I view the pagelink you posted. And as a side note - the food looks delicious. :D
ASKER
thanks- I didn't really find it, I just uploaded the two pages again and it began to work. Thanks to you both for your help on this, I think the issue is we have two tired web developers working on it and we got our pages crossed.
And thanks for the compliment on the food! It makes me hungry, working on this website. :)
And thanks for the compliment on the food! It makes me hungry, working on this website. :)
ASKER
in mymagickitchen_dev\catalog
<CFFORM ACTION="index.cfm?#request
<CFSET i=0>
<CFLOOP QUERY="get_product_list">
<!--- Display each product on the menu page.--->
<cfinclude template="includes/inc_dsp
</CFLOOP>
<INPUT TYPE="Hidden" NAME="fuseaction" VALUE="buy">
<cfif #Rest_Cat# eq 0>
<INPUT TYPE="Hidden" NAME="product_type" VALUE="3">
<cfelse>
<INPUT TYPE="Hidden" NAME="product_type" VALUE="1">
</cfif>
<input TYPE="hidden" NAME="count" VALUE="#i#">
<input TYPE="hidden" NAME="Cat_sort" VALUE="#Cat_sort#">
<input TYPE="hidden" NAME="Rest_Cat" VALUE="#rest_cat#">
<input type="hidden" name="from_entrees" value="#from_entrees#">
<input TYPE="hidden" NAME="custom_session" VALUE="1">
<cfif isdefined("pageRef")>
<input TYPE="hidden" NAME="pageRef" VALUE="#pageRef#">
</cfif>
<TR><TD colspan="6"><IMG src="#request.imagesroot#/
<TR><TD colspan="2" align="right" height="35" VALIGN="TOP"><INPUT TYPE="IMAGE" src="#request.imagesroot#/