Jump to content

Topic on Project:Support desk

Protecting Template page gives Lua error: expandTemplate: template "pp-template" does not exist.

5
IlseMul (talkcontribs)

I wanted to protect the Template:Shortcut. When I had set the protection, the page returned with this error:

Lua error: expandTemplate: template "pp-template" does not exist.

What is this about? Does this mean I need to use the LuaSandbox instead LuaStandAlone?

Also... what has this to do with Lua?

Thanks for the help!

This post was hidden by MacFan4000 (history)
Ciencia Al Poder (talkcontribs)

The error seems to indicate you're using expandTemplate() somewhere to load {{pp-template}}, but {{pp-template}} doesn't exist on your wiki.

IlseMul (talkcontribs)

Okay.... Well, it's the template I downloaded from here. I thought that with export & import everything needed for the use of the page was exported. I guess I was wrong there. I'll have to figure out where it is used. The Template:Shortcut doesn't give any redlinked underlying templates, but maybe there's something else....

Was I wrong with the assumption that really everything is exported?

Thanks again for the help!

Ciencia Al Poder (talkcontribs)

Apparently Special:Export has some limitations when other templates are requested dynamically inside Lua modules. Probably hard to resolve, though.