Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Permalink leads to blank article!
I’ve never had this problem before with Textpattern.
It lists the blog posts fine, but clicking the permalinked title leads to a page without the article being output.
I’ve spent many hours now, trying to figure out what can be wrong, but I am now totally out of ideas.
Anyone?
Offline
Offline
#3 2008-10-18 20:13:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Permalink leads to blank article!
Did your tag trace tell you anything?
Offline
Re: Permalink leads to blank article!
Well, to check if it was me having done some bad stuff with either the page or the article forms, I restored those to the factory defaults that are on a new txp instal., ie. this:
http://www.integrateddesign.dk/txp/blog/oops-we-did-it-again
http://www.integrateddesign.dk/txp/blog/
I have debugging on, so the page source should reveal some stuff… I can’t find any clue in it though…
Last edited by raveoli (2008-10-18 20:23:45)
Offline
#5 2008-10-18 21:49:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Permalink leads to blank article!
<txp:if_category>
[<txp:if_category>: false]
<txp:if_search>
[<txp:if_search>: false]
</txp:if_search>
<txp:article limit="5" />
</txp:if_category>
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:site_url/>
<txp:link_to_prev>
[SQL (0.003657): select ID as thisid, Section as section, Title as title, url_title, unix_timestamp(Posted) as posted from textpattern where ID = 80]
<txp:prev_title/>
</txp:link_to_prev>
<txp:link_to_next>
[SQL (0.000464): select ID as thisid, Section as section, Title as title, url_title, unix_timestamp(Posted) as posted from textpattern where ID = 86]
<txp:next_title/>
</txp:link_to_next>
</txp:if_individual_article>
There doesn’t seem to be an article tag for if_individual_article…
Offline
Re: Permalink leads to blank article!
Els is correct, you are missing the article tag in the if_individual_article conditional. Check your page template…
Offline
Re: Permalink leads to blank article!
Nope. It is there. Textpattern just somehow filters it out. Must be either a plugin (tru_tags or mta_author) that has broken something. My guess is mta_author, but what do I know. I’m on a tight deadline. Else, it can be the WordPress import script that has broken something upon import. I had to twist that script a bit in order to make it import…
Thanks for your help anyways. I have to go back to WordPress and finish the project there. Spend 10 hours yesterday on this problem.
(been using Textpattern since 2004 and never had this occur before)
Offline
Re: Permalink leads to blank article!
Why not just remove tru_tags and mta_author and debug from there? Could you post your page code?
Offline
#9 2008-10-19 22:00:14
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Permalink leads to blank article!
raveoli wrote:
Nope. It is there. Textpattern just somehow filters it out.
Don’t know if it helps, but I had a similar issue recently. Looking at the tag trace it just stopped somewhere half way the code. In the end it turned out to be one </txp:if_section>
closing tag too many… So maybe you should look for unclosed or double closed tags.
Offline
Re: Permalink leads to blank article!
If you post the code we could take a look for you…
Offline
#11 2008-10-20 15:34:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Permalink leads to blank article!
raveoli wrote:
I have to go back to WordPress and finish the project there.
Don’t give up! If you post the code we can help you find it.
Offline
Re: Permalink leads to blank article!
It is very kind of you (really) and normally I would be willing to bug hunt, but for this particular job I have a tight deadline, and WordPress is working out well;-)
PS: As I wrote, I tried using the page and forms from a stock TXP install, and the problem was the same, so I don’t think it was a mistake in the page or forms… I’ve made quite a few sites in TXP during the last 4 years or so… Would not forget to include the dear article tag;-)
Last edited by raveoli (2008-10-21 15:15:26)
Offline
Pages: 1