Wrap your code like this:

<cftry>
   ... code ...
   <cfcatch type="any"><cfdump var="#cfcatch#"><cfabort></cfcatch>
</cftry>

Maybey ou can get som more robust error reporting that says where the
error actually occurred.

Rick

On 6/6/07, Ravi Gehlot <[EMAIL PROTECTED]> wrote:
> Hey Rick,
>
>    This is what I have:
>
>    <cfif isDefined("upload") AND upload EQ 'picture'>
>    <cfset memberPicturePath = '#expandPath("images/members")#'>
>    <cfset memberPictureFullPath =
> '#memberPicturePath#/#URL.clubMemberId#/'>
>        <cfif NOT DirectoryExists(#memberPictureFullPath#)>
>            <cfdirectory action="create" mode="777"
> directory="#memberPictureFullPath#">
>            <cffile action="upload" nameconflict="makeunique" mode="777"
> filefield="uploadMemberPicture" destination="#memberPictureFullPath#">
>            <cfset imageCFC = createObject("component","image")>
>            <cfset imgInfo = imageCFC.resize("",
> "#memberPictureFullPath##CFFILE.serverFile#",
> "#memberPictureFullPath##CFFILE.serverFileName#2.jpg",100,200)>
>            <cfquery name='memberAdd' datasource='#APPLICATION.dsn#'>
>                INSERT into    clubMember (
>                    pictureFileName
>                ) VALUES (
>                    '#imgInfo#'
>                )
>            </cfquery>
>        <cfelse>
>            <cfset warnMe = 6>
>        </cfif>
>    </cfif>
>
> Basically, I check to see if the directory already exists...if not I
> allow creation of a directory after the clubMember's Id then I upload
> the file and have the custom imagecfc tag create a component. Then it
> "supposedly" should resize the image and record the name on the database
> so it can be recalled by <img>
>
> What am I missing?
>
> Ravi.
>
> Rick Root wrote:
> > You'll have to go into a LOT more detail than that =)
> >
> > The ImageCFC support forums are here, btw:  http://url.rickroot.com/u/z
> >
> > Rick
> >
> > On 6/6/07, Ravi Gehlot <[EMAIL PROTECTED]> wrote:
> >
> >> The web site you are accessing has experienced an unexpected error.
> >> Please contact the website administrator.
> >>
> >> The following information is meant for the website developer for
> >> debugging purposes.
> >> Error Occurred While Processing Request
> >> The system has attempted to use an undefined value, which usually
> >> indicates a programming error, either in your code or some system code.
> >>
> >> Null Pointers are another name for undefined values.
> >>
> >> --
> >> -------------------------------------------
> >> Ravi Gehlot.
> >> Sr. Management
> >> Sunshine Technology Solutions, LLC
> >> http://www.sunshinetechsolutions.com/
> >> [EMAIL PROTECTED]
> >> Cell Phone: (407) 860-3775
> >> Business Line: (407) 745-1433
> >> -------------------------------------------
> >>
> >> Confidentiality Notice:  This message including any
> >> attachments is for the sole use of the intended
> >> recipient(s) and may contain confidential and privileged
> >> information. Any unauthorized review, use, disclosure or
> >> distribution is prohibited. If you are not the
> >> intended recipient, please contact the sender and
> >> delete any copies of this message.
> >>
> >>
> >>
> >>
> >>
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280249
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to