Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Sections wouldn't load after changing template
I have finally updated my blog using Textpattern’s Serene template (winner of Textplates), and had followed all the instructions given. For some reason, my “Archives” and “About” sections wouldn’t load, despite me having the sections using the corresponding form (ie: Archives would use archive_list, etc). Otherwise, everything else works fine – it’s only this problem I’m having.
Would appreciate it if you guys can shed some light to this. :)
Offline
#2 2006-06-04 17:06:38
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sections wouldn't load after changing template
Chances are it’s a page problem. Can you post a tag trace please?
Offline
Re: Sections wouldn't load after changing template
Thanks Mary! Sorry I was posting it in the wrong board. Here’s the tag trace for the Archives section (I figured I’ll post the tag trace for Archives only, since About would be having the same problem too):
<!-- txp tag trace:
[SQL (0.000079): select name from `txp_lang` where lang='en-gb' limit 1]
[SQL (0.000495): select name, data from `txp_lang` where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.001023): select name, code from `txp_plugin` where status='1']
[SQL (0.000564): select * from `txp_prefs` where name='mem_self_admin_email']
[SQL (0.000285): select * from `txp_prefs` where name='mem_self_admin_name']
[SQL (0.000317): select * from `txp_prefs` where name='mem_self_new_user_priv']
[SQL (0.000143): select name from `txp_section` where `name` like 'archives' limit 1]
[SQL (0.000064): select * from `txp_section` where name = 'archives' limit 1]
[SQL (0.000509): select host from `txp_log` where ip='219.95.31.80' limit 1]
[SQL (0.000312): insert into `txp_log` set `time`=now(),page='/archives',ip='219.95.31.80',host='219.95.31.80',refer='',status='200',method='GET']
[SQL (0.000092): SELECT `string`,`nick`,`name`,`info` AS `qry` FROM `txp_lxs_lut` WHERE (type='search_engine')]
[SQL (0.000161): SELECT `string`,`nick`,`name`,`info` AS `ver` FROM `txp_lxs_lut` WHERE (type='spider')]
[SQL (0.000088): SELECT `string`,`nick`,`name`,`info` AS `ver` FROM `txp_lxs_lut` WHERE (type='os')]
[SQL (0.000129): SELECT `string`,`nick`,`name`,`info` AS `ver` FROM `txp_lxs_lut` WHERE (type='browser')]
[SQL (0.000051): SELECT `string`,`nick`,`name`,`info` AS `ver` FROM `txp_lxs_lut` WHERE (type='spammer')]
[SQL (0.000047): SELECT `string`,`info` AS `url` FROM `txp_lxs_lut` WHERE (type='redirect')]
[SQL (0.000270): update `txp_lxs_hit` set view_time='60' where id=28961]
[SQL (0.020153): select remote_host,remote_location,remote_cc from `txp_lxs_hit` where remote_ip='219.95.31.80' limit 1]
[SQL (0.000498): insert into `txp_lxs_hit` set `viewed_page`='/archives',`viewed_section`='archives',`viewed_article_id`='',`is_own`='1',`os`='Windows',`os_nick`='windows',`os_ver`='XP',`browser`='Mozilla Firefox',`browser_nick`='firefox',`browser_ver`='XP',`http_user_agent`='Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4',`http_referrer`='http://www.saigoheiki.com/',`request_uri`='/archives',`is_duplicate`='1',`remote_name`='clem',`remote_ip`='219.95.31.80',`remote_host`='',`remote_location`='Seremban, Malaysia',`remote_cc`='MY',`referring_uri`='/',`referring_host`='www.saigoheiki.com',`time`=now()]
[SQL (0.000063): select user_html from `txp_page` where name='archive_list']
[Page: archive_list]
<txp:output_form form="head" />
[SQL (0.000059): select form from `txp_form` where `name` = 'head' limit 1]
<txp:page_title/>
<txp:css/>
<txp:output_form form="header" />
[SQL (0.000053): select form from `txp_form` where `name` = 'header' limit 1]
<txp:ako_nav name="Home,Archives,About" url="/,/archives,/about" headlvl="1" headon="0" divon="0" classtag="1" />
<txp:article_custom limit=99999 section="article" form="monthly_article" />
[SQL (0.016223): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status='4' and Posted < now() and Section = 'article' order by Posted desc limit 0, 99999]
[SQL (0.000069): select Form from `txp_form` where `name` = 'monthly_article' limit 1]
[Form: monthly_article]
<txp:output_form form="sidebar" />
[SQL (0.000063): select form from `txp_form` where `name` = 'sidebar' limit 1]
<txp:recent_articles limit="10" break="li" wraptag="ul" sortby="Posted" sortdir="desc" class="" />
[SQL (0.014386): select *, id as thisid, unix_timestamp(Posted) as posted from `textpattern` where Status = 4 and Posted <= now() order by Posted desc limit 0,10]
<txp:recent_comments limit="6" break="li" wraptag="ul" class="" />
[SQL (0.000159): select * from `txp_discuss` where visible=1 order by posted desc limit 0,6]
[SQL (0.000053): select Title, Status from `textpattern` where ID=566]
[SQL (0.000173): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=566]
[SQL (0.000053): select Title, Status from `textpattern` where ID=566]
[SQL (0.000137): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=566]
[SQL (0.000052): select Title, Status from `textpattern` where ID=566]
[SQL (0.000136): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=566]
[SQL (0.000051): select Title, Status from `textpattern` where ID=566]
[SQL (0.000137): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=566]
[SQL (0.000052): select Title, Status from `textpattern` where ID=566]
[SQL (0.000136): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=566]
[SQL (0.000052): select Title, Status from `textpattern` where ID=565]
[SQL (0.000157): select *,ID as thisid, unix_timestamp(Posted) as posted from `textpattern` where ID=565]
<txp:feed_link label="RSS Feed" section="article" flavor="rss" wraptag="li" />
<txp:feed_link label="Atom Feed" section="article" flavor="atom" wraptag="li" />
<txp:link_feed_link label="Links RSS Feed" wraptag="li" />
[ --- secondpass --- ]
-->
(Edit: updated so that the tag trace displays properly. :) -Mary)
Last edited by Mary (2006-06-04 17:22:21)
Offline
#4 2006-06-04 17:31:02
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sections wouldn't load after changing template
Sorry I was posting it in the wrong board.
It’s no problem. It’s not always obvious which is the best place a new thread should go, so that’s what my little “Move topic” button is for. :)
Okay, so your page looks okay. It looks like your “monthly_article” form is empty. My guess is that your “static_article” form might be empty too.
Offline
Re: Sections wouldn't load after changing template
Odd, both my “monthly_article” and “static_article” forms are not empty. :/ I re-saved them again however, just in case – but the problem still persists.
After tinkering about, I suspect this has something to do with the “static_article” – any sections that have something to do with static (therefore, stickied) artices just wouldn’t display. (This is now solved as I realised status=“sticky” wasn’t added in the static_article form. About and Download sections are okay now, but the Archives still wouldn’t work.)
Final edit: Turns out that there was indeed something wrong with the pages – the ones provided by Vladimir had some mistakes. Thanks a lot Mary! :)
Last edited by Saigo (2006-06-04 18:46:21)
Offline
#6 2006-06-04 18:47:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sections wouldn't load after changing template
<code><txp:article_custom limit=99999 section=“article” form=“monthly_article” />
</code>
Not sure about this, but shouldn’t the limit be in quotes? If that’s not it, I had a similar problem once (but that was with a plugin) and it turned out that the limit was set too high which caused it to display nothing, so you could try setting it to 999 (if that’s enough for you ;) ).
Offline
Re: Sections wouldn't load after changing template
The limit works fine without quotes, for some reason – I followed the directions straight from Textpattern’s FAQ. ;)
Offline