Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<txp:s /> causes unknown_tag on error page
I’ve been trying to get to the bottom of an error I’ve been getting on 404 pages:
“Warning: unknown_tag in /path/to/textpattern/publish.php on line 911”
This only occured on pages 2 levels down, eg /somethings/wrong/ but not on just /wrong/.
I’ve narrowed it down to using <txp:s />
in the template, which works fine on other pages. This is a valid way of outputting the section name isn’t it?
Cheers,
Jon VC#9
Offline
Re: <txp:s /> causes unknown_tag on error page
Have you tried <txp:section />
?
Offline
Re: <txp:s /> causes unknown_tag on error page
No, I hadn’t realised that could be used too. Thanks!
Cheers,
Jon VC#9
Offline
#4 2006-02-19 22:21:44
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: <txp:s /> causes unknown_tag on error page
This is a valid way of outputting the section name isn’t it?
We’ll call this a gotcha. Short tags like <txp:s />
and <txp:c />
are shortcuts to Textpattern’s internal variables, not “real” tags. In cases where those variables aren’t set at all, you’ll see an “unknown tag” error. Those cases should be rare. Either way, you’re better off using the documented tags.
Alex
Offline