Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-31 14:15:33

lizaveta
New Member
Registered: 2009-03-30
Posts: 9

Single posts appearing blank

I just don’t understand. Earlier today I got everything to be displayed fine at http://www.k9cyclers.com.
Meaning you could click on any individual post title from the ‘Home’ or ‘Getting Started’ tabs and be taken to the individual post.

I set it up so that the ‘Getting Started’ page is a static page/section with an article which has an overview and links to other articles within that category. Everything was working fine.

I then added another article called ‘Other Tools to Use’. The article appears fine on the home page, but clicking on the title takes me to a blank page with the site theme visible but no text in the content area. The link to the article in the form of the title on the ‘Getting Started’ page was added automatically fine just as I set it up.

But when I clicked on the title it would just be a blank page! When I clicked on other articles they appeared fine at first, but are now going blank as well. I don’ t understand why it’s happening – they were working fine until I added this last article and I’ve checked it again and again and can’t find anything unusual in there at all.

Offline

#2 2009-03-31 14:31:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Single posts appearing blank

Hi lizaveta

A tag trace might help us finding the culprit for you.

Last edited by colak (2009-03-31 14:32:16)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-03-31 14:36:21

lizaveta
New Member
Registered: 2009-03-30
Posts: 9

Re: Single posts appearing blank

Ah ok, here it is:

<!— txp tag trace:
[SQL (0.000375032424927): select name, data from txp_txp_lang as txp_lang where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000340938568115): select name, code, version from txp_txp_plugin as txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.000252962112427): select page, css from txp_txp_section as txp_section where name = ‘default’ limit 1]
[SQL (0.0015230178833): select host from txp_txp_log as txp_log where ip=‘114.198.24.170’ limit 1]
[SQL (0.000488996505737): insert into txp_txp_log set `time`=now(),page=’/’,ip=‘114.198.24.170’,host=‘114-198-24-170.VIC.netspace.net.au’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000252962112427): select user_html from txp_txp_page as txp_page where name=‘default’]
[Page: default]
<txp:output_form form=“head”/> [SQL (0.000253915786743): select Form from txp_txp_form as txp_form where name=‘head’] [Form: head] <txp:page_title /> <txp:css />
<txp:output_form form=“header”/> [SQL (0.000248193740845): select Form from txp_txp_form as txp_form where name=‘header’] [Form: header] <txp:ako_nav name=“Home,Getting Started,Keeda,Contact,Archive” url=”/,/index.php?s=basics,/index.php?s=blog,/index.php?s=contact,/index.php?s=archive” headlvl=“1” headon=“0” divon=“0” classtag=“1”/>
<txp:if_search> [<txp:if_search>: false] <txp:article listform=“excerpt” /> [SQL (0.000251054763794): select name from txp_txp_section as txp_section where on_frontpage != ‘1’] [SQL (0.000503778457642): select count(*) from txp_textpattern as textpattern where 1=1 and Status = 4 and Posted <= now() and Section != ‘archive’ and Section != ‘contact’ and Section != ‘blog’] [SQL (0.000580072402954): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from txp_textpattern as textpattern where 1=1 and Status = 4 and Posted <= now() and Section != ‘archive’ and Section != ‘contact’ and Section != ‘blog’ order by Posted desc limit 0, 10] [article 5] [SQL (0.0002601146698): select Form from txp_txp_form as txp_form where name=‘excerpt’] [Form: excerpt] <txp:permlink> <txp:title /> </txp:permlink> <txp:if_excerpt> [<txp:if_excerpt>: false] <txp:body /> <txp:comments_invite /> <txp:posted /> <txp:category1 link=“y” /> <txp:category2 link=“y” /> </txp:if_excerpt> [article 4] [Form: excerpt] <txp:permlink> <txp:title /> </txp:permlink> <txp:if_excerpt> [<txp:if_excerpt>: false] <txp:body /> <txp:comments_invite /> <txp:posted /> <txp:category1 link=“y” /> <txp:category2 link=“y” /> </txp:if_excerpt> [article 3] [Form: excerpt] <txp:permlink> <txp:title /> </txp:permlink> <txp:if_excerpt> [<txp:if_excerpt>: false] <txp:body /> <txp:comments_invite /> <txp:posted /> <txp:category1 link=“y” /> <txp:category2 link=“y” /> </txp:if_excerpt>
</txp:if_search>
<txp:if_article_list> [<txp:if_article_list>: true] <txp:older> </txp:older> <txp:newer> </txp:newer>
</txp:if_article_list>
<txp:output_form form=“sidebar” /> [SQL (0.000249862670898): select Form from txp_txp_form as txp_form where name=‘sidebar’] [Form: sidebar] <txp:category_list wraptag=“ul” break=“li” class=”“ /> [SQL (0.000248908996582): select name, title from txp_txp_category as txp_category where type = ‘article’ and name not in(‘default’,‘root’) order by name ASC] <txp:recent_articles limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> [SQL (0.000530004501343): select *, id as thisid, unix_timestamp(Posted) as posted from txp_textpattern as textpattern where Status = 4 and Posted <= now() order by Posted desc limit 0,10] <txp:recent_comments limit=“10” break=“li” wraptag=“ul” class=”“ /> [SQL (0.000258922576904): select d.name, d.email, d.web, d.message, d.discussid, unix_timestamp(d.Posted) as time, t.ID as thisid, unix_timestamp(t.Posted) as posted, t.Title as title, t.Section as section, t.url_title from txp_txp_discuss as d inner join txp_textpattern as t on d.parentid = t.ID where t.Status >= 4 and d.visible = 1 order by d.posted desc limit 0,10] <txp:linklist wraptag=“ul” break=“li” class=”“ /> [SQL (0.000260829925537): select *, unix_timestamp(date) as uDate from txp_txp_link as txp_link where 1=1 order by linksort asc ] [SQL (0.000262975692749): select Form from txp_txp_form as txp_form where name=‘plainlinks’] [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: limit on line 649 Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: sortby on line 649 Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: sortdir on line 649 [SQL (0.000259876251221): select name, title from txp_txp_section as txp_section where name != ‘default’ order by name ASC]
[ ~~~ secondpass ~~~ ] —>

Offline

#4 2009-03-31 15:12:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Single posts appearing blank

lizaveta wrote:

Tag error:  <txp:section_list limit="10" break="li" wraptag="ul" sortby="Posted" sortdir="desc" class="" /> -> Textpattern Notice: Unknown tag attribute: limit  on line 649
Tag error:  <txp:section_list limit="10" break="li" wraptag="ul" sortby="Posted" sortdir="desc" class="" /> -> Textpattern Notice: Unknown tag attribute: sortby  on line 649
Tag error:  <txp:section_list limit="10" break="li" wraptag="ul" sortby="Posted" sortdir="desc" class="" /> -> Textpattern Notice: Unknown tag attribute: sortdir  on line 649
[SQL (0.000259876251221): select name, title from txp_txp_section as txp_section where name != 'default'  order by name ASC]
[ ~~~ secondpass ~~~ ]
 -->

Hi lizaveta, is this a tag trace of the problem page or the front one? In any case you can see the errors at the end of it:)

where you have sortby and sortdir have been replaced by “sort” as of 4.0.4 i think but that was for the txp:article / tag and not for the txp:section_list whose sort attributes can be found here

In any case this is not the reason the article does not appear as the section_list error should not interfere with the article tag.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2009-03-31 15:14:00

lizaveta
New Member
Registered: 2009-03-30
Posts: 9

Re: Single posts appearing blank

Ah I’m clueless >.< Sorry, here is the tag trace for one of the post pages. The content is not appearing on this post page just like it isn’t on any other individual post pages:

<!— txp tag trace:
[SQL (0.000385999679565): select name, data from txp_txp_lang as txp_lang where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000340938568115): select name, code, version from txp_txp_plugin as txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.000273942947388): select ID,Section from txp_textpattern as textpattern where ID = 5 and Status >= 4 limit 1]
[SQL (0.000241041183472): select page, css from txp_txp_section as txp_section where name = ‘basics’ limit 1]
[SQL (0.000280141830444): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from txp_textpattern as textpattern where ID=5 and Status in (4,5)]
[article 5]
[SQL (0.000666856765747): select ID, Title, url_title, unix_timestamp(Posted) as uposted from txp_textpattern where Posted > ’2009-03-31 06:36:00’ and Section = ‘basics’ and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.000417947769165): select ID, Title, url_title, unix_timestamp(Posted) as uposted from txp_textpattern where Posted < ’2009-03-31 06:36:00’ and Section = ‘basics’ and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.00046706199646): select host from txp_txp_log as txp_log where ip=‘114.198.24.170’ limit 1]
[SQL (0.000454902648926): insert into txp_txp_log set `time`=now(),page=’/index.php?id=5’,ip=‘114.198.24.170’,host=‘114-198-24-170.VIC.netspace.net.au’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000243186950684): select user_html from txp_txp_page as txp_page where name=‘static_page’]
[Page: static_page]
<txp:output_form form=“head” /> [SQL (0.000250101089478): select Form from txp_txp_form as txp_form where name=‘head’] [Form: head] <txp:page_title /> <txp:css />
<txp:output_form form=“header” /> [SQL (0.000241994857788): select Form from txp_txp_form as txp_form where name=‘header’] [Form: header] <txp:ako_nav name=“Home,Getting Started,Keeda,Contact,Archive” url=”/,/index.php?s=basics,/index.php?s=blog,/index.php?s=contact,/index.php?s=archive” headlvl=“1” headon=“0” divon=“0” classtag=“1”/>
<txp:article status=“sticky” limit=1 /> Tag error: <txp:article status=“sticky” limit=1 /> -> Textpattern Warning: Attribute values must be quoted on line 916
<txp:output_form form=“sidebar” /> [SQL (0.00025200843811): select Form from txp_txp_form as txp_form where name=‘sidebar’] [Form: sidebar] <txp:category_list wraptag=“ul” break=“li” class=”“ /> [SQL (0.000244855880737): select name, title from txp_txp_category as txp_category where type = ‘article’ and name not in(‘default’,‘root’) order by name ASC] <txp:recent_articles limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> [SQL (0.000554084777832): select *, id as thisid, unix_timestamp(Posted) as posted from txp_textpattern as textpattern where Status = 4 and Posted <= now() order by Posted desc limit 0,10] <txp:recent_comments limit=“10” break=“li” wraptag=“ul” class=”“ /> [SQL (0.00025486946106): select d.name, d.email, d.web, d.message, d.discussid, unix_timestamp(d.Posted) as time, t.ID as thisid, unix_timestamp(t.Posted) as posted, t.Title as title, t.Section as section, t.url_title from txp_txp_discuss as d inner join txp_textpattern as t on d.parentid = t.ID where t.Status >= 4 and d.visible = 1 order by d.posted desc limit 0,10] <txp:linklist wraptag=“ul” break=“li” class=”“ /> [SQL (0.000254154205322): select *, unix_timestamp(date) as uDate from txp_txp_link as txp_link where 1=1 order by linksort asc ] [SQL (0.000237941741943): select Form from txp_txp_form as txp_form where name=‘plainlinks’] [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> [Form: plainlinks] <txp:linkdesctitle /> <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: limit on line 649 Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: sortby on line 649 Tag error: <txp:section_list limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ /> -> Textpattern Notice: Unknown tag attribute: sortdir on line 649 [SQL (0.000246047973633): select name, title from txp_txp_section as txp_section where name != ‘default’ order by name ASC]
[ ~~~ secondpass ~~~ ] —>

Offline

#6 2009-03-31 15:28:24

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Single posts appearing blank

<!-- Content ========================================== -->
<div id="main">
<p><!-- section page: display the sticky article -->
</p>

</div><!-- end #main -->
</div><!-- end #wrap2 -->

You have a <txp:article status="sticky" limit=1 /> on your page, which probably should be the tag for your front page, but not for the individual article pages. You can change it into something like this:

<txp:if_individual_article>
	<txp:article />
<txp:else />
	<txp:article status="sticky" limit="1" />
</txp:if_individual_article>

Also your section_list tag is not correct, like Yiannis said. Change it into

<txp:section_list break="li" wraptag="ul" />

sortby, sortdir and limit cannot be used in the section_list tag. You can sort the sections, but not by posted. You can use the sort attribute with one or more of the values mentioned here.

Last edited by els (2009-03-31 15:31:57)

Offline

#7 2009-03-31 15:33:33

lizaveta
New Member
Registered: 2009-03-30
Posts: 9

Re: Single posts appearing blank

Thanks so much, it now works perfectly :)

(And I’m sorry, I must have accidentally missed Yiannis’ post).

I’ve been writing about my Textpattern for 2 days in a row on my web design blog (techvixen.com/webdesign) and I can’t believe how helpful people are here, much better than the Wordpress support forums imo).

Offline

#8 2009-03-31 15:41:45

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Single posts appearing blank

Now that I look at other pages on the site, maybe I got it wrong. I notice that your blog and archive section aren’t displaying anything at the moment. Is it possible that you only need the sticky article for section ‘basics’? In that case change <txp:if_individual_article> in my code example to <txp:if_section name="basics">...</txp:if_section>.

Offline

#9 2009-03-31 15:48:51

lizaveta
New Member
Registered: 2009-03-30
Posts: 9

Re: Single posts appearing blank

Hm, the way it is working now seems to be the way I wanted it to work in the first place. I basically want a sticky to be shown in each section IF that section has a sticky article. So right now when I click on ‘Getting Started’ the sticky post is shown, which contains links to other posts in that section but the other posts aren’t listed in blog-style below the sticky).

The reason there’s nothing in my blog and archive sections at the moment is because there’s no content there (well, there was meant to be content in the archive section when I installed the theme but it didn’t work properly, like a lot of other things with that theme, so I will be finding another way to solve that eventually).

Last edited by lizaveta (2009-03-31 15:49:51)

Offline

Board footer

Powered by FluxBB