01-01-2019 05:21 AM
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.
01-03-2019 06:24 AM
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
01-03-2019 07:32 AM
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.
10-15-2020 08:11 AM
Is this existing page or custom?
if custom then what is th functionality?
Base on that we can identify.
10-15-2020 11:24 AM
Its existing Share page. When going on share/page/site/{siteId}/dashboard I get this message on share:
"A site manager has switched off all the features of this site.
Click the Settings icon and select Customize Site to add one or more site features. ".
When I click Customize site it shows me this error in log as in the original post.
Interesting thing is that if I add site and immediately after go on share/page/site/{siteId}/dashboard everything works fine, but if I restart Share going to same link will show me error.
Maybe the problem is with preset.xml?
10-15-2020 11:32 AM
Hi @galoman
Could you add your preset.xml file here so we can see if there are any customisations, etc?
Thanks,
10-15-2020 12:06 PM
Hi Eddie,
I didn't configure basically anything, i'm using out of the box instalation. But here is my presets.xml.
<?xml version='1.0' encoding='UTF-8'?>
<presets>
<!-- Well known preset used to generate the default Collaboration Site dashboard -->
<preset id="site-dashboard">
<components>
<!-- title -->
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/title/collaboration-title</url>
</component>
<!-- navigation -->
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
<!-- dashboard components -->
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/colleagues</url>
<properties>
<height>504</height>
</properties>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/docsummary</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/activityfeed</url>
</component>
</components>
<pages>
<page id="site/${siteid}/dashboard">
<title>Collaboration Site Dashboard</title>
<title-id>page.siteDashboard.title</title-id>
<description>Collaboration site's dashboard page</description>
<description-id>page.siteDashboard.description</description-id>
<template-instance>dashboard-2-columns-wide-right</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"dashboard"}, {"pageId":"documentlibrary"}]</sitePages>
<dashboardSitePage>true</dashboardSitePage>
</properties>
</page>
</pages>
</preset>
<!-- Well known preset used to generate the default User dashboard -->
<preset id="user-dashboard">
<components>
<!-- title -->
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/title/user-dashboard-title</url>
</component>
<!-- dashboard components -->
<component>
<scope>page</scope>
<region-id>full-width-dashlet</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/dashlets/dynamic-welcome</url>
<properties>
<dashboardType>user</dashboardType>
</properties>
</component>
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/dashlets/my-sites</url>
</component>
<component>
<scope>page</scope>
<region-id>component-1-2</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/dashlets/my-tasks</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/dashlets/my-activities</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>user/${userid}/dashboard</source-id>
<url>/components/dashlets/my-documents</url>
<properties>
<height>240</height>
</properties>
</component>
</components>
<pages>
<page id="user/${userid}/dashboard">
<title>User Dashboard</title>
<title-id>page.userDashboard.title</title-id>
<description>Users dashboard page</description>
<description-id>page.userDashboard.description</description-id>
<template-instance>dashboard-2-columns-wide-right</template-instance>
<authentication>user</authentication>
</page>
</pages>
</preset>
<!-- Well known preset used to generate the default RM Site dashboard -->
<preset id="rm-site-dashboard">
<components>
<!-- title -->
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/title/collaboration-title</url>
</component>
<!-- navigation -->
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
<!-- dashboard components -->
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/colleagues</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/docsummary</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/activityfeed</url>
</component>
</components>
<pages>
<page id="site/${siteid}/dashboard">
<title>Records Management Site Dashboard</title>
<title-id>page.rmSiteDashboard.title</title-id>
<description>Records Management site's dashboard page</description>
<description-id>page.rmSiteDashboard.description</description-id>
<template-instance>dashboard-2-columns-wide-right</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"documentlibrary"}, {"pageId":"rmsearch"}]</sitePages>
<pageMetadata>{"documentlibrary":{"titleId":"page.rmDocumentLibrary.title", "descriptionId":"page.rmDocumentLibrary.description", "type":"dod5015"}}</pageMetadata>
</properties>
</page>
</pages>
</preset>
<!-- Well known preset used to generate the Sharepoint protocol integration Site -->
<preset id="document-workspace">
<components>
<!-- title -->
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/title/collaboration-title</url>
</component>
<!-- navigation -->
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
<!-- dashboard components -->
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/colleagues</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/docsummary</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/activityfeed</url>
</component>
</components>
<pages>
<page id="site/${siteid}/dashboard">
<title>Document Workspace Dashboard</title>
<title-id>page.workspace.title</title-id>
<description>Document Workspace dashboard page</description>
<description-id>page.workspace.description</description-id>
<template-instance>dashboard-2-columns-wide-left</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"documentlibrary"}, {"pageId":"links"}]</sitePages>
</properties>
</page>
</pages>
</preset>
<!-- Well known preset used to generate the Sharepoint protocol integration meeting Site -->
<preset id="meeting-workspace">
<components>
<!-- title -->
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/title/collaboration-title</url>
</component>
<!-- navigation -->
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
<!-- dashboard components -->
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/colleagues</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/docsummary</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/activityfeed</url>
</component>
</components>
<pages>
<page id="site/${siteid}/dashboard">
<title>Meeting Workspace Dashboard</title>
<title-id>page.meeting_workspace.title</title-id>
<description>Meeting Workspace dashboard page</description>
<description-id>page.meeting_workspace.description</description-id>
<template-instance>dashboard-2-columns-wide-left</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"documentlibrary"}, {"pageId":"calendar"}]</sitePages>
</properties>
</page>
</pages>
</preset>Another interesthing thing is that everything works fine with older sites that I added couple weeks ago even after I restart share. But if I add new sites I can't add any users later to site if I don't do it right after creating site.
My Share version is 6.2.0.
04-08-2021 10:00 PM
Did you find a solution? I seem to have the same issue in same version of Share
08-23-2021 03:49 AM
Hello,
Please, did you find a solution for this ? I am getting the same issue in share version 7
Thank you
10-15-2020 06:06 AM
Bump. Have the same problem. Does anybody know how to fix this?
Explore our Alfresco products with the links below. Use labels to filter content by product module.