Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-04 15:06:15

SolidSquid
New Member
Registered: 2009-10-04
Posts: 4

Deprecated tags in Roowhaline plus a few other problems

Hi there, I’m new to textpattern and was trying to set up the Roowhaline template on my local host server, but I’ve had a few problems. At the top of the page I get two errors:

Tag error: <txp:recent_articles limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ label=“Recent articles” labeltag=“h3” /> -> Textpattern Notice: sortby attribute is deprecated on line 644

Tag error: <txp:recent_articles limit=“10” break=“li” wraptag=“ul” sortby=“Posted” sortdir=“desc” class=”“ label=“Recent articles” labeltag=“h3” /> -> Textpattern Notice: sortdir attribute is deprecated on line 652

Also, the dark grey box doesn’t seem to be scaling to the contents, it takes up most of the screen and pushes any other content down out of view. This may be related to the tag errors, so hopefully this will be sorted when those are.

The other problem is that the Articles directory doesn’t seem to be able to load the CSS for the page properly, it just displays the text and background image. Haven’t a clue why this is happening though, since it seems to work fine on the other pages. I did change the url for the images within the stylesheet (removed the ../ from in front of images/roowhaline) because none of the pages could find images, but that works fine now for all the other pages and doesn’t explain why the text isn’t being laid out correctly either.

Below are screenshots of the home page with error codes and huge grey box and the broken articles page

<a href=“http://www.flickr.com/photos/42404575@N04/3980481650/” title=“localhost screen capture 2009-10-4-15-55-37 by Solid Squid, on Flickr”><img src=“http://farm3.static.flickr.com/2517/3980481650_ceda4f996f.jpg” width=“462” height=“500” alt=“localhost screen capture 2009-10-4-15-55-37” /></a>

<a href=“http://www.flickr.com/photos/42404575@N04/3980481672/” title=“localhost screen capture 2009-10-4-15-55-42 by Solid Squid, on Flickr”><img src=“http://farm4.static.flickr.com/3445/3980481672_96d24bcc26.jpg” width=“500” height=“240” alt=“localhost screen capture 2009-10-4-15-55-42” /></a>

Offline

#2 2009-10-04 15:19:53

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Deprecated tags in Roowhaline plus a few other problems

The tag errors can be solved by finding the relevant code (smd_where_used is great for quickly finding things) and replacing this:

sortby="Posted" sortdir="desc"

with this:

sort="Posted desc"

Sometimes these error messages choke the CSS, because they appear outside the html tags and invalidate the page.


Code is topiary

Offline

#3 2009-10-04 15:33:58

SolidSquid
New Member
Registered: 2009-10-04
Posts: 4

Re: Deprecated tags in Roowhaline plus a few other problems

Excellent, that’s sorted all the issues with the regular pages.

Articles page I’ve got a slight update, it seems like it isn’t using the same layout as the rest of the site even though it’s using default style and page. No errors on the page though, so I’ve no idea what’s causing it

Offline

#4 2009-10-04 15:44:43

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Deprecated tags in Roowhaline plus a few other problems

Learn how to enable and read a tag trace and post one on the forum if you need help tracking down the problem.


Code is topiary

Offline

#5 2009-10-04 15:57:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Deprecated tags in Roowhaline plus a few other problems

By the way, Posted desc is the default value for sort in related_articles, so you can leave that attribute off entirely and get the same behavior.


Code is topiary

Offline

#6 2009-10-04 15:59:52

SolidSquid
New Member
Registered: 2009-10-04
Posts: 4

Re: Deprecated tags in Roowhaline plus a few other problems

Got the tag trace for the “Articles” page. Do you need one for one of the working pages to compare?

<!-- Runtime:    0.0540 -->
<!-- Query time: 0.030158 -->
<!-- Queries: 17 -->
<!-- Memory: 3215Kb, <txp:title /> -->
<!-- txp tag trace: 
[SQL (0.0037882328033447): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.0029919147491455): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.0020408630371094): select name from txp_section where `name` like 'articles' limit 1]
[SQL (0.0050921440124512): select page, css from txp_section where name = 'articles' limit 1]
[SQL (0.0013909339904785): select host from txp_log where ip='::1' limit 1]
[SQL (0.0010430812835693): insert into txp_log set `time`=now(),page='/textpattern/articles',ip='::1',host='::1',refer='',status='200',method='GET']
[SQL (0.0010099411010742): select user_html from txp_page where name='archive']
[Page: archive]
<txp:page_title />
	[SQL (0.00098586082458496): select title from txp_section where name='articles']
<txp:site_url />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:rsd />
<txp:section />
<txp:text item="go_content" />
<txp:text item="go_nav" />
<txp:text item="go_search" />
<txp:link_to_home>
	<txp:site_name />
</txp:link_to_home>
<txp:site_slogan />
<txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break="li">
	[attribute 'default_title']
	<txp:text item="home" />
	[/attribute]
	[SQL (0.0012409687042236): select name, title from txp_section where name != 'default'  order by name ASC]
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
	<txp:section link="1" title="1" />
	<txp:if_section name='<txp:section />'>
		[attribute 'name']
		<txp:section />
		[/attribute]
		[<txp:if_section name='<txp:section />'>: false]
	</txp:if_section>
</txp:section_list>
<txp:search_input wraptag="p" />
	[SQL (0.0010418891906738): select form from txp_form where `name` = 'search_input' limit 1]
<txp:feed_link label="RSS" />
<txp:feed_link flavor="atom" label="Atom" />
<txp:linklist wraptag="p" />
	[SQL (0.0011940002441406): select *, unix_timestamp(date) as uDate from txp_link where 1=1 order by linksort asc ]
	[SQL (0.0011229515075684): select Form from txp_form where name='plainlinks']
	[Form: plainlinks]
	<txp:linkdesctitle />
	[Form: plainlinks]
	<txp:linkdesctitle />
	[Form: plainlinks]
	<txp:linkdesctitle />
<txp:image id="2" />
	[SQL (0.0010378360748291): select * from txp_image where id = 2 limit 1]
<txp:if_article_list>
	[<txp:if_article_list>: true]
	<txp:section title="1" />
</txp:if_article_list>
<txp:article listform="article_listing" limit="5" />
	[SQL (0.001237154006958): select count(*) from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('articles')]
	[SQL (0.001427173614502): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('articles') order by Posted desc limit 0, 5]
	[article 1]
	[SQL (0.0019218921661377): select Form from txp_form where name='article_listing']
	[Form: article_listing]
	<txp:if_first_article>
		[<txp:if_first_article>: true]
	</txp:if_first_article>
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:posted format="%Y-%m-%d" />
	<txp:if_last_article>
		[<txp:if_last_article>: true]
	</txp:if_last_article>
<txp:if_individual_article>
	[<txp:if_individual_article>: false]
	<txp:older>
	</txp:older>
	<txp:newer>
	</txp:newer>
</txp:if_individual_article>
[ ~~~ secondpass ~~~ ]
 -->

Last edited by SolidSquid (2009-10-04 16:00:48)

Offline

#7 2009-10-04 16:16:23

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Deprecated tags in Roowhaline plus a few other problems

SolidSquid wrote:

Articles page I’ve got a slight update, it seems like it isn’t using the same layout as the rest of the site even though it’s using default style and page.

It isn’t, though:

[SQL (0.0010099411010742): select user_html from txp_page where name='archive']

It’s using the ‘archive’ page.


Code is topiary

Offline

#8 2009-10-04 16:45:05

SolidSquid
New Member
Registered: 2009-10-04
Posts: 4

Re: Deprecated tags in Roowhaline plus a few other problems

Ok, that’s just embarassing. I was sure I’d checked that as well.

Thanks a lot for the help with this, that seems to be everything working now

Offline

#9 2009-10-04 16:52:53

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Deprecated tags in Roowhaline plus a few other problems

NP. Possible explanation, that often trips people up: in Presentation->Sections each section has its own Save button, and you have to save changes to one section at a time, using the correct button. Kind of strange behavior.


Code is topiary

Offline

Board footer

Powered by FluxBB