That's because the author of that page is not an admin. More detailed, the page must be saved using a global account (like xwiki:XWiki.Admin) which has programming rights enabled.
Sergiu Vitantonio Messa wrote: > Hello everyone, > > I've activated the statistics on my virtual xwikis, but when I access > the page XWiki/Stats I see the code, but not statistics, as this: > > <% period = request.get("period") Calendar cal = Calendar.getInstance(); > cal.setTime(new Date()); if (period==null) { period = > cal.get(Calendar.YEAR) * 100 + (cal.get(Calendar.MONTH)+1) } > > jour = cal.get(Calendar.YEAR) * 10000 + (cal.get(Calendar.MONTH)+1) * > 100 + (cal.get(Calendar.DAY_OF_MONTH)+1) > > type = request.get("type") if (type==null) type = "view" > > %> > > In the xwiki.cfg, this is the section related to statistics: > > xwiki.stats=1 > xwiki.stats.default=1 > xwiki.stats.class=com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl > > Any help? > Thanks! > > Vito > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users