Troubleshooting Common Problems; Cfml Syntax Errors - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

You can run the Code Compatibility Analyzer from the ColdFusion MX Administrator. Select
Code Analyzer from the list of Debugging & Logging pages.
Note: The CFML analyzer does not execute the pages that it checks. Therefore, it cannot detect
invalid attribute combinations if the attribute values are provided dynamically at runtime.
For more information on using the Code Compatibility Analyzer, see Migrating ColdFusion
Applications.

Troubleshooting common problems

This section describes a few common problems that you might encounter and ways to resolve
them.
For more information on troubleshooting ColdFusion, see the Macromedia ColdFusion Support
Center Testing and Troubleshooting page at http://www.macromedia.com/support/coldfusion/
troubleshoot.html. For common tuning and precautionary measurements that can help you
prevent technical problems and improve application performance, see the ColdFusion tech tips
article, TechNote number 13810. A link to the article is located near the top of the Testing and
Troubleshooting page.

CFML syntax errors

Problem
: You get an error message such as the following:
Encountered "function or tag name" at line 12, column 1.
Encountered "\"" at line 37, column 20.
Encountered "," at line 24, column 61.
Unable to scan the character '\"' which follows "" at line 38, column 53.
These errors typically indicate that you have unbalanced <, ", or # characters. One of the most
common coding errors is to forget to close quoted code, pound sign-delimited variable names, or
opening tags. Make sure the code in the identified line and previous lines do not have missing
characters.
The line number in the error message often does not identify the line that causes the error.
Instead, it identifies the first line where the ColdFusion compiler encountered code that it could
not handle as a result of the error.
Problem
: You get an error message you do not understand.
Make sure all your CFML tags have matching end tags where appropriate. It is a common error to
omit the end tag for the
As with the previous problem, the line number in the error message often does not identify the
line that causes the error, but the first line where the ColdFusion compiler encounters code that it
could not handle as a result of the error. Whenever you have an error message that does not
appear to report a line with an error, check the code that precedes it for missing text.
Problem
: Invalid attribute or value.
If you use an invalid attribute or attribute values, ColdFusion returns an error message. To
prevent such syntax errors, use the CFML Code Analyzer. Also see
execution" on page
406
Chapter 18: Debugging and Troubleshooting Applications
,
cfquery
cfoutput
401.
,
, or
tag.
cftable
cfif
"Using the cftrace tag to trace

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents