Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2006-09-21 07:58:35

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

Hey;-) For good measure I’ll post the whole monty…

Textpattern version: 4.0.3 (r1788)
Last Update: 2006-09-07 09:53:56/2006-09-07 09:49:08
Document root: /home/oliverse/olivernielsen.com (/home/.jemma/oliverse/olivernielsen.com)
$path_to_site: /home/.jemma/oliverse/olivernielsen.com
Textpattern path: /home/.jemma/oliverse/olivernielsen.com/textpattern
Permanent link mode: section_title
Temporary directory path: /home/.jemma/oliverse/olivernielsen.com/textpattern/tmp
Site URL: www.olivernielsen.com
PHP version: 5.1.2
Server Local Time: 2006-09-21 00:56:15
MySQL: 4.1.16-standard-log
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22 OpenSSL/0.9.7e
PHP Server API: cgi-fcgi
rfc2616_headers:
Server OS: Linux 2.4.29-grsec+w+fhs6b+gr0501+nfs+a32+++p4+sata+c4+gr2b-v6.189
active_plugins: bas_flvplayer-0.2, rss_admin_db_manager-4.0.2, tru_tags-1.9m, zem_contact_reborn-4.0.3.17, glx_gravatar-4.0.1.2, zem_contact_lang-4.0.3.03, pap_contact_cleaner-0.1

Pre-flight check:
————————————
clean_url_untested
————————————

.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]

#This path should match the relative url of your Textpattern install
RewriteBase /home/.jemma/oliverse/olivernielsen.com/
#If you’re using a section other than “tag”, change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1

RewriteRule ^(.*) index.php </IfModule>

And I have created a section that uses a page called journal. In that page I have placed the tru_tags handler as described in the docs.

The tags-page works, and the links looks fine and dandy, clean like a snow from a clear blue sky, but clicking them gives a horrid 404 – true horror;-)

http://www.olivernielsen.com/tag

PS: What tags should I use to enclose code in, for it to be displayed correctly (as a code block) in this forum? It bugs me I can’t remember…

Last edited by raveoli (2006-09-21 10:47:24)

Offline

#134 2006-09-21 11:37:59

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

None of that seems likely to be the problem :-( There are two things that might be it, but I doubt it:

1) You’re using apache 1.3. I’ve never heard anyone confirm that those rewrite rules work with 1.3, although I’d be very surprised if they don’t.
2) The RewriteBase looks different here than it did before. I’m guessing that’s just because apache updated it and spit out the updated version, though.

My next step would be to turn up the rewrite log level and see what URL is being generated. That should help figure out the problem.

Offline

#135 2006-09-21 11:59:08

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

I’m on a shared server, Dreamhost, So I guess the rewritelog-stuff should go into the .htaccess file right?

I’ve tried putting the following in, right before your code snippet:

RewriteLog “/home/.jemma/oliverse/olivernielsen.com/rewrite.log”
RewriteLogLevel 3

But that gives me a 500 error, so I guess I’m putting it in the wrong place. Where should it go?

Offline

#136 2006-09-22 02:54:53

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

I’m not very savvy about rewrite rules, actually – I just pieced together enough to get tru_tags to work. I know that there’s issues with using them from .htaccess files, so it may be that the log levels don’t work from there. You don’t have to specify the rewrite log file, though – if you don’t, the messages just go to your normal log. You might try taking out that line and seeing what you get.

You might also try checking with the Dreamhost tech support – it may be some issue caused by a shared apache install.

I’m going to be offline for a few days. I’ll check back in next week. I hope you figure it out, though, before then!

Offline

#137 2006-09-25 23:15:42

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

I tried downloading a fresh official 4.0.3 as I figured it could be related to the latest 4.0.4 preview posted by Sencer, which I had installed, and pretty much forgotten about.

Rightfully so, now it works! I’m now the proud owner of a tag-cloud;) Now I just need a lot of content;)

Thank you for developing such a nice plugin. It fits what I need perfectly. And thanks for your help in solving my problems;-)

Offline

#138 2006-09-29 21:44:25

whick
Member
Registered: 2006-07-08
Posts: 12

Re: tru_tags: A tagging plugin for textpattern

Hey truist i love your plugin, but.. im having an 404 error when i try to put clean urls on. I’m probably making some stupid mistake because I don’t understand php really.

Textpattern version: 4.0.3 (r1188)
$path_to_site: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs
Path to textpattern: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern
link modus: section_title
open_basedir: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs:/tmp
tmp dir: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern/tmp
Site URL: whick.whichway.nl
PHP version: 4.3.11
Server: Apache/2.0.51 (Fedora)
Apache version: Apache/2.0.51 (Fedora)

.htaccess:
————————————
#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]

#This path should match the relative url of your Textpattern install
RewriteBase /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/

#If you’re using a section other than “tag”, change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1

RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

Thats what i’ve got am i doing something wrong?

Offline

#139 2006-10-22 04:30:04

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Hey whick – did you ever sort this out? I lost track of your question, and never answered it. The only thing that looks wrong to me depends on how you copied in your .htaccess file. If what’s showing there really does match the content of your .htaccess file, then your “RewriteBase” line needs to be something like “/” (e.g. the web-visible path on your server to your txp install) rather than the filesystem path.

Offline

#140 2006-10-22 21:33:26

whick
Member
Registered: 2006-07-08
Posts: 12

Re: tru_tags: A tagging plugin for textpattern

That’s it!
Thank you very much for your really nice plugin and help!

Offline

#141 2006-10-26 03:39:24

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: tru_tags: A tagging plugin for textpattern

So I’ve had the plugin working for awhile now, but just decided to enable clean URLs. I’m pretty sure I did as all the directions said, but whenever try to get a tag page with the clean url I get redirected to /tag/. Here’s what my apache log says:


146.57.92.43 - - [26/Oct/2006:03:34:24 +0000] "GET /tag/language/ HTTP/1.1" 301 20 "http://station11.net/tag/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3"
146.57.92.43 - - [26/Oct/2006:03:34:25 +0000] "GET /tag/ HTTP/1.1" 200 4155 "http://station11.net/tag/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3"

Here are the rewrite rules in .htaccess


# These are for the tru_tags plugin 
RewriteBase /
RewriteRule ^tag/([^/]+)$ /tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ /?s=tag&t=$1

I’m just installed v1.9, am on 4.0.4 for textpattern itself.

Offline

#142 2006-10-26 14:18:21

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

DirectoryIndex index.php

RewriteBase /

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

#If you're using a section other than "tag", change the following two rules accordingly
 RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
 RewriteRule ^tag/(.+)/$ ?s=tag&t=$1

 RewriteRule ^(.*) index.php
</IfModule>

I see different slashes in your example.

Last edited by merz1 (2006-10-26 14:20:57)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#143 2006-10-26 14:53:25

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: tru_tags: A tagging plugin for textpattern

Pasted in yours, still the same thing. The extra slashes in mine are redundant because there’s the RewriteBase /.

If I ad d an [R,L] onto the second line, I get redirected from /tag/wow/ to /?s=tag&t=wow, which is the right page. But it’s an http redirect, I don’t want that. Without the [R,L] shouldn’t the page just show up at the clean url?

Offline

#144 2006-10-26 15:07:55

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

Sorry misterk, I have no idea what is wrong on your server. Maybe you should run extended diagnostics and/or phpinfo?

I can only confirm hat the above .htaccess is working perfectly for me.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB