All,

As some of you may know, I am not a full time ColdFusion developer, but
sharing this problem may result in some public humiliation for me as I am
not well versed in ColdFusion best practices.

I have an important page on the Adobe User Group of Atlanta and Adobe Flash
Platform User Group of Atlanta sites that is exploding on me and I do not
know why. The site itself is basically an extension of Ray Camden's BlogCFC
that I created earlier this year to assist in running the groups. The page
that is causing the problem is:
http://www.afpugatlanta.org/ug/event.cfm?id=659B534A-1372-FB90-298BE097A2ED4769&mode=

The error message I am getting (intermittently) is:
" Element TITLE is undefined in EVENT."

Which references this line of code:
<!--- Call layout custom tag. --->
<cfmodule template="../tags/layout.cfm" title="#event.title#">


Obviously, this means that somehow either the event object is not getting
created or that there is no title property in the object. Or at least that
is what I think is going on.

Let me share with you the top of the file so you can see if there is
something I am doing wrong (I am pretty sure that you'll find different
things wrong, and although constructive criticism is welcomed, I really need
to slove this problem):

<cfsetting enablecfoutputonly=true>
<cfprocessingdirective pageencoding="utf-8">

<cfset presenter1 = "">
<cfset presenter2 = "">
<cfset headerimagename = "default">
<!---
<cfif url.mode is not "">
    <cfset mode = url.mode>
<cfelse>
    <cfset mode = "">
</cfif>
 --->
<!--- TODO: Create functionality for two sponsors --->
<cftry>
    <cfif StructKeyExists(url,  "id")>
        <cfset event = application.blog.getEvent(url.id)>
    <cfelse>
        <cfset event = application.blog.getNextEvent()>
    </cfif>
    <cfset location = application.blog.getLocation(event.locationfk)>
    <cfif event.presenter1fk NEQ "">
        <cfset presenter1 = application.blog.getPresenter(event.presenter1fk
)>
    </cfif>
    <cfif event.presenter2fk NEQ "">
        <cfset presenter2 = application.blog.getPresenter(event.presenter2fk
)>
    </cfif>
    <cfset sponsor1 = application.blog.getEventSponsor(event.sponsor1fk)>
    <cfif FileExists(ExpandPath(#application.imageroot# & "mailer/header_" &
#DateFormat(event.eventstart, "mmddyy")# & ".jpg"))>
        <cfset headerimagename = #DateFormat(event.eventstart, "mmddyy")# >
    </cfif>
    <cfcatch>

    </cfcatch>
</cftry>


I hope someone can assist me with this. Thanks in advance for reviewing my
stuff. Let me know if more information is required.

Leif

~~~~~~~~~~~~~~~~~~~~
Leif Wells
Manager, Adobe User Group of Atlanta
http://www.augatlanta.org/
Manager, Adobe Flash Platform User Group of Atlanta
http://www.afpugatlanta.org/
[EMAIL PROTECTED]



-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to