Asset manager Lucee 5 - Element at position [1] does not exist in list Array index out of range: 0

Description

500 : An error occurred
Event: admin.assetmanager.index
Routed URL: N/A
Layout: admin.cfm (Module: )
View: admin/assetmanager/index
Timestamp: 12/01/2017 12:57:33 PM Type: expression
Messages: Element at position [1] does not exist in list Array index out of range: 0
Tag Context:
Template: C:\Users{username}\.CommandBox\server{servername}\lucee-5.2.4.37\WEB-INF\lucee-web\preside\system\views\admin\assetmanager\index.cfm
LINE: 10: prc.pageIcon = "picture-o";
11: prc.pageTitle = translateResource( "cms:assetManager" );
12: prc.pageSubtitle = folderTitle == "$root" ? "#translateResource( "cms:assetmanager.root.folder" )# (#prc.folderTree[1].asset_count#)" : folderTitle;
13: //prc.pageSubtitle = folderTitle == "$root" ? "#translateResource( "cms:assetmanager.root.folder" )# (#assetCount#)" : folderTitle;
14:

Environment

None

Activity

Show:
Pat Moody
November 30, 2017, 11:59 PM
Edited

<cfscript>
folder = rc.folder ?: "";
folderTitle = prc.folder.label ?: translateResource( "cms:assetmanager.root.folder" );
isSystemFolder = IsTrue( prc.folder.is_system_folder ?: "" );
folderTree = prc.folderTree ?: [];
assetCount = arrayLen(prc.folderTree) ? prc.folderTree[1].asset_count : 0;
trashCount = Val( prc.trashCount ?: "" );
isTrashFolder = folder == "trash";

prc.pageIcon = "picture-o";
prc.pageTitle = translateResource( "cms:assetManager" );
//prc.pageSubtitle = folderTitle == "$root" ? "#translateResource( "cms:assetmanager.root.folder" )# (#prc.folderTree[1].asset_count#)" : folderTitle;
prc.pageSubtitle = folderTitle == "$root" ? "#translateResource( "cms:assetmanager.root.folder" )# (#assetCount#)" : folderTitle;

</cfscript>

Pat Moody
December 1, 2017, 12:02 AM

DB is MSSQL 2008

Pat Moody
December 7, 2017, 11:31 PM

Added log file that my be the cause of some of my problems.

Pat Moody
December 12, 2017, 4:19 AM

AssetManagerService:
I suspect that storage_location.name needs to be removed from the groupBy clause.

Dominic Watson
December 14, 2017, 1:35 PM

Thanks for this . Investigation taken on board and a fix made. Will be in 10.8.60 + the next 10.9 snapshot, will let you know when snapshot released.

Fixed

Assignee

Unassigned

Reporter

Pat Moody

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure