Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-02-10 23:06:21
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
My sticky article disappeared after TXP upgrade?
After I upgraded to Textpattern 4.0.4 on a site I’ve worked on, the content of my sticky news article doesn’t show. It’s nicely on top of the list, with excerpt etc., but when you click on the link — the article seems empty (though it isn’t).
This error didn’t occur in 4.0.3.
Check out the site and this is the sticky article
Weird, huh?
Offline
#2 2007-02-11 18:01:49
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
Does somebody have any idea, what this is – or could be – about?
Please help if you can. :-/
Offline
#3 2007-02-11 20:35:46
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#4 2007-02-12 00:41:53
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
Thanks zem, but I already tried the steps recommended in the FAQ.
The really weird thing is, this problem exclusively occurs with the sticky article(s), though it is displayed with the same template as regular, published articles. No separate forms used either…
Summarising:
- Sticky article excerpt and header is displayed fine in my articles list (on top of the other articles),
- Sticky article’s content is excluded, when the full article should be shown,
- All other articles are fine, even though they all share the same template,
- No error messages,
- This problem occured just after i upgraded from 4.0.3 to 4.0.4 — no other changes made and no errors prior to upgrade.
Offline
#5 2007-02-12 13:37:51
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: My sticky article disappeared after TXP upgrade?
Do you use ‘override form’ for the sticky article? If so, check in advanced preferences if ‘Allow form override?’ is set to ‘yes’.
Offline
#6 2007-02-12 14:32:58
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
I don’t use the override function. Everything is the same as for those articles that still work without trouble.
By the way, here is the code I use to display the list of articles on my default page, and the code for displaying the individual news article:
Default:
<txp:article_custom form="default" listform="newslist"
section="news" status="sticky" limit=1 />
<txp:article_custom form="default" limit="3" section="news"
sortby="Posted" sortdir="desc" status="live" listform="news" />
Subpage:
<txp:article form="default" listform="newslist" limit="15"
offset="3" allowoverride="1" />
<txp:if_individual_article>
<p class="related_links">
<txp:link_to_prev>»<txp:prev_title />«</txp:link_to_prev>
<txp:link_to_next>»<txp:next_title />«</txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p class="indentlink">
<txp:older>« Se ældre nyheder</txp:older>
<txp:newer> » Se nyere nyheder</txp:newer></p>
</txp:if_article_list>
The subpage hasn’t been changed for months, except for the allowoverride="1" added just for tryouts, after els’ suggestion. I’m not able to find any errors in the above…
Last edited by dingoboy (2007-02-12 14:40:30)
Offline
Re: My sticky article disappeared after TXP upgrade?
<txp:article form="default" listform="newslist" limit="15"
offset="3" allowoverride="1" />
I think there have been some slight changes between 4.0.3 and 4.0.4 and the way it works with the sticky and live articles. I remember a thread where zem and ¿wet? were talking about this.
Try this:
<txp:article status="sticky" />
<txp:article form="default" listform="newslist" limit="15"
offset="3" allowoverride="1" />
Look at this thread for more info.
Last edited by maniqui (2007-02-14 00:03:58)
Offline
#8 2007-02-12 22:20:07
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: My sticky article disappeared after TXP upgrade?
I think it is because the attribute ‘listform’ is deprecated for article_custom (because this is always a list). Use form="newslist" in the article_custom tag for your sticky article.
Offline
#9 2007-02-13 23:59:29
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
Maniqui: Sorry, but it doesn’t do the trick.
Els: You are absolutely right! I changed it. However this doesn’t fix the problem either.
I’m thinking that since everything looks just the way it should on the default page (a list of articles, sticky on top), the error should be in the subpage, logically. But as stated before, I am perfectly sure that I have not changed anything in this page for months, before this problem occured calling for a solution.
Any suggestions on how to fail safe the subpage, in which the articles are shown in their full length (or should be, at least)?
Since this all happened as I upgraded from 4.0.3, I’ve started to wonder if I should just try to switch back, but I’d really like to avoid that too…
Offline
#10 2007-02-14 00:08:24
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
I shouldn’t forget to metion, that while everything seems fine on the site now, it’s only because I changed the problematic article’s status to published in stead of sticky (it happens to be the latest contribution so it’s still shown on top).
Offline
Re: My sticky article disappeared after TXP upgrade?
Hi.
Take a look at this threads: 1, 2
There may be useful information.
Also, I suggest to disable plug-ins one by one just to see if this makes any difference.
Also, try simplifying things, or even, create a simple escenario (another section, a dummy sticky article) to see if you can find out anything else.
Offline
#12 2007-02-14 01:42:39
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: My sticky article disappeared after TXP upgrade?
The tag trace should tell you everything you need to know. As recommended in the FAQ.
Alex
Offline
#13 2007-02-14 09:40:37
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
I can’t find anything helpful in the tag trace. I’ve included two excerpts from it here.
1) Article that works
bg. <txp:article form=“default” listform=“newslist” limit=“15” offset=“3” allowoverride=“1” />
[SQL (0,011349): select *, unix_timestamp(Posted) as uPosted from db_textpattern as textpattern where ID = 247 and Status = 4 limit 1]
[artikel 247]
[SQL (0,007802): select Form from db_txp_form as txp_form where name=‘default’]
[Form: default]
<txp:title/>
<txp:posted/>
<txp:author/>
[SQL (0,006829): select RealName from db_txp_users where `name` = ‘user’ limit 1]
<txp:body/>
<txp:comments_invite wraptag=“p” />
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:link_to_prev>
[SQL (0,022204): select *,ID as thisid, unix_timestamp(Posted) as posted from db_textpattern as textpattern where ID=245]
<txp:prev_title/>
</txp:link_to_prev>
<txp:link_to_next>
</txp:link_to_next>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: false]
</txp:if_article_list>
As you can see, it displays the article’s body etc. as I want it to.
2) Sticky article that isn’t displayed correctly
bg. <txp:article form=“default” listform=“newslist” limit=“15” offset=“3” allowoverride=“1” />
[SQL (0,005601): select *, unix_timestamp(Posted) as uPosted from db_textpattern as textpattern where ID = 247 and Status = 4 limit 1]
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:link_to_prev>
</txp:link_to_prev>
<txp:link_to_next>
</txp:link_to_next>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: false]
</txp:if_article_list>
It fails to display article body etc., though the it is recognised as an individual article and not a list.
These two examples are made out of the same article, first with status published and since with status sticky. They use the same forms, templates, section, categories etc. There are no conditional tags in the subpage, besides if_article_list and if_individual_article.
I’m sorry to keep bothering you with this, but it’s becoming a huge problem for me, and I still have no clue what’s wrong. I hope someone can assist me.
Offline
#14 2007-02-14 13:11:14
- dingoboy
- Member
- Registered: 2006-09-07
- Posts: 48
Re: My sticky article disappeared after TXP upgrade?
Problem solved!
I did not find any errors (still), but I thought of a workaround.
<txp:if_individual_article>
<txp:article status="sticky" form="default" />
</txp:if_individual_article>
Not perfect and not totally without problems of its own, but it works.
I claim that this is due to a bug – or an undocumented feature – in the way <txp:article> handles articles with status ‘sticky’ in Textpattern 4.0.4.
Thanks for your assistance, everybody! :-)
Offline
Re: My sticky article disappeared after TXP upgrade?
If you like, go back to your original subpage and try this:
<txp:if_article_list>
<txp:article form="default" listform="newslist" limit="15"
offset="3" allowoverride="1" />
<txp:else />
<txp:article status="sticky" form="default" /> <!-- this tag should display the sticky article -->
<txp:article form="default" />
</txp:if_individual_article>
Also, I’m pretty sure that just this (without any conditionals should work)
<txp:article status="sticky" form="default" /> <!-- this tag should display the sticky article -->
<txp:article form="default" />
(Of course, the second txp:article doesn’t have all the attribute you need.)
Finally, if that works, this also should work.
<txp:article status="sticky" form="default" /> <!-- this tag should display the sticky article -->
<txp:article form="default" listform="newslist" limit="15"
offset="3" allowoverride="1" />
If that last one doesn’t work, there may be a bug as you said, with one of the attributes in form="default" listform="newslist" limit="15"
offset="3" allowoverride="1"
Offline