Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-31 18:59:32

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

[SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

After an update (clean install plus re-import from 4.0.5. database backup via PHPmyAdmin) from txp 4.0.5 to 4.3.0 today i encounter the following severe problems:

- article tags in page form between if_individual article tags (opening and closing tags):
Individual articles don’t show at all. Default articles after txp:else referenced by ID do appear.
Using article_custom tags instead only shows the latest saved article instead of the one linked, regardless of messy or clean URL mode.
Additionally then i get an error in debugging mode
“Tag error: -> Textpattern Notice: Page template default does not contain a txp:article tag on line 543
textpattern/publish.php:543 trigger_error()
index.php:45 textpattern()”

Maybe a related glitch: in admin -> preferences -> basic the option “Automatically adjust DST setting? No Yes” is greyed out. Radio buttons are inaccessible there.

Pre-fight check in diagnostics shows no errors.
I use the standard .htaccess that comes with the 4.3.0. installation.
The site worked flawlessly before the update.

Any ideas what might have happened are very appreciated :)

Last edited by jayrope (2011-02-01 04:15:21)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#2 2011-01-31 19:11:50

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

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

Can you link to a tag trace? (Link to live site in debugging mode, or pastebin, perhaps)


Code is topiary

Offline

#3 2011-01-31 19:17:50

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

Hey Jsoo,

The site in question is here http://neumund.kliklak.net/ (shows default article)
Clicking any link in the header navigation shows the last saved article including the described tag error message.
(left sidebar navigation doesn’t work at all, probably related.)

Should I paste those three tag traces in here or are you going to take a look at the source on site itself?

Thanx for looking in advance, Jsoo.

Last edited by jayrope (2011-01-31 19:18:00)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#4 2011-01-31 19:21:10

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

I wonder if doing a clean install of TXP (4.3.0 in this case) and then connecting it to a 4.0.5 database is the correct way to try an upgrade.
Have you tried logging out and in again to TXP admin side, so the upgrade process takes places?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2011-01-31 19:24:57

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

@ Maniqui. The clean install was performed after i had done an upgrade by replacing the relevant files first, which cited the exact same problems as the latter clean install.
Insofar i believe, that the nature of the updating process was not relevant here. Correct me in case i oversaw something.


A hole turned upside down is a dome, when there’s also gravity.

Offline

#6 2011-01-31 19:29:45

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

Maniqui: Misse answering your question: Yes i did log in and out, and the update process was visible only after clean install. Jsoo: Below is an individual article tag trace, showing the latest saved instead of the right article, using article_custom tag:

[Page: default]
<txp:page_title />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:link_to_home>
	<txp:site_name />
</txp:link_to_home>
<txp:output_form form="topnav" />
	[SQL (6.8187713623E-05): select Form from txp_form where name='topnav']
	[Form: topnav]
	<txp:search_input label="" section="artist" size="9" wraptag="" />
		[SQL (5.98430633545E-05): select form from txp_form where `name` = 'search_input' limit 1]
<txp:output_form form="artists" />
	[SQL (6.103515625E-05): select Form from txp_form where name='artists']
	[Form: artists]
	<txp:recent_articles break="li" category="news" label="artists" labeltag="h3" limit="9999" section="artist" sort="Title asc" wraptag="div" />
		[SQL (0.00158309936523): select *, id as thisid, unix_timestamp(Posted) as posted from textpattern where Status = 4  and Section IN ('artist') and (Category1 IN ('news') or Category2 IN ('news')) and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')  order by Title asc limit 0,9999]
<txp:if_section name="artist">
	[<txp:if_section name="artist">: false]
</txp:if_section>
<txp:feed_link flavor="rss" label="RSS news feed" section="article" wraptag="p" />
<txp:if_search>
	[<txp:if_search>: false]
</txp:if_search>
<txp:if_section name="artist">
	[<txp:if_section name="artist">: false]
	<txp:if_individual_article>
		[<txp:if_individual_article>: true]
		<txp:article_custom limit="1" />
			[SQL (0.000830888748169): 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') order by Posted desc limit 0, 1]
			[article 2]
			[SQL (7.00950622559E-05): select Form from txp_form where name='default']
			[Form: default]
			<txp:permlink>
				<txp:title />
			</txp:permlink>
			<txp:site_url />
			<txp:article_id />
			<txp:posted />
			<txp:body />
	</txp:if_individual_article>
</txp:if_section>
[ ~~~ secondpass ~~~ ]
Tag error:   -> Textpattern Notice: Page template default does not contain a txp:article tag  on line 543
 -->

(changed bq to bc. -Els)

Last edited by els (2011-01-31 20:06:35)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#7 2011-01-31 19:46:41

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

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

You’ve got your article and article_custom tags mixed up. The homepage shows <txp:article id="1" /> which isn’t supposed to work (although actually it can), and the tag trace you just posted has <txp:article_custom limit="1" />, which as written will indeed display the most recent article. article_custom is not article, hence the tag error message.


Code is topiary

Offline

#8 2011-01-31 19:47:41

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

@ Jsoo Here#s a tag trace for the exact same page, but using a standard article tag instead of article custom.

[Page: default]
<txp:page_title />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:link_to_home>
	<txp:site_name />
</txp:link_to_home>
<txp:output_form form="topnav" />
	[SQL (6.29425048828E-05): select Form from txp_form where name='topnav']
	[Form: topnav]
	<txp:search_input label="" section="artist" size="9" wraptag="" />
		[SQL (5.50746917725E-05): select form from txp_form where `name` = 'search_input' limit 1]
<txp:output_form form="artists" />
	[SQL (6.00814819336E-05): select Form from txp_form where name='artists']
	[Form: artists]
	<txp:recent_articles break="li" category="news" label="artists" labeltag="h3" limit="9999" section="artist" sort="Title asc" wraptag="div" />
		[SQL (0.00149917602539): select *, id as thisid, unix_timestamp(Posted) as posted from textpattern where Status = 4  and Section IN ('artist') and (Category1 IN ('news') or Category2 IN ('news')) and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')  order by Title asc limit 0,9999]
<txp:if_section name="artist">
	[<txp:if_section name="artist">: false]
</txp:if_section>
<txp:feed_link flavor="rss" label="RSS news feed" section="article" wraptag="p" />
<txp:if_search>
	[<txp:if_search>: false]
</txp:if_search>
<txp:if_section name="artist">
	[<txp:if_section name="artist">: false]
	<txp:if_individual_article>
		[<txp:if_individual_article>: true]
		<txp:article limit="1" />
	</txp:if_individual_article>
</txp:if_section>
[ ~~~ secondpass ~~~ ]
 -->

A hole turned upside down is a dome, when there’s also gravity.

Offline

#9 2011-01-31 19:54:39

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

Hmm Jsoo, i understand your point about article tags, but why does a txp:article tag in enclosing txp:if_individual_article tags not show an individual article, whereas a txp:article_custom tag does, but the wrong article?

EDIT: I must be from TXP decades ago: Now realizing that i can use the id attribute only with article_custom. However:

If i go to www.website.com/url-title-only, then this individual article should show, not the last saved, no?

The site worked before the update. I didn’t change anything after the upgrade.

Last edited by jayrope (2011-01-31 20:00:01)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#10 2011-01-31 20:03:27

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

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

You’re asking questions more quickly than I can get to them :)

How about if we just work on this one page at a time? Pick one, and we’ll start there.


Code is topiary

Offline

#11 2011-01-31 20:11:01

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

Jsoo, good point :)
I boiled down the necessary content tags to this version for testing:

<txp:if_individual_article><txp:article /> <txp:else /><txp:article_custom id=“1” /></txp:if_individual_article>

Does that make sense?

The individual article still doesn’t show, though. I’ll get a beer and be back in 10.
Thank you!


A hole turned upside down is a dome, when there’s also gravity.

Offline

#12 2011-01-31 20:15:47

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

Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work

OK; beer’s bound to help :)

Do let me know what URL we’re working from.


Code is topiary

Offline

Board footer

Powered by FluxBB