Nando,

WIthout the CFINCLUDE being executed (which it's not because of pre-compiled code) you're not getting a missing include error.

Because your include is effectively missing and your include path was invalid for the deployment platform, your UDF really IS missing because that include file never really got included.

You might try changing your include like this:

<cfset includepath = "/udf/url.cfm">
<cfinclude template="#includepath#">

Change the path, compile for production, deploy, and then change back to dev. Or compile against a separate set of files.

Either way, your UDF is missing and undefined because your paths are wrong, but you're not seeing the normal errors because you've skipped the runtime compile process that returns certain types of errors in CF.

I think. :) Hehe... remember, advice is often worth what you pay for it.

Laterz!

J

On 5/16/05, Nando <[EMAIL PROTECTED]> wrote:
Hi all,

I'm running into a problem here and i'm not sure what i'm looking at. I have
a UDF include at the top of a cfc, to be specific, an IsURL() function.
Looks something like this:

<cfcomponent ... >
        <cfinclude template="udfs/IsURL.cfm" />

        <cffunction name="init"  .. >

etc.

Just to say, i've been using this component as is on about 30 sites without
modification and without problems, so i'm pretty sure i'm looking at an
anomoly.

On this site, this difference is that i've compiled all the templates and
uploaded them instead of uploading the source code - so yes, this is running
on CFMX 7. I haven't done that elsewhere. On the production server, i'm
getting an error when this cfc tries to call IsUrl() -

"Variable IsURL is undefined"

If i run the code on my dev setup from source, it works. If i run it from
the compiled directory on my dev setup, it works. If i run it from the
server, i get the error. I've recompiled everything and reuploaded
everything and reset all the cached components, but no joy.

I notice that within the compiled templates there are paths to the location
of the source code, but they aren't valid on the production server, only on
my dev server. Could those incorrect paths be causing the problem?

I don't understand what might be going on here. I'm going to implement a
workaround now, probably just include the function within the CFC itself,
but if anyone can shed some light on this, i'd be grateful. I'd prefer to
only deploy compiled code from now on, so i'm looking more toward an overall
understanding rather than a quick fix.

thanks,
Nando

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]




--
---------------
-------------------------------------
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again. ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to