Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
XML Failing
Can anybody guess why my XML feeds might not be working? Both simply redirect without a word to my index page. The site is http://www.bdhamilton.com/. Both feeds are hyperlinked on the Writings page in the sidebar, and one is also linked as alternate. Thanks!
Last edited by bdhamilton (2006-12-21 13:53:39)
Offline
Re: XML Failing
So I’m sure you’re about to be asked to post your diagnostics and ensure that you have passed the clean url test. One thing to note is that if you remove the last / in the url the feed links work so http://bdhamilton.com/rss?section=articles&limit=8 works.
Offline
Re: XML Failing
I have no error message about failing the clean URL test. Why would it work without the slash, if I’ve generated those links from TXP’s own tags? Also, catching the feed that way oddly includes only one (old) post. Here’s my diagnostic info:
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-11-22 06:24:33/2006-11-22 06:24:33
Document root: /home/content/b/d/h/bdhamilton/html
$path_to_site: /home/content/b/d/h/bdhamilton/html
Textpattern path: /home/content/b/d/h/bdhamilton/html/textpattern
Permanent link mode: section_title
upload_tmp_dir: /tmp
Temporary directory path: /home/content/b/d/h/bdhamilton/html/textpattern/tmp
Site URL: bdhamilton.com
PHP version: 4.3.11
Register globals: 1
Server Local Time: 2006-12-21 07:27:53
MySQL: 4.0.27-max-log
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: Linux 2.4.21-27.ELsmp
Active plugins: wet_amazonassoc-0.1m, upm_date_archive-0.1.6m
Pre-flight check:
————————————
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
Some Textpattern files have been modified: /publish/log.php, /publish.php
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.html index.php
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
DefaultType application/x-httpd-php
<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
- Redirects
Redirect permanent /%20 http://www.bdhamilton.com/
Redirect permanent /archives/2004/02/06/bored http://www.bdhamilton.com/articles/bored-as-hell
Redirect permanent /permlink.php http://www.bdhamilton.com/archives/
Redirect permanent /archives.php http://www.bdhamilton.com/archives/
Redirect permanent /blogarchives.php http://www.bdhamilton.com/archives/
Redirect permanent /services.php http://www.bdhamilton.com/work/
Redirect permanent /old_archives http://www.bdhamilton.com/archives/
Redirect permanent /new.php http://www.bdhamilton.com/
RedirectMatch permanent ^/archives(.+)/contact http://www.bdhamilton.com/contact/
RedirectMatch permanent ^/archives(.+)/articles http://www.bdhamilton.com/essays/
RedirectMatch permanent ^/archives(.+)/work http://www.bdhamilton.com/work/
RedirectMatch permanent ^/archives(.+)/archives http://www.bdhamilton.com/archives/
RedirectMatch permanent ^/archives(.+)/index.rdf http://www.bdhamilton.com/index.rdf
RedirectMatch permanent ^/old_archives http://www.bdhamilton.com/archives/
- PAGE GONE
Redirect 410 /trans_journal.php
Redirect 410 /index2.html
Redirect 410 /whychange.html
Redirect 410 /exper/ivcho.gif
Redirect 410 /scripts/nsiislog.dll
Redirect 410 /hugo/hugo.css
Redirect 410 /exper/tabs/
Redirect 410 /clients/v1/resume.txt
Redirect 410 /favicon.ico
Redirect 410 /inc/mainjs.js
Redirect 410 /exper/nextverge.gif
Redirect 410 /exper/orchard1.gif
Redirect 410 /exper/orchard2.gif
Redirect 410 /exper/cwd.gif
Redirect 410 /exper/beer_ss.gif
Redirect 410 /exper/niagra.gif
Redirect 410 /images/bg_blue.gif
Redirect 410 /images/torre_bg.jpg
RedirectMatch 410 ^/refer
RedirectMatch 410 ^/scripts
RedirectMatch 410 ^/archives/categories/(.)[-](.)
- SEE OTHER
RedirectMatch 303 ^/archives/categories/(.)[-](.) http://www.bdhamilton.com/archives/
Last edited by bdhamilton (2006-12-21 14:37:18)
Offline
#4 2006-12-21 20:14:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: XML Failing
First, I would start with putting your Txp rewrite stuff after the extra rules you’ve got in there.
#DirectoryIndex index.html index.php
#Options +FollowSymLinks
DefaultType application/x-httpd-php
#php_value register_globals 0
# Redirects
Redirect permanent /%20 http://www.bdhamilton.com/
Redirect permanent /archives/2004/02/06/bored http://www.bdhamilton.com/articles/bored-as-hell
Redirect permanent /permlink.php http://www.bdhamilton.com/archives/
Redirect permanent /archives.php http://www.bdhamilton.com/archives/
Redirect permanent /blogarchives.php http://www.bdhamilton.com/archives/
Redirect permanent /services.php http://www.bdhamilton.com/work/
Redirect permanent /old_archives http://www.bdhamilton.com/archives/
Redirect permanent /new.php http://www.bdhamilton.com/
RedirectMatch permanent ^/archives(.+)/contact http://www.bdhamilton.com/contact/
RedirectMatch permanent ^/archives(.+)/articles http://www.bdhamilton.com/essays/
RedirectMatch permanent ^/archives(.+)/work http://www.bdhamilton.com/work/
RedirectMatch permanent ^/archives(.+)/archives http://www.bdhamilton.com/archives/
RedirectMatch permanent ^/archives(.+)/index.rdf http://www.bdhamilton.com/index.rdf
RedirectMatch permanent ^/old_archives http://www.bdhamilton.com/archives/
# PAGE GONE
Redirect 410 /trans_journal.php
Redirect 410 /index2.html
Redirect 410 /whychange.html
Redirect 410 /exper/ivcho.gif
Redirect 410 /scripts/nsiislog.dll
Redirect 410 /hugo/hugo.css
Redirect 410 /exper/tabs/
Redirect 410 /clients/v1/resume.txt
Redirect 410 /favicon.ico
Redirect 410 /inc/mainjs.js
Redirect 410 /exper/nextverge.gif
Redirect 410 /exper/orchard1.gif
Redirect 410 /exper/orchard2.gif
Redirect 410 /exper/cwd.gif
Redirect 410 /exper/beer_ss.gif
Redirect 410 /exper/niagra.gif
Redirect 410 /images/bg_blue.gif
Redirect 410 /images/torre_bg.jpg
RedirectMatch 410 ^/refer
RedirectMatch 410 ^/scripts
RedirectMatch 410 ^/archives/categories/(.+)[-](.+)
# SEE OTHER
RedirectMatch 303 ^/archives/categories/(.+)[-](.+) http://www.bdhamilton.com/archives/
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
Offline
Re: XML Failing
For the sake of testing, I’ve deleted all that extra stuff from .htaccess. The problem seems to persist. Here’s my diagnostics again.
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-11-22 06:24:33/2006-11-22 06:24:33
Document root: /home/content/b/d/h/bdhamilton/html
$path_to_site: /home/content/b/d/h/bdhamilton/html
Textpattern path: /home/content/b/d/h/bdhamilton/html/textpattern
Permanent link mode: section_title
upload_tmp_dir: /tmp
Temporary directory path: /home/content/b/d/h/bdhamilton/html/textpattern/tmp
Site URL: bdhamilton.com
PHP version: 4.3.11
Register globals: 1
Server Local Time: 2006-12-21 15:11:14
MySQL: 4.0.27-max-log
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: Linux 2.4.21-27.ELsmp
Active plugins: wet_amazonassoc-0.1m, upm_date_archive-0.1.6m
Pre-flight check:
————————————
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
Some Textpattern files have been modified: /publish/log.php,
/publish.php
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
DefaultType application/x-httpd-php
#php_value register_globals 0
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule> ————————————Offline
#6 2006-12-21 22:45:46
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: XML Failing
Something on your server is sending a 302 redirect response. Textpattern 4.0.4 doesn’t do that.
Also, you’re running a modified version of Textpattern. We don’t know how your version works, so we can’t help you with it.
Alex
Offline
Re: XML Failing
I think I’ve got it working; there was some remainder of other blogging software I had considered using that (for reasons I still haven’t isolated) was throwing things off. The modifications, though, weren’t big ones, and now I’ve reset it and lost an important one. Does anyone know where I can find the modification necessary to stop the error message for raw PHP when in live mode? I’m planning on getting rid of all the raw PHP tags, but I haven’t taken the time to go through all my forms and find where it’s still left.
Offline
#8 2006-12-22 04:07:16
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: XML Failing
See your advanced admin prefs.
Offline
Re: XML Failing
That’s already checked as allowed, but I remember seeing somewhere when I first updated to 4.0.4 that there was a bug that left that error message on even in live mode, and offered a small modification to publish.php (I think) to fix it.
Offline
#10 2006-12-23 02:13:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: XML Failing
Ah yes. Was it this one?
Offline
Re: XML Failing
That’s the one! Thanks for your help.
Offline
Pages: 1