Skip to main content
July 28, 2013
Question

I can't find the error in my Application CFC however I am getting this on the page

  • July 28, 2013
  • 2 replies
  • 7088 views
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
 

Attribute validation error for tag CFQUERY.

The tag has an invalid attribute combination: name. Possible combinations are: 
  • Required attributes: 'datasource'. Optional attributes: 'blockfactor,cachedafter,connectstring,dbname,dbpool,dbserver,dbtype,debug,maxrows,name,password,provider,providerdsn,result,sql,timeout,username'. 
  • Required attributes: 'datasource'. Optional attributes: 'blockfactor,cachedwithin,connectstring,dbname,dbpool,dbserver,dbtype,debug,maxrows,name,password,provider,providerdsn,result,sql,timeout,username'. 
  • Required attributes: 'dbtype'. Optional attributes: 'blockfactor,cachedwithin,connectstring,datasource,dbname,dbpool,dbserver,debug,maxrows,name,password,provider,providerdsn,result,sql,timeout,username'. 
  • Required attributes: 'dbtype,name'. Optional attributes: 'cachedwithin,debug,maxrows,result,sql,timeout'.
 
  • Required attributes: 'dbtype,name'. Optional attributes: 'cachedafter,debug,maxrows,result,sql,timeout'.
This topic has been closed for replies.

2 replies

July 29, 2013

sorry, here is my Application.cfc thanks :

<cfcomponent output="no">

<cfscript>
       this.datasource="bikinifernanda_mysql";
    this.password="Milan74";
    this.applicationTimeout = createTimeSpan(0,0,0,10);
    this.clientmanagement = "yes";
    this.loginstorage = "session" ;
    this.sessionmanagement = "yes";
    this.sessiontimeout = createTimeSpan(0,1,0,0);
    this.setClientCookies = "yes";
    this.setDomainCookies = "yes";
    this.scriptProtect = "all";
</cfscript>

    <cffunction name="onApplicationStart" output="false" returntype="void">
        <cfset application.rds="bikinifernanda_mysql">
        <cfset application.wds="bikinifernanda_mysql">
       
        <cfset application.kaka="Dana">
        <cfset application.domain="http://www.bikinifernanda.com">
        <cfset application.websiteurl="#application.domain#">
        <cfset application.email="info@bikinifernanda.com">

        <cfset application.filepath="c:\inetpub\wwwroot\www\cust\bikinifernanda.com">
        <cfset application.headshotspath="#application.filepath#\media\headshots">
        <cfset application.photospath="#application.filepath#\media\photos">
        <cfset application.photospath="#application.filepath#\media\videos">
        <cfset application.path="#application.filepath#">
        <cfset application.galleryfolder="#application.filepath#\media\photos">
        <cfset application.GalleriesUrl="/media/photos">
       
        <cfset application.emailfrom="ferafailovich@gmail.com">
        <cfset application.emailbcc="exelstudio@gmail.com">
        <cfset application.emailserver="in.mailjet.com">
        <cfset application.emailusername="f97a5d20254179b44cdab74357d14153">
        <cfset application.emailpassword="47fa9905edde9fb50abecaf513d44d37">
        <cfset application.emailport="587">
       
    </cffunction>

</cfcomponent>

Participating Frequently
July 29, 2013

Well there is no cfquery in your application.cfc - why do you think this is where the error is happening?  Turn on the '

July 29, 2013

I wrote this on my host and they do not offer that feature. I am assuming that it is the first querry."this.datasource"  I moved this site from another host to the current one it was working fine on the first one I reupped the SQL's changed the logins rewroye the queries and if you visit http://bikinifernanda.com  you see the error I posted

Participating Frequently
July 29, 2013

It would help to show us the code for the cfquery in question.