Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3224910
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:16:42+00:00 2026-05-17T16:16:42+00:00

I have tried multiple tutorials on this topic from Forta.com and yet run into

  • 0

I have tried multiple tutorials on this topic from Forta.com and yet run into the same error:
“Error invoking CFC/….(file path)../wgn.cfc: Internal Server Error [Enable
debugging by adding ‘cfdebug to your URL parameters to see more info]”

I am working on my local machine and testing as localhost. Running WinXP Pro with sp3. Using Coldfusion’s web server.

Both my .cfm and .cfc are in the same folder under the the webroot. In my case:
c:\ColdFusion9\wwwroot\bridges(.cfm and .cfc here)
So, they are in a “bridges” folder under wwwroot.

The code should generate some autosuggest functionality when the user types in the input box. Instead, it just spits back the above error.

This is my cfc named wgn.cfc:

<cfcomponent output="false">
    <cfset THIS.dsn="bridges">
      <!--- Lookup used for auto suggest --->
      <cffunction name="getWGN" access="remote" returntype="array">
        <cfargument name="search" type="any" required="false" default="">
        <!--- Define variables --->
        <cfset var data="">
        <cfset var result=ArrayNew(1)>
        <!--- Do search --->
        <cfquery datasource="#THIS.dsn#" name="data">
        SELECT tblIDs.ID
        FROM tblIDs
        WHERE (tblIDs.IDType = 'xxx') AND (tblIDs.ID Like ('#ARGUMENTS.search#%'));
        </cfquery>
        <!--- Build result array --->
        <cfloop query="data">
        <cfset ArrayAppend(result, searchIDs)>
        </cfloop>
         <!--- And return it --->
        <cfreturn result>
       </cffunction>  
</cfcomponent>

And this is the relevant part of the form from my .cfm page:

    <cfform .....>
    <cfinput name="searchIDs" type="text" autosuggest="cfc:wgn.getWGN({cfautosuggestvalue})">
    //......more to form, obviously
    </cfform>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:16:42+00:00Added an answer on May 17, 2026 at 4:16 pm

    UPDATE
    Solution:

    change
     <cfset ArrayAppend(result, searchIDs)>
    to
     <cfset ArrayAppend(result, ID)>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using multiple joins in a statement and Have tried to make linq-to-SQl
We have a site that the client can no longer log into. IE7/8 says
I am developing for iPad and have created a standard UISplitViewController application using the
I have two tables, employer and position: Employer eID eName Position eID salary I
It what should be a simple task, or a simple google search, I have
All, While this is similar to another post , that post (does not indicate
After much confusion, I have finally managed to successfully deploy a instance of Cruise
So I'm trying to just add a simple ad to my app using admob.
Using Firefox, working on a Firefox extension, I continually get a javascript warning: reference
i am used to SQL Server and SQL enterprise studio when using databases in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.