Template document ... does not exist when adding to document WebHome

Hi,

I create a template provider and I edited the template page. Now, when I try to add a page to my wiki, if I select the created template I get this error

C'è stato un problema nel tentativo di elaborare la richiesta. Contattare il webmaster se questo dovesse accadere di nuovo.
Informazioni dettagliate:
Error number 11001 in 3: Template document xwiki:XWiki.AtonoProjectTemplate does not exist when adding to document WebHome
com.xpn.xwiki.XWikiException: Error number 11001 in 3: Template document xwiki:XWiki.AtonoProjectTemplate does not exist when adding to document WebHome
at com.xpn.xwiki.doc.XWikiDocument.readFromTemplate(XWikiDocument.java:3937)
at com.xpn.xwiki.doc.XWikiDocument.readFromTemplate(XWikiDocument.java:3984)
at com.xpn.xwiki.doc.XWikiDocument.readFromTemplate(XWikiDocument.java:3915)
at com.xpn.xwiki.web.EditAction.prepareEditedDocument(EditAction.java:93)
at com.xpn.xwiki.web.EditAction.render(EditAction.java:59)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:473)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)

But http://mysite/bin/view/XWiki/AtonoProjectTemplate/ is a working page … in attachment you can see the template provider settings atono

The / at the end of the URL suggests that this is a nested page so it’s reference is in fact:

XWiki.AtonoProjectTemplate.WebHome

See https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/ContentOrganization/#HTerminology . So you should edit the template provider and update the template reference accordingly. Now, the template field has a page picker so you should simply pick the template from the list of suggestions (and it will fill the right page reference).

1 Like

Worked like a charm. Thank you for your help.