Hello xWikiers,
I’ve just registered to the mailing list and I’m pleased to introduce you the site
http://apice.unibo.it,
developed by the APICe Research Group, which belong to The Department of Information
Engineering and Computer Science (DISI)
of University of bologna, Italy.
The site is up since 2007, starting from xwiki 1.1.
Since then it has been migrated step by step and is now powered by xwiki 2.1.2.
It’s my aim to migrate to latest version, but I’m stuck in the middle of the process,
because of a problem during migration to 2.2.6 with the rendering of the comments,
attachments, history and Information
Here's what happens:
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/bug226.jpg
As can be seen, I use a cloned test site to simulate every upgrade task;
I’ve injected some debug code in the docextra.vm template (as in attachmentsinline.vm)
To solve the bug, I’m focusing on docextra.vm template: the $doc and the $tdoc variables
are “undefined”
when the *inline.vm template are called inside the javascrit,
with document.observe or Event.observe that run
XWiki.displayDocExtra("${extraAnchor}", "${extraTemplate}", false);
for instance ${extraAnchor} = “attachments”, ${extraTemplate} = “attachmentsinline.vm”
From the log it’s clear that this is the problem ($tdoc variable is “undefined”) because I
find in the log:
https://test.apice.unibo.it/xwiki/bin/view/Publications/undefined?xpage=xpa…
instead the correct url should be, for example:
https://test.apice.unibo.it/xwiki/bin/view/Publications/BioSac2012?xpage=xp…
that actually works!
I do not can understand why The $doc and the $tdoc variable is “undefined” at runtime…
Any suggestion?
Thank you very much
Nazzareno Pompei
PS: I’m experiencing a problem with import page too, is it entangled?
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/importBug.png
--------------------------------------------------------------------------------------------+
Ing. Nazzareno Pompei
DISI - Dipartimento di Informatica: Scienze ed Ingegneria
e-mail :nazzareno.pompei@unibo.it
Tel. : +39 0547339205 Fax. : +39 0547339208
Il presente messaggio ed i suoi allegati devono intendersi
di tipo confidenziale ad uso esclusivo dei suoi destinatari.
Il mittente declina ogni responsabilità in caso di intercettazione o modifica.
In caso di ricezione per errore del messaggio, si prega di cancellarlo,
di distruggerne ogni copia e di darne opportuno avviso al mittente.
--------------------------------------------------------------------------------------------+