Commandbox installs failing - Preside Admin Skeleton

It’s been a while!
I’ve just been going through the commandbox installs using the latest commandbox and am hitting problems.

Using the Preside Admin Skeleton (OFFICIAL):
The error I’m getting is:

 500 : An error occurred
Event: admin.login.index
Routed URL: N/A
Layout: adminLogin.cfm (Module: )
View: /admin/login/firstTimeUserSetup
Timestamp: 09/14/2024 09:35:34 PM Type: Builder.DSLDependencyNotFoundException
Messages: The target 'app.extensions.preside-ext-launcher.handlers.admin.launcher.datasource.Pages' requested a missing dependency with a Name of 'siteTreeService' and DSL of 'siteTreeService' {ref={null}, required={true}, argName={}, dsl={siteTreeService}, javaCast={null}, name={siteTreeService}, type={any}, value={null}, scope={variables}}
Tag Context:
Template: 	C:\web\library\preside\system\externals\coldbox\system\ioc\Builder.cfc
LINE: 	481: message = injectMessage,
482: detail = arguments.definition.toString(),
483: type = "Builder.DSLDependencyNotFoundException"
484: );
485: }

It seems like it’s not finding the siteTreeService which I’m figuring it shouldn’t need for the Admin skeleton.
Something to do with the -
settings.features.sitetree.enabled = false;
not being honoured, pehaps.

That will be a bug with latest Preside version where we try to minimize the loaded resources based on unused features. Will need to update the launcher extension with a fix.

I’ve created Preside 10.27 compat issue: siteTreeService not available in admin only apps · Issue #10 · pixl8/preside-ext-launcher · GitHub

1 Like

Thanks @dominic.watson
That seems to bypass that error.
The next issue I’m hitting is:

 500 : An error occurred
Event: admin.dashboard.index
Routed URL: N/A
Layout: admin.cfm (Module: )
View: admin/dashboard/index
Timestamp: 09/16/2024 09:45:17 PM Type: missinginclude
Messages: Page /app/views/admin/sites/sitepicker/index.cfm [C:\web\library\application\views\admin\sites\sitepicker\index.cfm] not found
Tag Context:
Template: 	C:\web\library\preside\system\coldboxModifications\services\RendererEncapsulator.cfm
LINE: 	39: // views with 'var' declarations
40: // break without this
41: include template=arguments.viewPath;
42: }
43: 

Curious - I wouldn’t expect the site picker to be invoked at all. I’ll try to get this up and running locally, had thought that I’d covered the admin template but clearly not :flushed:

Found and fixed the issue here:

I can now do an admin skeleton install as expected. let me know if any more problems and apologies for the inconvenience.

1 Like