Skip to main content
Participating Frequently
September 6, 2018
Question

Could not find the ColdFusion component or interface model.statistics.

  • September 6, 2018
  • 2 replies
  • 3420 views

Hi,

I'm getting that error even though statistics.cfc is present in model directory, I installed coldfusion 2018 and this code was written in cf10 and it was working fine only changed cf version cos I migrated my site to other hosting server where I installed latest coldfusion 2018 and getting that error now PFA. 

Some syntax has changed in latest version ?

Please help !
Best,

Sikander

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    December 6, 2018

    Can we get an answer as to WHY this is suddenly necessary in CF2018?

    BKBK
    Community Expert
    Community Expert
    December 7, 2018

    JTech​, as far as I know, it has always been like that.

    Participating Frequently
    December 7, 2018

    We have the application running on ColdFusion 2016 and ColdFusion 2018 and I can demonstrate that this was definitely NOT required before ColdFusion 2018.  This application has gone through at least 3 ColdFusion upgrades and this is the first I've had to add a mapping to instantiate my CFCs.

    WolfShade
    Legend
    September 6, 2018

    Did you map to model?  You can do it either in CFAdmin or by code.

    HTH,

    ^ _ ^

    Participating Frequently
    September 6, 2018

    Never had to do any explicit mapping before for this same code. Anyways how can I do this mapping ?

    WolfShade
    Legend
    September 6, 2018

    Well, you can do it in code (in application.cfc)

    this.mappings['/model'] = "D:/path/to/model/folder/";

    or

    <cfset this.mappings['/model'] = "D:/path/to/model/folder/" />

    Or you can do it in CFAdmin.  I forget exactly where it is, but you can browse the left nav and find it.  Create a new one, call it "model" and click to find the folder.  The caveat is that this will be available to all projects, not just one.  That could be good or bad, depending.

    HTH,

    ^ _ ^