Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error in ColdFusion (Open BlueDragon) CFScript  Badly formatted tag

Posted on 2011-09-10
4
Medium Priority
?
504 Views
Last Modified: 2012-05-12
I have a hosting site that has added 'ColdFusion' support to my site.  I found out that it is not the Adobe CF but Open BlueDragon.  I put together a simple page to see how well BD works as I've not used it before.  I get an error on this code and the hosting service has not been responsive to see if they have a bad install or is it just something bad on my part.  I can run this page on other true Adobe CF sites and it works.  
Am I missing something obvious?

Any thoughts?

Here is the error:
Bad File Exception
Request	/junk/cfScriptTest.cfm

Type	Template
Message	Badly formatted tag
Position	Line=4; Column=16
Detail	Problem occurred while parsing: Syntax error at line 2, column 16. Encountered: "=" after : "<"
Source	

1: <html>
2: <title>CfScriptTest</title>
3: <cfscript>
4:   for ( x=1; x <= 5; x++ ){
5:       WriteOutput( x );

^ Snippet from underlying CFML source

BlueDragon Time @ Server: 08:23:03.790 Saturday, 10 September 2011 

Open in new window

<html>
<title>CfScriptTest</title>
<cfscript>
	for ( x=1; x <= 5; x++ ){
  		WriteOutput( x );
	}
</cfscript>
<body>
CFSCRIPT test

<br />
</body>
</html>

Open in new window

E43509-498938.flv
0
Comment
Question by:E43509
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
cfEngineers earned 2000 total points
ID: 36516317
replace <= with LTE and replace x++ with x=x+1
0
 

Author Comment

by:E43509
ID: 36516786
Wow that worked!  I don't understand why as the BD manualOpenBdManual show this as its example
// Looping Simple
for ( x=1; x <= 5; x++ ){
  WriteOutput( x );
}

Open in new window


Using your LTE and x=x+1 also worked on my Adobe CF servers.
Thanks.  Just curous ... do you think it is a version of Blue Dragon issue?
0
 
LVL 6

Expert Comment

by:cfEngineers
ID: 36516878
It could be.

Which version of BD are you using?
0
 
LVL 52

Expert Comment

by:_agx_
ID: 36516924
> do you think it is a version of Blue Dragon issue?
>> It could be.

That'd make sense as even ACF didn't support the <= and ++ syntax until version 8 I think.  With 7 and earlier you still have to use the LTE and x = x + 1 syntax.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question