Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-19 21:02:59

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

<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

#2 2006-02-19 21:31:20

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: <txp:s /> causes unknown_tag on error page

Have you tried <txp:section />?

Offline

#3 2006-02-19 21:39:36

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

Board footer

Powered by FluxBB