Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Page template category does not contain a txp:article tag
Can someone explain what could be causing this error message: Tag error: -> Textpattern Notice: Page template category does not contain a txp:article tag
I am getting it when I visit this link: http://www.site.com/category/sitestuff
I am using the rss_unlimited_categories plug in and I have created a ‘category’ section. If I am thinking right, the category section correlates with the /category URI and should match in my category section. Makes no sense to me, this error.
I’ve looked at the 4.06 source and backtracked from error message into code. Publish.php has this:
// make sure the page has an article tag if necessary
if (!$has_article_tag and $production_status != 'live' and (!empty($pretext['id']) or !empty($pretext['c']) or !empty($pretext['q']) or !empty($pretext['pg'])))
trigger_error(gTxt('missing_article_tag', array('{page}' => $pretext['page'])));
Something that catches my is the phrase “IF NECESSARY” in the comment. Well, if it is not necessary then why is this error being triggered?
If I turn the production status to “LIVE” the error goes away (I was running in Testing mode).
Last edited by kkobashi (2008-08-08 10:59:31)
Kerry Kobashi
Kobashi Computing
Offline
#2 2008-08-08 11:18:12
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Page template category does not contain a txp:article tag
It’s just a notice, but as you already realized it is not necessary to have an article tag on the page. The notice is only displayed in testing mode, so for a live site there is no problem :) I think the reason the notice is displayed is because ‘most of the time’ the page indeed does need an article tag, and there is no way for TXP to detect the way a page is actually being used.
Offline
Re: Page template category does not contain a txp:article tag
Thanks Els… yeah I ended up chasing this red herring all last night.
Kerry Kobashi
Kobashi Computing
Offline