> I have an application on a CF5 server which traps and logs > errors with some CFERROR template. > I have noticed that when an error occurs in a template which > has some function definition in a CFSCRIPT tag, say > myFunction (), whatever the error is, even a syntax error, > the error message is always the same: > "The function myFunction has been defined twice". > Like if the template was recompiled a second time. > > This is really a PITA, because I have no mean to know what > the error could really be. > > Has anyone found a cure for that?
Are you sure you don't have the function defined twice? That's an easy enough mistake to make. Perhaps you're CFINCLUDEing a function library twice, or you're defining the function in a custom tag that is invoked with opening and closing tags? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261412 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

