Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-01-20 17:52:16
- monkeynotes
- Member
- From: UK
- Registered: 2005-04-13
- Posts: 41
Needs help -- txp:article_custom tag error
I am getting some errors from the <txp:article /> and <txp:article_custom /> tags when trying to use it with the customfieldname=“value” condition. Whilst the tags seem do their job and filter out articles it spits out the following errors at the top of the page. Infrequently the the tags don’t work at all and articles get dropped. I have also included a tag trace, I hope this is not too verbose for such a problem, I am somewhat of a newbie.
===========================
tag_error <txp:article_custom limit=“1” articleposition=“lead” form=“lead-article” /> -> Textpattern Notice: Unknown tag attribute: articleposition on line 582
tag_error <txp:article_custom limit=“1” articleposition=“col1” form=“column-article” /> -> Textpattern Notice: Unknown tag attribute: articleposition on line 582
tag_error <txp:article_custom limit=“1” articleposition=“col2” form=“column-article” /> -> Textpattern Notice: Unknown tag attribute: articleposition on line 582
===========================
<!-- txp tag trace:
[SQL (0.008459): select name from le_txp_lang as txp_lang where lang='en-us' limit 1]
[SQL (-1.680226): select name, data from le_txp_lang as txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (-1.671958): select name, code, version from le_txp_plugin as txp_plugin where status = 1]
[SQL (-1.692832): select title from le_txp_section as txp_section where name='']
[SQL (0.003820): select * from le_txp_section as txp_section where name = 'default' limit 1]
[SQL (1.729993): select host from le_txp_log as txp_log where ip='62.210.214.24' limit 1]
[SQL (0.008136): insert into le_txp_log set `time`=now(),page='/',ip='62.210.214.24',host='62.210.214.24',refer='',status='200',method='GET']
[SQL (0.010461): select user_html from le_txp_page as txp_page where name='default']
[Page: default]
<txp:output_form form="header" />
[SQL (0.015066): select Form from le_txp_form as txp_form where name='header']
[Form: header]
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:page_title separator=" « " />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:site_url/>
<txp:anc_hide>
</txp:anc_hide>
<txp:link_to_home>
</txp:link_to_home>
<txp:section link="1" title="1" name="archive" />
[SQL (0.014379): select title from le_txp_section as txp_section where name='archive']
<txp:section link="1" title="1" name="contribute" />
[SQL (0.006925): select title from le_txp_section as txp_section where name='contribute']
<txp:section link="1" title="1" name="contact" />
[SQL (0.004966): select title from le_txp_section as txp_section where name='contact']
<txp:link_to_home>
<txp:site_url/>
</txp:link_to_home>
<txp:article_custom limit="1" articleposition="lead" form="lead-article" />
[SQL (0.006584): select *, unix_timestamp(Posted) as uPosted from le_textpattern as textpattern where 1 and Status = 4 and Posted <= now() and custom_1 like 'lead' order by Posted desc limit 0, 1]
[SQL (0.011362): select Form from le_txp_form as txp_form where name='lead-article']
[Form: lead-article]
[article 8]
<txp:asy_wondertag>
<txp:custom_field name="leadthumb" />
<txp:article_id/>
<txp:upm_image image_id="13" url="8"/>
[SQL (0.040788): select * from le_txp_image as txp_image where id = '13' limit 0, 1]
[SQL (0.008806): select *,ID as thisid, unix_timestamp(Posted) as posted from le_textpattern as textpattern where ID=8]
</txp:asy_wondertag>
<txp:article_id/>
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:excerpt/>
<txp:author/>
[SQL (0.015234): select RealName from le_txp_users where `name` = 'stephencarr' limit 1]
<txp:article_custom limit="1" articleposition="col1" form="column-article" />
[SQL (0.013190): select *, unix_timestamp(Posted) as uPosted from le_textpattern as textpattern where 1 and Status = 4 and Posted <= now() and custom_1 like 'col1' order by Posted desc limit 0, 1]
[SQL (0.007368): select Form from le_txp_form as txp_form where name='column-article']
[Form: column-article]
[article 9]
<txp:hak_article_thumb link="1" limit="1" linktype="page" linktitle="txp:caption"/>
[SQL (0.006359): select * from le_txp_image as txp_image where id='11' limit 1]
[SQL (0.005367): select * from le_txp_image as txp_image where id = 11 limit 1]
[SQL (0.005556): select * from le_txp_image as txp_image where id = 11 limit 1]
<txp:article_id/>
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:excerpt/>
<txp:author/>
<txp:article_custom limit="1" articleposition="col2" form="column-article" />
[SQL (0.010556): select *, unix_timestamp(Posted) as uPosted from le_textpattern as textpattern where 1 and Status = 4 and Posted <= now() and custom_1 like 'col2' order by Posted desc limit 0, 1]
[Form: column-article]
<txp:output_form form="footer" />
[SQL (0.007520): select Form from le_txp_form as txp_form where name='footer']
[Form: footer]
[ ~~~ secondpass ~~~ ]
-->
Offline
Re: Needs help -- txp:article_custom tag error
Articleposition is not a valid attribute of <txp: article_custom>. Check the list of valid attributes.
…Prrrrrrrr…
Offline
#3 2007-01-20 19:42:00
- monkeynotes
- Member
- From: UK
- Registered: 2005-04-13
- Posts: 41
Re: Needs help -- txp:article_custom tag error
Ah, but I am using the attribute customfieldname=“value” which is described:
“Restrict to articles with specified value for specified custom field name. Replace “customfieldname” with the name of the custom field.”
And articleposition is my custom field name and I am looking for the value "lead"
Offline
#4 2007-01-20 21:13:24
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Needs help -- txp:article_custom tag error
This was a bug that has since been fixed. It doesn’t prevent anything from working, just displays a spurious error. The error messages will disappear with your production status set to Live.
Alex
Offline
#5 2007-01-20 21:16:04
- monkeynotes
- Member
- From: UK
- Registered: 2005-04-13
- Posts: 41
Re: Needs help -- txp:article_custom tag error
Excellent, thank you for your help.
Offline