Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[resolved] Individual articles rendering as article lists - what gives?!
Man, I’m hurting here, especially due to the absolute randomness of this problem.
When clicking on an individual article, I’m getting article lists! Aggravating! You can see it demonstrated at this URL. If you view source, you’ll see the HTML comments that are referenced in the article form below (either <!— article list!!! —> or <!— individual article —>). And as you can see, even when it’s an individual article, article list is being output!
Any ideas?? Here are the relevant pieces of code:
Presentation -> Pages -> default
<txp:if_section>
<txp:if_section name=“site”>
<txp:article_custom form=“default” limit=“6” section=“site” />
</txp:if_section>
<txp:else />
<txp:article form=“default” limit=“6” />
</txp:if_section>
Presentation -> Forms -> default
<txp:if_individual_article>
<!— individual article —>
<txp:body />
</txp:if_individual_article>
<txp:if_article_list>
<!— article list!!! —>
<txp:if_excerpt>
<txp:excerpt />
<div class=“readmore”><txp:permlink>Continue Reading…</txp:permlink></div>
<txp:else />
<txp:body />
</txp:if_excerpt>
</txp:if_article_list>
Diagnostics info (root path slightly adjusted for security purposes)
Textpattern version: 4.0.8 (r3085)
Last Update: 2009-06-12 18:06:30/2009-01-23 18:20:56
Document root: /home/nathanlogan.com (/home/nathanlogan.com)
$path_to_site: /home/nathanlogan.com
Textpattern path: /home/nathanlogan.com/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/nathanlogan.com/textpattern/tmp
Site URL: nathanlogan.com
PHP version: 4.4.9
Register globals: 1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2009-07-01 10:41:40
MySQL: 5.0.67-log
Locale: en_GB
Server: Apache
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194
.htaccess file contents:
————————————
#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
————————————
Charset (default/config): latin1/
character_set_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /data/mysql/elden/share/mysql/charsets/
18 Tables: OK
PHP extensions: xslt, xml, tokenizer/0.1, standard/4.4.9, session, pspell, posix, overload, mysql, mcrypt, mbstring, imap, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.8 2007/12/31 07:22:46 sebastian Exp $, domxml/20020815, curl, ctype, calendar, zlib/1.1, pcre, openssl, Zend Optimizer
/home/nathanlogan.com/index.php:
r2885 (b2215d9fc23dc9aa88c92cdb7e4627f2)
/home/nathanlogan.com/textpattern/css.php:
r2772 (2a3cef700a253208e1140acfb27b7895)
/home/nathanlogan.com/textpattern/include/txp_admin.php:
r3013 (4f25d38445705e8135eafb47fe69c5e6)
/home/nathanlogan.com/textpattern/include/txp_article.php:
r3040 (d5e4b175b1f7eec4ca73a0362b943185)
/home/nathanlogan.com/textpattern/include/txp_auth.php:
r2856 (c6e17d38408910606b38ea6fbb8e97a8)
/home/nathanlogan.com/textpattern/include/txp_category.php:
r3072 (38cb7ab1fca56ec11e66bc7fcb4dcf1d)
/home/nathanlogan.com/textpattern/include/txp_css.php:
r3081 (4a0fc4c539e86aef5eb061d6bbaca5ac)
/home/nathanlogan.com/textpattern/include/txp_diag.php:
r3060 (0116e33dc27867bc7004f788da2fc610)
/home/nathanlogan.com/textpattern/include/txp_discuss.php:
r3071 (9b53af05cd0c1baa8fc99c07c99d3640)
/home/nathanlogan.com/textpattern/include/txp_file.php:
r3069 (0dfc75eaa35e524313a40812dfa82886)
/home/nathanlogan.com/textpattern/include/txp_form.php:
r3069 (3edf3408cd05fe8e82137735b1bce5c7)
/home/nathanlogan.com/textpattern/include/txp_image.php:
r3069 (4c9b3db31c3df354b9055725e9fb2091)
/home/nathanlogan.com/textpattern/include/txp_import.php:
r2812 (4401e213b8b68af2001734ac67b85f51)
/home/nathanlogan.com/textpattern/include/txp_link.php:
r3069 (0fffe5a42a06327c15064d54ddd5f478)
/home/nathanlogan.com/textpattern/include/txp_list.php:
r3069 (256b992e07a9d67acb4334b57fe64cd3)
/home/nathanlogan.com/textpattern/include/txp_log.php:
r3003 (942e39aade8d8ccf4232bfc46c6c9902)
/home/nathanlogan.com/textpattern/include/txp_page.php:
r3056 (d6aa9f8ad7605fbba705c96710cc1802)
/home/nathanlogan.com/textpattern/include/txp_plugin.php:
r3052 (dcd7dc1e43b1479965378dbb802d52e1)
/home/nathanlogan.com/textpattern/include/txp_prefs.php:
r2965 (55a6d6e2fa6994e16566c6e1b19d2e1d)
/home/nathanlogan.com/textpattern/include/txp_preview.php:
r1238 (c3e3678d655eb19ece72af65b763fd1b)
/home/nathanlogan.com/textpattern/include/txp_section.php:
r3072 (0034cc064a65b78900e164d118a0ef8b)
/home/nathanlogan.com/textpattern/include/txp_tag.php:
r2868 (3ac47c5e472b54b5bc27909581120167)
/home/nathanlogan.com/textpattern/index.php:
r3085 (d65f4b0d862d74000e2bcc37260c706f)
/home/nathanlogan.com/textpattern/lib/IXRClass.php:
r2932 (a14c1fa6441a4faf1d097d397bf61841)
/home/nathanlogan.com/textpattern/lib/admin_config.php:
r2812 (b4bb30f62aab58b164ea6c3e6c786b9c)
/home/nathanlogan.com/textpattern/lib/class.thumb.php:
r3041 (45ed990e57ba5daebe11f274b32626c6)
/home/nathanlogan.com/textpattern/lib/classTextile.php:
r2812 (76416becc5a4789efbc543c4681041c3)
/home/nathanlogan.com/textpattern/lib/constants.php:
r3038 (f87766c302fa9275024a06b2351a2411)
/home/nathanlogan.com/textpattern/lib/taglib.php:
r2868 (b804c3222d47e5b24c16bd3731b5eac9)
/home/nathanlogan.com/textpattern/lib/txplib_admin.php:
r3047 (4adad7711c24f49ecd26b24d80d27884)
/home/nathanlogan.com/textpattern/lib/txplib_db.php:
r3029 (ae35ec3566cfab83178eb0bb6cc6adf5)
/home/nathanlogan.com/textpattern/lib/txplib_forms.php:
r3079 (79a5b4411412a41feb64fea544ef1eb2)
/home/nathanlogan.com/textpattern/lib/txplib_head.php:
r3004 (813dd318366c7f823e5c1202e253c7e9)
/home/nathanlogan.com/textpattern/lib/txplib_html.php:
r2981 (1b048fdbe1f6fec8f052274c2b2c0736)
/home/nathanlogan.com/textpattern/lib/txplib_misc.php:
r3074 (804959a9253b0ad9b472ca8d55965382)
/home/nathanlogan.com/textpattern/lib/txplib_update.php:
r2812 (31a52cb8894ab8d0c81c9c8905d8ab60)
/home/nathanlogan.com/textpattern/lib/txplib_wrapper.php:
r2931 (81f3780d9972c5fadd478a13a7204d2a)
/home/nathanlogan.com/textpattern/publish.php:
r3050 (8c4ad513ead711cf336d17fb7605ce63)
/home/nathanlogan.com/textpattern/publish/atom.php:
r3029 (2b7568a730855c05eb275125069c17cb)
/home/nathanlogan.com/textpattern/publish/comment.php:
r3011 (18ab83ecddef7499afdb3ff399973113)
/home/nathanlogan.com/textpattern/publish/log.php:
r2937 (40cfffaca8aa34c71ab0ad7434a95767)
/home/nathanlogan.com/textpattern/publish/rss.php:
r3029 (240cef01dd4aa72d32ebf05baa56ccfe)
/home/nathanlogan.com/textpattern/publish/search.php:
r2812 (e5b4f62da431aec72118414ed2bcd2a2)
/home/nathanlogan.com/textpattern/publish/taghandlers.php:
r3078 (bfb48cb4ffff860c7b2fc7f635988ec5)
/home/nathanlogan.com/rpc/index.php:
r2998 (d7b0e58e0dac47472401982f2953a5a4)
/home/nathanlogan.com/rpc/TXP_RPCServer.php:
r2998 (95942b5917b4d45d6c0e48d1deb53154)
/home/nathanlogan.com/textpattern/update/_to_1.0.0.php:
r3047 (f12fd6e63f344f1802c1f17f854b2ad7)
/home/nathanlogan.com/textpattern/update/_to_4.0.2.php:
r3047 (cdd0e5fe346c0702eb414f42f9cfbcc6)
/home/nathanlogan.com/textpattern/update/_to_4.0.3.php:
r3047 (ebef8def3b71b07aa01929f335b7afc6)
/home/nathanlogan.com/textpattern/update/_to_4.0.4.php:
r3047 (8fd20a90592394a65fbd9b0d6c6a388c)
/home/nathanlogan.com/textpattern/update/_to_4.0.5.php:
r2894 (6c60b97917192d4f4c4aa4ee377b6329)
/home/nathanlogan.com/textpattern/update/_to_4.0.6.php:
r3047 (d2f218d57ba0faf018df88825c225e68)
/home/nathanlogan.com/textpattern/update/_to_4.0.7.php:
r3014 (507a199ad584314f9131152eac028433)
/home/nathanlogan.com/textpattern/update/_to_4.0.8.php:
r3057 (836b291ed122ced3759b5909c7d442d4)
/home/nathanlogan.com/textpattern/update/_update.php:
r3085 (c9332d78f697754fab18fae5cfea481f)
Offline
Re: [resolved] Individual articles rendering as article lists - what gives?!
So checked out Zem’s recommend to turn on debugging mode and was able to track down the problem.
It turns out that 4.0.5 worked with the way I had the default Page setup and 4.0.8 decided to break that. Woo.
I fixed it by changing this:
<txp:if_section> <txp:if_section name=“site”> <txp:article_custom form=“default” limit=“6” section=“site” /> </txp:if_section>
<txp:else /> <txp:article form=“default” limit=“6” />
</txp:if_section>
To this:
<txp:article form=“default” limit=“6” />
Offline
#3 2009-07-01 20:12:10
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [resolved] Individual articles rendering as article lists - what gives?!
I find it hard to believe that your code displayed an individual article even in 4.0.5…
Offline
Re: [resolved] Individual articles rendering as article lists - what gives?!
Find it hard if you’d like, but that doesn’t change the fact that it did.
If you are truly interested, I could try to set up an example of the code I was running and its result.
Offline
#5 2009-07-01 21:15:16
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [resolved] Individual articles rendering as article lists - what gives?!
NathanLogan wrote:
If you are truly interested, I could try to set up an example of the code I was running and its result.
I was going to say ‘yes, please’, but just in time – to save you some work and me some embarrassment ;) – I remembered this (4.0.8 Changelog):
Changed tag: <txp:if_section> without a name attribute is now TRUE on a section page
though this addition:
(old behaviour is preserved on upgrades)
leads me to believe it wasn’t supposed to break your site…
Offline
Re: [resolved] Individual articles rendering as article lists - what gives?!
Yeah, it’s definitely frustrating to have a working site, do an upgrade for security reasons, and need to spend 3-4 hours trying to get it working again.
But such is the nature of progress, I suppose. I am happy to have a more secure site…at least now that it’s working. =)
Offline