"Template to Use" doesn't show all available pages

Hi there. I’m returning to XWiki use after several years away. Glad to be back… it’s obvious that a lot of work has gone into the platform.

As an administrator, I’m trying to create a template provider. When I create the provider, not all pages are listed in the dropdown box. I simply get a suggested name based on the provider name, and the pages from the Help section:

Does anyone know how to resolve this? The Administration guide indicates I should be able to choose a page I’ve created, or one that already existed.

Thanks in advance!

Welcome back :wave:

I’ve tested it and it works fine for me:

I can only think of 2 possibilities:

  • The page with reference XWiki.MyTestTemplate doesn’t exist
  • The page exists but it’s marked hidden and your user isn’t configured to display hidden pages

I’m leaning towards the second option. Could you check?

Note that I think we should probably improve this and force listing hidden pages in this picker since it’s a technical picker and it’s good that template pages are hidden.

Also note that if the template page is hidden you might hit Loading...

I don’t think that’s the cause. The first problem is that I only see pages listed from Help as possible templates to choose from. Your example shows Sandbox pages, etc. I suspect my problem is related to this filtering.

The page is definitely there and active. I’ll see about capturing a recording that demonstrates what I’m seeing.

See if you can view this. It illustrates both how my drop down is limited to Help pages, and how I am able to reproduce the exception:

Thanks so much for your assistance!

Btw, that “Server not responding” error happens each and every time I try “Save & View”. “Save” always seems to work.

The user account didn’t have the preference to show hidden pages, so you were right about that. However, the page isn’t hidden. Now, after setting it to show hidden pages, I only see the default template name and AnnotationCode.

Even if I go and edit one of the existing templates, I still only see pages from the Help section (I turned show hidden back off, so it no longer shows Annotation Code):

Ok, only displaying Help pages was a false alarm. If I erase everything out of the search and start typing, I can see others.

However, selecting any page still causes me to get:


Detailed information:
    Error number 11001 in 3: Template document xwiki:Sandbox.Test2 does not exist when adding to document WebHome
com.xpn.xwiki.XWikiException: Error number 11001 in 3: Template document xwiki:Sandbox.Test2 does not exist when adding to document WebHome
	at com.xpn.xwiki.doc.XWikiDocument.readFromTemplate(XWikiDocument.java:4506)

Well, finally a solution. If I delete the found page in the dropdown box and manually type its name with .WebHome at the end, it works.

I found this here: Template document ... does not exist when adding to document WebHome

Not sure why the dropdown would list the page in a way that would cause an uncaught exception like this, but oh well…

I appreciate your willingness to help @vmassol !