Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Is 2011-01-31 12:17:12 a past timestamp for this server’s TZ?
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Yes it is. I set this txp install to my own timezone, which is GMT+1, currently 22:16 on Jan 31, 2011, DST not enabled, otherwise it would show one hour later.
Last edited by jayrope (2011-01-31 21:18:34)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Sorry, my question was irrelevant. I admit, I am puzzled. Is the article current (posted in the past, not expired)?
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
It is current (posted in the past) like all others, has no expiry date whatsoever, most probably, because they didn’t exist in 4.0.5. articles.
Meanwhile i realize, that any individual article in any section does not appear. The search field below the head navigation returns results, though. Type “air” into the search field and hit enter. The resulting articles do again not appear individually, though.
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Also, let’s check that the db was correctly updated. For example, does txp_file have a “title” column?
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
And did the default article form survive the upgrade intact?
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Here’s a repost of the current state of tag report of an individual article. As one can see the article tag shows up near the end of it, but the actual content is not returned, not even in the rest of the source code:
[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 (5.3882598877E-05): select Form from txp_form where name=‘topnav’] [Form: topnav] <txp:search_input label=”“ section=“artist” size=“9” wraptag=”“ /> [SQL (4.98294830322E-05): select form from txp_form where `name` = ‘search_input’ limit 1]
<txp:output_form form=“artists” /> [SQL (5.00679016113E-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.00138187408447): 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_individual_article> [<txp:if_individual_article>: true] <txp:article />
</txp:if_individual_article>
[ ~~~ secondpass ~~~ ] —>
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Yes, the default article form survived. It contains a title and a body tag, as needed. Looks liek this:
<div class="title-left">
<h3><txp:permlink><txp:title /></txp:permlink></h3>
</div>
<div class="datelog">
<a href="<txp:site_url />textpattern/index.php?event=article&step=edit&ID=<txp:article_id />">~ </a><txp:posted />
</div>
<txp:body />
<p> </p>
Last edited by jayrope (2011-01-31 21:34:08)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
And new DB columns? textpattern has an “Expires” column, for instance?
Edit: with the value correctly set to 0000-00-00 00:00:00 for all articles?
Last edited by jsoo (2011-01-31 21:43:38)
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Yes it does, shows in both article edit windows and textpattern table in MySQL database.
EDIT: Yes, correctly set to 0000-00-00 00:00:00 in 105 of 106 articles, one is set to the futurem which i did earlier to check if it works.
EDIT: txp_file also has a title column.
Last edited by jayrope (2011-01-31 21:53:54)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Here’s more fun:
Switched to messy URL mode and now article with ID=1 appears always within the article section (from clean links), nothing appears, when linking from messy links.
http://neumund.kliklak.net/live – http://neumund.kliklak.net/news or http://neumund.kliklak.net/ all show the news article.
http://neumund.kliklak.net/?id=1 or similar returns no article then…
uhm maybe an .htaccess problem?
Last edited by jayrope (2011-01-31 22:05:08)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Answering myself: .htaccess is fine. It contains exactly what’s coming from a 4.30 standard install:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>#php_value register_globals 0
Last edited by jayrope (2011-01-31 22:09:14)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
I don’t think this is an .htaccess issue. But this has me baffled. article is working on search pages. But on individual pages, article is not doing the query to retrieve the default article form.
What plugins are running?
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
zem_contact 0.6 – turned on or off doesn’t make a difference. Just deleted it. It WAS old. However, it doesn’t change anything. Now installing the reborn version.
A hole turned upside down is a dome, when there’s also gravity.
Offline
#30 2011-01-31 22:22:30
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
I noticed you’ve got both an article and a category named ‘news’. You’re not by chance using something like gbp_permanent_links that is confused about the /news URL?
Offline