Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
links to sections not returning pages
Internal links on my textpattern site aren’t going anywhere. When they’re clicked, the URL shows the correct section, but the page that is served is still the front page of the site.
I’ve been struggling to get textpattern working on this Netfirms hosted site for a few days now. This is my second installation, first on this host. The installation went fine, but when I set up the sections and added content I cannot get to them via www. I’ve since deleted the whole installation and re-installed with the same problem. I’ve tried both ‘messy url’ and .htaccess enabled options, but neither changes anything.
Currently I’ve only got 2 sections setup (“about” and “celebrate”), but neither work. You can view the ailing site here, the ‘about’ link should take you to a static page with company information on it.
I’ve been unable to find anthing similar in the forums and I’m at a loss for what to do next…any help would be very much appreciated!
Here is my Diagnostic info:
<code><p>
Textpattern version: 4.0.3 (r1188)
Last Update: 2006-10-06 00:18:55/2006-10-05 23:51:54
Document root: /*****/www
$path_to_site: /*****/www
Textpattern path: /*****/www/textpattern
Permanent link mode: section_title
upload_tmp_dir: /tmp
Temporary directory path: /*****/textpattern/tmp
Site URL: www.snoola.ca
PHP version: 4.3.10
Register globals: 1
Server Local Time: 2006-10-06 15:56:37
MySQL: 4.1.12
Locale: C
Server: Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
PHP Server API: cgi
Server OS: FreeBSD 4.10-RELEASE-p21
Pre-flight check:
————————————
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
————————————
.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>#php_value register_globals 0
————————————
</p></code>
And my tagtrace:
<code><p>
<!— Runtime: 0.2028 —>
<!— Query time: 0.181646 —>
<!— Queries: 12 —>
<!— Memory: no info available —>
<!— txp tag trace:
[SQL (0.038287): select name from `txp_lang` where lang=‘en-us’ limit 1]
[SQL (0.014490): select name, data from `txp_lang` where lang=‘en-us’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.026485): select name, code from `txp_plugin` where status=‘1’]
[SQL (0.001038): select * from `txp_section` where name = ‘default’ limit 1]
[SQL (0.001958): select user_html from `txp_page` where name=‘default’]
[Page: default]
<txp:css/>
<txp:output_form form=“nav_head” />
[SQL (0.001669): select form from `txp_form` where `name` = ‘nav_head’ limit 1]
<txp:ako_nav name=“home,celebrate,imagine,comfort” url=”/,/celebrate,/imagine,/comfort” headon=“0” />
<txp:article/>
[SQL (0.002684): select name from `txp_section` where on_frontpage != ‘1’]
[SQL (0.002393): select count(*) from `textpattern` where 1 and Status=‘4’ and Posted < now()and Section != ‘about’]
[SQL (0.003720): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status=‘4’ and Posted < now()and Section != ‘about’ order by Posted desc limit 0, 10]
[SQL (0.001024): select Form from `txp_form` where `name` = ‘default’ limit 1]
[Form: default]
[article 1]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:body/>
<txp:comments_invite wraptag=“p” />
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:older>
</txp:older>
<txp:newer>
</txp:newer>
</txp:if_article_list>
<txp:output_form form=“nav_footer” />
[SQL (0.002582): select form from `txp_form` where `name` = ‘nav_footer’ limit 1]
<txp:ako_nav name=“home,about,contact,mailinglist,orders,faq,testimonials,retail,links,legal” url=”/,/about,/contact,/mailinglist,/orders,/faq,/testimonials,/retail,/links,/legal” divid=“footnav” headon=“0” />
[ —- secondpass —- ]
—>
</p></code>
Last edited by brosevear (2006-10-06 20:13:48)
Offline
#2 2006-10-06 20:52:46
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: links to sections not returning pages
brosevear wrote:
I’ve tried both ‘messy url’ and .htaccess enabled options, but neither changes anything.
Clean url’s don’t seem to work, no matter what section you go to, you can see in the tag trace that it’s only displaying the front page:
[SQL (0.001038): select * from txp_section where name = 'default' limit 1]
Going to www.snoola.ca/?s=about however does go to the section page. It just doesn’t find any articles in that section, at least no articles with status ‘live’ and posted in the past.
Better read the FAQ.
Last edited by els (2006-10-06 21:41:50)
Offline
Re: links to sections not returning pages
Thanks so much Els – sometimes you just need a second set of eyes!
The only plugin I’ve got installed to this point is ako_nav, which wasn’t returing the right links when I switched into messy mode (it didn’t occur to me that I had to write the messy url code “?s=” into the tag until I saw your messy link…) Now at least my pages are serving and I can finish building the site.
I’d much prefer clean URLs though. I haven’t been able to find any posts about getting Textpattern to work on Netfirms, even though it’s noted in the FAQ, and on the Team Textpattern site as a viable host.
Immediate problem solved though – thanks!
Offline
#4 2006-10-07 01:27:30
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: links to sections not returning pages
I’d much prefer clean URLs though. I haven’t been able to find any posts about getting Textpattern to work on Netfirms, even though it’s noted in the FAQ, and on the Team Textpattern site as a viable host.
B: Netfirms tech support contacted us and assured us they’ve updated their servers to support clean URLs. According to them, no changes to .htaccess are necessary.
Raise a support ticket with Netfirms and see if they can tell you why your .htaccess file isn’t working properly. Post back more when you know more, so we can keep the FAQ updated. If they can’t help, I’ll give our Netfirms contact a nudge.
FYI, Textpattern 4.0.4 (available in svn and pre-release) includes a much better diagnostic test for clean URLs. It won’t tell you the cause of the problem, but it will confirm for sure whether or not they’re working.
Last edited by zem (2006-10-07 01:31:19)
Alex
Offline
Re: links to sections not returning pages
sure zem – i raised a support ticket (about 5 days ago now) and I’ll update this post if/when I ever hear back from them.
I tried phoning them before posting here, but I’m not highly technical so I don’t think I was able to describe the problem properly (kind of an amusing roundabout conversation, I’m sure). The tech I spoke with had no idea what TXP was, or what the issue might be. When he looked at the .htaccess file he said that he “didn’t see anything wrong with it, but that he didn’t think it was really affecting the URL problem”.
Regarding my .htaccess file – the format I posted above ran on the site (but didn’t enable me to use clean URLs). If I uncommented any of the other lines I got server errors. Hope this is useful. Textpattern is amazing!
Offline
#6 2007-03-02 10:45:48
- tomkeating
- New Member
- Registered: 2007-03-02
- Posts: 1
Re: links to sections not returning pages
I’m also using the ako_nav plugin this was a great help……
cheers!
Offline
Pages: 1