Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid branch target position offset for goto...Error

Status
Not open for further replies.

guido449

Programmer
Feb 11, 2004
25
US
Our ISP recently moved us to a new server and (I am guessing) a newer version of CF. In our CRM (built with Allaire templates), we have an area to upload images. When I try to upload an image I get the error

Invalid branch target position offset for goto[167](3):-1: -1: Label

Can anyone tell me what this error means or where to start troubleshooting?

Faster arrival times through superior horsepower.
 
guido449, since you know what file generates the error, wrap the cf code in that file with <cftry><cfcatch> then <cfdump> the error.

<cfdump>'s give more information for debugging and, in many cases, makes debugging much easier.

A typical <cftry> goes like:
Code:
<cftry>
  ...CF CODE HERE...
<cfcatch type="any">
  <cfdump var="#cfcatch#">
</cftry>

You may also have to post the code here so we can look and see what the issue might be...

____________________________________
Just Imagine.
 
It's a problem with <cfswitch> in MX 6.1 and 7. If you look in the Macrodobe Support Forums, you'll find it mentioned a few times:

One of the posts says:
We upgraded to 6.1 and also started getting this error. We were able to diagnose it to a joint use of <CFCASE> with <CFBREAK>. Even if the <CFBREAK> is being properly used (to break out of a loop) rather than to break out of a <CFCASE> (no need). Changed our <CFSWITCH> to a series of <CFIF>s and it is working.
Another person states:
I'm not sure which version of Cf you're using, but this page indicates
you cannot use cfbreak in cfcase/cfswitch any more in CFMX7
also
And another:
My page which cause this error had two nested <CFSWITCH tags. I replace them with <CFIF statements and the page ran fine. It appears CF MX 6.1 doesn not handle <CFSWITCH tags correctly.

I see a pattern developing here....


Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top