A post was split to a new topic: How can I diagnose the «Undefined variable: category» failure in my own code?