2017-02-18 65 views
0

我使用露天5.2和我使用的指令露天和谷歌图表

https://code.google.com/archive/p/statistics-and-graphs/downloads

首先安装谷歌图表我加入alfresco-global.properties

## AUDIT 
audit.enabled=true 
audit.alfresco-access.enabled=true 

    • 把提供ed AMP,'Statistics.amp',放入/ amps_share。
    • 运行/ apply_amps
    • 重启露天

我在管理控制台中统计得到&图表和当统计CLIK &图我得到错误

enter image description here

The Web Script /share/service/extras/components/console/statistics has responded with a status of 500 - Internal Error. 

500 Description: An error inside the HTTP server which prevented it from fulfilling the request. 

Message: 01180016 Failed to execute script 'classpath*:alfresco/site-webscripts/com/devcom/components/console/statistics.get.js': 01180015 ReferenceError: "response" is not defined. (file:/C:/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/com/devcom/components/console/statistics.get.js#2104) 
Server: Spring WebScripts - v6.11.0 schema 1.000 
Time: 18.02.2017. 23.30.54 

Diagnostics: Inspect Web Script (com/devcom/components/console/statistics.get) 

回答

0

我试着在我的本地露天安装它。但是这个模块已经很老了,似乎不再被维护。我不得不这样做细微的变化,以便能够看到的东西:

  • 在文件Statistics_project/config/alfresco/site-webscripts/com/devcom/components/console/statistics.get.js
    • 5号线和147:我删除了可变site
    • 6号线:在URL中,我除去参数&limit=0

然后,我能打开网页。但我有一个错误消息。我不得不改变文件Statistics_project/source/web/scripts/statistics.js:114

  • 线:在URL中,我删除了参数&limit=0

然后我就能够打开该页面,并选择一个网站,但什么也不显示:

Screenshot

,我建议你看看这个插件: https://addons.alfresco.com/addons/alfresco-audit-analysis-and-reporting-aaar