Installer Error

I’ve been wrestling ContentBox all night long, and have finally made it to this screen. I’ve looked for an answer, but I must be too tired to find it.

Aré you using the bleeding edge?

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Yes. I did specify to use bleeding edge

Is this Railo or Adobe CF? Which version? I’ve never seen that error before, and it also confuses me as PageService.savePage() doesn’t have a return type specified (at least in the development channel of ContentBox)

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I have it under the CF11, and specifically made sure that the embed Railo server was not running

I’m VERY good at breaking things

Well, for starters I guess-- does your savePage() method in the pageService() have a return type? If so, take it off and dump/abort the returned value to see what it is.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I’ll look at it when I get home. This page dump happened when I was completing the ContentBox setup module.

Byron Ferguson

Application Execution ExceptionError Type: PageService : [N/A]

Error Messages: The value returned from the savePage function is not of type PageService.
If the component name is specified as a return type, it is possible that either a definition file for the component cannot be found or is not accessible.

Tag Context:
ID: CF_TEMPLATEPROXY
LINE: 479
Template: C:\ColdFusion11\cfusion\wwwroot\modules\contentbox-installer\model\InstallerService.cfc

/***********************
/* line @ 479 of InstallService.cfc

479 pageService.savePage( page );

/***************************

  • Save a page and do necessary updates
  • @page.hint The page to save or update
  • @originalSlug.hint If an original slug is passed, then we need to update hierarchy slugs.
    */
    PageService function savePage( required any page, string originalSlug="" ) transactional{

// Verify uniqueness of slug
if( !contentService.isSlugUnique( slug=arguments.page.getSlug(), contentID=arguments.page.getContentID() ) ){
// make slug unique
arguments.page.setSlug( getUniqueSlugHash( arguments.page.getSlug() ) );
}

// Save the target page
save( entity=arguments.page, transactional=false );

// Update all affected child pages if any on slug updates, much like nested set updates its nodes, we update our slugs
if( structKeyExists( arguments, “originalSlug” ) AND len( arguments.originalSlug ) ){
var pagesInNeed = newCriteria().like( “slug”, “#arguments.originalSlug#/%” ).list();
for( var thisPage in pagesInNeed ){
thisPage.setSlug( replaceNoCase( thisPage.getSlug(), arguments.originalSlug, arguments.page.getSlug() ) );
save( entity=thisPage, transactional=false );
}
}

return this;
}

this is the

I just noticed that it seems the code that is breaking during the set-up wizard is the switch to populate the site with dummy data.

After turning off “fill with dummy data” during the set-up I got the homepage up and running.

Now I get a 404 trying to go to the admin page. good grief

I don’t think I’ll ever get this. I scrapped everything and just tried to use CommandBox to create an app.

coldbox create app --installColdBoxBE --int

It looks like Luis just added that method return type in a commit 6 days ago. That most likely broke it. I’m guessing it’s a difference between how Railo and Adobe CF handle paths.

https://github.com/Ortus-Solutions/ContentBox/commit/6ef1ebcf84e211fd5b3844f352659d622f5fa0bd#diff-c63d51627d99bda168909aac18199771R45

There’s a lot of development happening right now so perhaps the bleeding edge of Contentbox isn’t the safest place to be. I’d try the stable release.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I just tried that on CommandBox and it works fine with the Railo embedded server as well as ColdFusion 11.

We’re going to need more info than that. Can you share:

  1. Full stack trace of the error
  2. Configuration details (file structure, web root, cf mappings, etc)
  3. Which server? Railo, Adobe CF 11, etc?
  4. CommandBox version (use version command)

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Does this look like an error I would have if the ColdBox app is install one directory below my ACF11 wwwroot?

I ask because if I run “start” from Commandbox it renders the page

There’s too many unknowns that you haven’t shared with us to really understand how you have stuff set up. Primarily, what server are you using, and what is the web root of that server?

This is quite possibly just a mapping issue. Especially, if you are using CF11 as the server and your site is in a subdirectory. If you want to run the site in a subdirectory, you will need to install ColdBox to the web root OR create an app-mapping in your site’s Application.cfc that maps /coldbox to the coldbox folder. That’s just how CFML resolves components.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

When you say “the page”, do you mean the screen shot below, the error in your last message, or the site you expect to see?

When you start a server in CommandBox, it uses the current directory as the web root which makes coldbox.system.etc resolve property without mappings as long as ColdBox is installed in the web root.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com