I am can not goto Dashboard of site

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

I am can not goto Dashboard of site

I am can not goto Dashboard of site is show error in share.log "19-01-01 16:05:36,606 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [ajp-apr-8009-exec-16] Exception from executeScript: 00010047 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/site/customise-pages.get.js': 00010046 TypeError: Cannot read property "properties" from null (file:/var/www/html/alfresco-6.0/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site/customise-pages.get.js#1976) org.springframework.extensions.webscripts.WebScriptException: 00010047 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/site/customise-pages.get.js': 00010046 TypeError: Cannot read property "properties" from null (file:/var/www/html/alfresco-6.0/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site/customise-pages.get.js#1976)"

anyone can help. thank you very much.

2 Replies
Highlighted
Senior Member II

Re: I am can not goto Dashboard of site

Hi,

Error shows that in customise-pages.get.js,noderef is not getting from you are fetching some property.

can you post that js file code so we can indentify error?

Thanks,

Sanjay

Thanks & Regard,
Sanjay
Member II

Re: I am can not goto Dashboard of site

Hi,

Thank you for your help

Refer is  file customise-pages.get.js is bellows.

<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">

/**
* Customise Site Pages component GET method
*/

function main()
{
// site ID and available pages
model.siteId = page.url.templateArgs.site;
model.pages = getPages(true);

// available and currently selected site theme
var currentTheme = null;
var dashboardPage = sitedata.getPage("site/" + page.url.templateArgs.site + "/dashboard");
if (dashboardPage.properties.theme != null)
{
currentTheme = dashboardPage.properties.theme;
}
model.themes = [];
model.themes.push(
{
id: "",
title: msg.get("label.applicationTheme"),
selected: (currentTheme == null || currentTheme.length == 0)
});
var themes = sitedata.getObjects("theme");
for (var i = 0, t; i < themes.length; i++)
{
t = themes[i];
model.themes.push(
{
id: t.id,
title: (t.titleId != null && msg.get(t.titleId) != t.titleId ? msg.get(t.titleId) : t.title),
selected: (t.id == currentTheme)
});
}

// Widget instantiation metadata...
var customisePages = {
id : "CustomisePages",
name : "Alfresco.CustomisePages",
options : {
siteId : model.siteId
}

};
model.widgets = [customisePages];
}

main();

Thanks,

Panisara L.