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]