Thread:Extension talk:CategoryTree/categorytree not working in templates

I am trying to use category tree in a template and it's not working. If I use this version:

I get nothing (nothing is displayed on the page).

If I use this version:

I get an italic line that says "Category XXXX not found".

If, however, I hard code the subpage name in the template (which defeats the purpose of the template) it works fine.

Here's the template in its entirety: