ColdFusion在CFSET Bad File Exception上给出错误

时间:2015-03-03 12:34:00

标签: coldfusion bluedragon

我一直在使用coldfusion网站遇到这个问题,我正在尝试迁移到我的托管计划。当我调出索引文件时,我一直看到这个:

Bad File Exception 
Request /index.cfm 



Type Template 
Message Expression Error 
Position Line=166; Column=25 
Detail Problem occurred while parsing: count++ 
Extended Info Encountered "<EOF>". Was expecting one of:         
<FLOATING_POINT_LITERAL> ... "-" ... "+" ... "#" ... "(" ... 
   <IDENTIFIER> ... "DOES" ... "CONTAIN" ... "GREATER" ... "THAN" ... "LESS" ... "VAR" ... <INTEGER_LITERAL> ... <STRING_LITERAL> ... <BOOLEAN_LITERAL> ... "NULL" ...  

Source 163:                       </li>
164:                     </ul><!--end social-->
165:                   </section><!--end column-->
166:                   <cfset count++> <-- that is where the error happens
167:                 </cfoutput>
^ Snippet from underlying CFML source enter code here

BlueDragon Time @ Server:04:29:08.223 2015年3月3日,星期二

我真的不知道出了什么问题,所以如果有人能帮助我,那将是非常棒的。在这一点上,任何建议都会很棒。谢谢!

1 个答案:

答案 0 :(得分:0)

<cfset count++> 

以上语法在BlueDragon中可能无效。您可以将其更改为更通用,这是所有主要CFML引擎都支持的。

<cfset count = count+1>