Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
4.0.4 and article links
Hi,
I just upgraded to 4.0.4 on two different blogs (http://mysterybear.net and http://neurodiversity.com/weblog). The upgrade went very smoothly in both cases, with clean diagnostics. However, there is a troublesome difference that I can’t pin down: in the latter blog (neurodiversity.com), article links of the form /article/ID now just go to the main blog page instead of to the article with that ID. For example, we used to be able to the article at
http://neurodiversity.com/weblog/article/108/bibliographic-mergers-acquisitionswith the URL
http://neurodiversity.com/weblog/article/108but this is no longer the case.
In the other blog, it still works. For example, the two following URLs are equivalent:
http://mysterybear.net/article/10/passacaglia-and-fugue-stateand
http://mysterybear.net/article/10I can’t find any difference between the configuration of the two site, either from the TXP Preferences tab or in .htaccess. Any ideas?
- Dave
P.S. Both blogs have “Permanent link mode” set to /section/id/title.
Last edited by DaveSeidel (2006-11-19 18:47:32)
Offline
#2 2006-11-19 21:45:16
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: 4.0.4 and article links
Different .htaccess files?
Alex
Offline
Re: 4.0.4 and article links
No, they are almost exactly the same. The only difference is that the one for the site with the problem has two additional RewriteRules to foil a bot:
RewriteRule .*\/imcsl2\.gif$ - [G]
RewriteRule .*\/indmedsl\.gif$ - [G]
but the same symptom occurs even with those lines commented out. Other than that, it’s the canonical file from the TXD distribution.
The weird thing is that the behavior changed after migrating from 4.0.3 to 4.0.4, and the .htaccess file did not change at all.
Offline
Re: 4.0.4 and article links
I have no suggestion or solution, but for what it’s worth, the same problem has been reported at TextDrive.
TextPattern user since 04/04/04
Offline
Re: 4.0.4 and article links
Thanks, Reid, I have now added my report over there.
Offline
#6 2006-11-20 02:55:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.4 and article links
It makes more sense for that report to be added here, not the other way ‘round. :) Either way, keep it to one thread, not two, so no information gets confused/lost.
Last edited by Mary (2006-11-20 02:56:15)
Offline
Re: 4.0.4 and article links
Mary wrote:
It makes more sense for that report to be added here, not the other way ‘round. :) Either way, keep it to one thread, not two, so no information gets confused/lost.
Well, I am not the originator of the thread, so I will simply repeat my findings here:
URL: http://neurodiversity.com/weblog/article/51/getting-the-truth-out
[CHOP URL Debug]:
request_uri:/weblog/article/51/getting-the-truth-out
u1: article
u2: 51
u3: getting-the-truth-out
u4:
——[END CHOP URL Debug]——
Result: the requested article loads fine
URL: http://neurodiversity.com/weblog/article/51
[CHOP URL Debug]:
request_uri:/weblog/article/51
u1: article
u2: 51
u3:
u4:
——[END CHOP URL Debug]——
Result: the default page loads instead of the requested article
Offline
#8 2006-11-20 03:35:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 4.0.4 and article links
Could you post the results of your “High” diagnostics please?
Offline
#9 2006-11-20 04:14:55
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: 4.0.4 and article links
Mary wrote:
It makes more sense for that report to be added here, not the other way ‘round. :) Either way, keep it to one thread, not two, so no information gets confused/lost.
For reference, I assumed the issue was some URI funkiness, hence the quick and dirty plugin to grab and parse the URI and append that to the trace…but no, the URI is parsing correctly. (Though the plugin’s bypassing the serverSet function, but since that basically does a straight assignment, I can’t imagine it’d introduce any problems…)
And then my dog ate my badger, and the love was lost.
Offline
Re: 4.0.4 and article links
I was the originator of the thread on Textdrive – I had assumed, because my (supposedly) identical localhosted version was not exhibiting this behaviour that the culprit was a differing interpretation of .htaccess files between my local install and the one on Textdrive.
Anyway, I can confirm that the output I see using igner’s plugin is the same as Dave’s.
A full diagnostic, being a bit long, is not posted here, but is available (for a while, anyway) here.
Last edited by dubh (2006-11-20 10:25:24)
Alan Macdougall — http://halfpie.net/
Offline
Re: 4.0.4 and article links
Mary wrote:
Could you post the results of your “High” diagnostics please?
Here you go:
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-11-12 22:39:52/2006-11-12 22:39:17
Document root: /users/home/superlum/domains/neurodiversity.com/public_html
$path_to_site: /users/home/superlum/domains/neurodiversity.com/public_html/weblog
Textpattern path: /users/home/superlum/domains/neurodiversity.com/public_html/weblog/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /usr/local/www/php/tmp
Temporary directory path: /var/tmp
Site URL: neurodiversity.com/weblog
PHP version: 5.1.4
Server Local Time: 2006-11-20 12:04:11
MySQL: 4.1.18-log
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: FreeBSD 5.5-PRERELEASE
Active plugins: rss_suparchive-0.18, chopuri-0.1.htaccess file contents:
————————————
AddType application/x-httpd-php .html .htm#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/<IfModule mod_rewrite.c> RewriteEngine On
RewriteRule .*\/imcsl2\.gif$ – [G] RewriteRule .*\/indmedsl\.gif$ – [G]
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>#php_value register_globals 0
————————————
Charset (default/config): latin1/latin1
character_set_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/share/mysql/charsets/
19 Tables: OKPHP extensions: standard/5.1.4, SPL, Reflection, date/5.1.4, libxml, apache2handler, ncurses, bz2, imap, ctype, zlib/1.1, mbstring, xml, PDO, openssl, session, pdo_sqlite/1.0.1, SimpleXML, shmop, bcmath, tokenizer/0.1, iconv, fileinfo/0.1, mysqli/0.1, ftp, dom/20031129, readline, xmlwriter/0.1, sockets, mhash, exif/1.4 $Id: exif.c,v 1.173.2.5 2006/04/10 18:23:24 helly Exp $, SQLite, xmlreader/0.1, gmp, pdo_mysql/1.0.2, pcre, mcrypt, pcntl, xsl/0.1, gettext, posix, calendar, pgsql, soap, gd, curl, mysql/1.0, Zend Optimizer
Apache modules: core, prefork, http_core, mod_so, mod_access, mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_digest, mod_charset_lite, mod_include, mod_deflate, mod_log_config, mod_logio, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_setenvif, mod_dir, mod_proxy, proxy_connect, proxy_ftp, proxy_http, mod_ssl, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_cgi, mod_dav_fs, mod_negotiation, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_security, mod_php5, mod_fastcgi, mod_suexec, mod_vd, mod_dav_svn, mod_authz_svn
pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/weblog/c01a0c8c1e4ba192f06d5439fbec33f0/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/weblog\\/’, ‘req’ => ‘/c01a0c8c1e4ba192f06d5439fbec33f0/?txpcleantest=1’,
)/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (7749f699c03d0c57e04fafe17dbfa94c)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (1563fcbaffe25b3272b0d85ff9d5571d)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (b110efd071e9a5bb395beea66ced128a)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)
Note that the problem occurs even if the two additional RewriteRule lines in .htaccess are commented out.
I’m also happy to provide a full tag dump if it will be helpful.
Last edited by DaveSeidel (2006-11-20 12:16:07)
Offline
#12 2006-11-20 22:23:45
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: 4.0.4 and article links
Dave: I’d guess you have a .htaccess file in the parent public_html directory that is interfering with Textpattern.
Textdrive might be able to help you sort it out if that’s the case.
Last edited by zem (2006-11-20 23:07:00)
Alex
Offline