CB Team: I’m really struggling. Trying to setup a new site, and set it up with ContentBox, too. I’ve gone through the steps here (which are a bit … lacking. No mention of having to put a datasource or dialect values.)
https://contentbox.ortusbooks.com/getting-started/installation/existing-coldbox-application
When it comes down to attempting to instantiate the EventHandler in the ORM setup, it fails. I started debugging. Here’s my current code, all that should matter:
// LOCATION MAPPINGS
this.mappings[ “/contentbox” ] = COLDBOX_APP_ROOT_PATH & “modules/contentbox”;
// THE LOCATION OF THE ORM MODULE
this.mappings[ “/cborm” ] = this.mappings[ “/contentbox” ] & ‘\modules\contentbox-deps\modules\cborm’;
writeOutput(‘Lucee Version: Lucee 5.3.3.62
’); // Hardcoded
writeDump(“ExpandPath(this.mappings[ ‘/cborm’ ])”);
writeDump(expandPath(this.mappings[ “/cborm” ]));
writeOutput(’
’);
writeDump(‘File exists? ’ & expandPath(this.mappings[ “/cborm” ]) & ‘models\EventHandler.cfc’ & ‘?’);
writeDump(fileExists(expandPath(this.mappings[ “/cborm” ]) & ‘models\EventHandler.cfc’));
writeOutput(’
’);
writeDump(“Try: createObject(‘component’, ‘cborm.models.EventHandler’) …”);
x = createObject(‘component’, ‘cborm.models.EventHandler’)
writeDump(x);
abort;
You can see that I have the mappings, by the fact the expandPath works. I can confirm that the file exists, and specifically using the mapping to do so.
But when I try to directly instantiate the object (that was failing in the ORM setup, doing manually here), it fails.
As best I can tell, there’s one of two things happening here:
a) Does it not like the dash in “contentbox-deps” ?
b) The path is just too darn long?
I have tried this with my already installed Lucee, as well as trying it with the embedded “server start” and port from CommandBox. Both fail in exactly the same way.
I’m at wit’s end. Almost ready to head off to Wordpress, ugh.