2017-02-18 74 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