ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 21st, 2012, 01:06 AM
chuck1rar chuck1rar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 4 chuck1rar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 24 sec
Reputation Power: 0
Method not found error

Cant work out why I am getting this error
The method getLatestThreads was not found in component forum.cfc.
Calling it from rss.cfm
<cfset data = application.forum.getLatestThreads(forumid=url.forumid)>

<cffunction name="getLatestThreads" access="public" returnType="query" output="false"
hint="Retrieve the last 20 posts to any threads in forums in this forum.">
<cfargument name="forumid" type="uuid" required="true">
<cfset var qLatestThreads = "">

<cfquery name="qLatestThreads" datasource="#variables.dsn#">
<cfif variables.dbtype is "oracle">
select * from (
</cfif>
select
<cfif not listFindNoCase("mysql,oracle",variables.dbtype)>
top 20
</cfif>
#variables.tableprefix#messages.title, #variables.tableprefix#threads.name as thread,
#variables.tableprefix#messages.posted, #variables.tableprefix#users.username,
#variables.tableprefix#messages.threadidfk as threadid,
#variables.tableprefix#messages.body,
#variables.tableprefix#threads.forumidfk,
#variables.tableprefix#forums.conferenceidfk
from #variables.tableprefix#messages, #variables.tableprefix#threads, #variables.tableprefix#users, #variables.tableprefix#forums
where #variables.tableprefix#messages.threadidfk = #variables.tableprefix#threads.id
and #variables.tableprefix#messages.useridfk = #variables.tableprefix#users.id
and #variables.tableprefix#threads.forumidfk = <cfqueryparam value="#arguments.forumid#" cfsqltype="CF_SQL_VARCHAR" maxlength="35">
and #variables.tableprefix#forums.conferenceidfk = #variables.tableprefix#conferences.id
order by #variables.tableprefix#messages.posted desc
<cfif variables.dbtype is "mysql">
limit 20
<cfelseif variables.dbtype is "oracle">
) where rownum <= 20
</cfif>
</cfquery>

<cfreturn qLatestThreads>
</cffunction>

Reply With Quote
  #2  
Old September 21st, 2012, 09:13 AM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
If you cfdump the application.forum CFC, I assume you will not see the method. If the CFC is created at app startup and cached in the application scope, you'd need to refresh the app or restart CF for any changes to be picked up.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Method not found error

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap