Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Clean URL test fails but clean urls seem to work?
Hi –
As the subject states, my TXP install seems to be working fine, but the pre-flight clean-url test fails. Can anyone shed any light on exactly what the test does, and why this inconsistency?
Thanks!
Offline
#2 2007-05-09 01:09:37
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Re: Clean URL test fails but clean urls seem to work?
Been there, read that. As stated, clean URLs do seem to be working, so I’m curious as to why the pre-flight is failing.
Offline
#4 2007-05-09 05:28:16
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Clean URL test fails but clean urls seem to work?
“Seems to be working” is not the same thing as “working”. The FAQ lists 3 possible reasons; have you ruled those out?
Go to admin/diagnostics, select High detail, and look for ‘pretext_data’. What does it show?
Last edited by zem (2007-05-09 05:30:04)
Alex
Offline
Re: Clean URL test fails but clean urls seem to work?
zem wrote:
“Seems to be working” is not the same thing as “working”.
True. But by way of example:
http://telstarfalls.thinginajar.com/index.php?id=35
and
http://telstarfalls.thinginajar.com/article/35/creepy-space-prog-anyone
both work as expected. Therefore, clean URLs “seem to be working.”
The FAQ lists 3 possible reasons; have you ruled those out?
I think so:
1. Your “Site URL” setting is incorrect, or the page at that address is not managed by this copy of Textpattern; or
I think it’s correct. My Site URL is set to telstarfalls.thinginajar.com, which resolves to my blog’s front page.
2. Your server requires some changes to .htaccess in order to make clean URLs work; or
Possible, but see above for confusing evidence.
3. Your server doesn’t support clean URLs at all.
Same as #2.
Go to admin/diagnostics, select High detail, and look for ‘pretext_data’. What does it show?
Nothing. I don’t see that value in the detail pane. Is the absence of that value perhaps a clue?
Thanks!
Offline
#6 2007-05-10 02:12:19
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Clean URL test fails but clean urls seem to work?
both work as expected. Therefore, clean URLs “seem to be working.”
That’s the 2 simplest cases only. There are many others that you haven’t tested. The clean URL test covers some more complex scenarios that sometimes fail when the simplest ones appear to work fine. That’s why it’s there.
Can you post your diagnostics please? High detail.
Last edited by zem (2007-05-10 02:13:58)
Alex
Offline
Re: Clean URL test fails but clean urls seem to work?
Here ya be – slightly sanitized to remove my username from the paths…
Textpattern version: 4.0.4 (r1956)
Last Update: 2007-03-31 04:19:25/2007-03-31 04:16:54
Document root: /home/users/web/b1387/####/telstarfalls/htdocs (/hermes/web08/b1387/####/telstarfalls/htdocs)
$path_to_site: /hermes/web08/b1387/####/telstarfalls/htdocs
Textpattern path: /hermes/web08/b1387/####/telstarfalls/htdocs/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /home/users/web/b1387/####/tmp
Temporary directory path: /hermes/web08/b1387/####/telstarfalls/htdocs/textpattern/tmp
Site URL: telstarfalls.thinginajar.com
TZ: EST5EDT
PHP version: 5.2.1
Server Local Time: 2007-05-09 22:18:40
MySQL: 4.1.18-standard-log
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.19.2-grsec
Active plugins: jnm_categories-0.1
Pre-flight check:
------------------------
Clean URL test failed.
------------------------
.htaccess file contents:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
------------------------
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/mysql-standard-4.1.18-pc-linux-gnu-i686/share/mysql/charsets/
17 Tables: -
PHP extensions: libxml, xmlwriter/0.1, xmlrpc/0.51, xmlreader/0.1, xml, wddx, tokenizer/0.1, session, SimpleXML, SPL, sockets, PDO, standard/5.2.1, Reflection, pspell, posix, pdo_sqlite/1.0.1, SQLite, mysqli/0.1, mysql/1.0, ming, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.11 2007/01/23 00:23:17 iliaa Exp $, dom/20031129, dbase, dba, date/5.2.1, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl, xsl/0.1, cgi
/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)
Offline
#8 2007-05-10 03:24:15
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Clean URL test fails but clean urls seem to work?
It looks like the clean URL test code is returning nothing at all, for reasons unknown.
Alex
Offline
Re: Clean URL test fails but clean urls seem to work?
Hi Zem and telstar,
I’m getting the same result – I’ve had my site up and running fine for about a year now, however since upgrading to 4.0.4 a few weeks ago, I’m starting to notice quirks. I’m not sure how or if they are all related, but one of them is the same as reported by telstar: clear url test fails, but they seem to be functioning. I went through all the same checks as already mentioned in this post with the same results. When I run diagnostics, I do not see a line with ‘pretext_data’ either. Do I need to be concerned? Here’s my site.
The other issue I’ve discovered (again, not sure it’s related) is that, on certain pages where I’ve offered numerous files for download, the links all point to a single file despite the fact that I’ve specifically linked to different file ids in my code. (ie. the first file download on the page is for file id=29, then I’ve got links to file ids 16, 17, 18, 19, etc., but in the final html output all the links go to file id=29.) Here’s an example.
Thanks for any help!
Here’s my diagnostic info:
Textpattern version: 4.0.4 (r1956)
Last Update: 2007-04-30 14:30:09/2007-04-30 14:27:30
Document root: /metonym.ca/public (/storage/hostingfs_nas011/18/16118/metonym.ca/public)
$path_to_site: /storage/hostingfs_nas011/18/16118/metonym.ca/public
Textpattern path: /storage/hostingfs_nas011/18/16118/metonym.ca/public/textpattern
Permanent link mode: section_title
Temporary directory path: /storage/hostingfs/18/16118/metonym.ca/public/textpattern/tmp
Site URL: www.metonym.ca
PHP version: 4.3.8
Register globals: 1
Server Local Time: 2007-05-16 15:29:01
MySQL: 4.0.18-log
Locale: en_US.ISO_8859-1
Server: Apache/1.3.33 (Unix) FrontPage/5.0.2.2635 PHP/4.3.6 mod_ssl/2.8.22 OpenSSL/0.9.7d
PHP Server API: cgi
RFC 2616 headers:
Server OS: FreeBSD 4.11-RELEASE-p16
Active plugins: ako_nav-1.0, rss_admin_db_manager-4.1, fpx_image_import-0.3, chh_article_lib-1.04, chh_article_custom-1.15, upm_image-0.6, bas_lightbox-0.4, cbs_live_search-0.3, tru_tags-1.9, rss_admin_show_adv_opts-0.2, ako_social-0.4, asy_sitemap-0.7, vdh_flickr-0.8.8
Pre-flight check:
------------------------
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
Clean URL test failed.
------------------------
.htaccess file contents:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
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/utf8
character_set: latin1
character_sets: latin1 dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK
PHP extensions: zip, xml, tokenizer/0.1, standard/4.3.8, session, posix, pcre, overload, mysql, mcrypt, imap, gettext, gd, ftp, domxml/20020815, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, ionCube Loader
/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)
Offline
Re: Clean URL test fails but clean urls seem to work?
brosevaer, for the problem you have with the file download links, see this FAQ entry
Offline
Re: Clean URL test fails but clean urls seem to work?
Thanks ruud – should have found that, but I missed it. Maybe the clean url thing distracted me. The file_download links are working now.
Offline
#12 2007-05-16 21:10:58
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Clean URL test fails but clean urls seem to work?
Do I need to be concerned?
Well, we really couldn’t say, since we don’t know why the test is failing.
We could try and figure out why. If you change line 318 of textpattern/include/txp_diag.php to be $pretext_data = file(hu.$s.'/?txpcleantest=1'); (i.e: remove the @ symbol), then reload your diagnostics page, do you get any error messages you did not get before?
Offline