Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-08 22:38:19

lunaport
Member
From: Chicago, IL
Registered: 2004-03-03
Posts: 13
Website

txp shows same content at every URL, doesn't reflect database updates

txp suddenly always displays the same content, doesn’t reflect database updates to content or templates, debugging is turned on, but nothing shows in the source. Basically, nothing is working.

I’ve been running this setup with no problems for months. I was making updates today, so it’s not out of the realm of possiblilty that I broke something, but I can’t for the life of me figure out what’s going on.

Any suggestions are welcome.

These pages should all display different content an layout:

http://www.closerlook.com/company/ (the root of the install)
http://www.closerlook.com/company/news/
http://www.closerlook.com/company/careers/
http://www.closerlook.com/company/careers/healthcare_director_of_business_development/

I’ve reinstalled txp, no plugins are installed, the diagnostic reports no problems:

Textpattern version: 4.0.3 (r1188)
Last Update: 2006-01-13 19:22:02/2006-03-02 20:19:39
Document root: /var/www/closerlook/webroot
$path_to_site: /var/www/closerlook/webroot/company
Textpattern path: /var/www/closerlook/webroot/company/textpattern
Permanent link mode: section_title
Temporary directory path: /var/tmp
Site URL: www.closerlook.com/company
PHP version: 4.3.7
Register globals: 1
Server Local Time: 2006-09-08 17:31:53
MySQL: 4.0.20-log
Locale: C
Server: Apache/1.3.31
Apache version: Apache/1.3.31
PHP Server API: apache
Server OS: FreeBSD 5.2.1-RELEASE-p8

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:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

————————————

Offline

#2 2006-09-08 22:49:06

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: txp shows same content at every URL, doesn't reflect database updates

It depends on how you’re displaying content on those pages, but this is a common cause.


Alex

Offline

#3 2006-09-08 23:01:34

lunaport
Member
From: Chicago, IL
Registered: 2004-03-03
Posts: 13
Website

Re: txp shows same content at every URL, doesn't reflect database updates

Thank you for your suggestion. I don’t think that’s the case, though. The news page, for example, uses this template:
<code> <div id=“yui-main”> <div class=“yui-b”> <div class=“breadcrumbs”><a href=“http://feeds.feedburner.com/closerlook-news” title=“Subscribe to closerlook news via RSS/Atom” class=“rss”>news <abbr title=“Really Simple Syndication”>RSS</abbr></a> <a href=’/’>home</a> › <a href=’/company/’>company</a> › news</div>
<txp:if_article_list> <ol class=“news”>
<txp:article status=“live” form=“news_list” /> </ol>
<txp:else />

<txp:article status=“live” form=“news_article” />

</txp:if_article_list> </div> </div> <div class=“yui-b”>
<txp:article status=“sticky” form=“news_sticky” /> </div>
</code>

Last edited by lunaport (2006-09-08 23:16:47)

Offline

#4 2006-09-09 03:41:45

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: txp shows same content at every URL, doesn't reflect database updates

Could be that something has changed in your server config. If it works in messy URL mode, that’s probably the case.

This article makes some suggestions that should help narrow down the cause of the problem (specifically, checking the tag trace to see what the queries are doing)

Last edited by zem (2006-09-09 03:45:12)


Alex

Offline

#5 2006-09-09 14:54:10

lunaport
Member
From: Chicago, IL
Registered: 2004-03-03
Posts: 13
Website

Re: txp shows same content at every URL, doesn't reflect database updates

Thanks again, but:

1) Changing the production status has no effect on the output. No change made in admin (setting all articles to draft or hidden, deleting page templates, modifying forms) is reflected in the output. Valid section and article URLs, invalid URLs that should return 404, all return that same content. So I can’t even see a tag trace to help diagnose the problem. I can set it to messy URL mode, but it always shows the same page.

2) I have a completely separate, functioning copy of textpattern running at a different directory on the same server (http://www.closerlook.com/perspective/). So I’m reasonably sure that the problem is not with the server config.

Offline

#6 2006-09-10 03:19:06

lunaport
Member
From: Chicago, IL
Registered: 2004-03-03
Posts: 13
Website

Re: txp shows same content at every URL, doesn't reflect database updates

Hm. Well, I finally gave up and started from scratch with a fresh txp install, new tables, and manually migrated my content and presentation over. Everything works fine now. Very disconcerting.

Offline

#7 2006-09-10 22:56:31

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: txp shows same content at every URL, doesn't reflect database updates

Could have been a corrupt database or botched MySQL backup restore.


Alex

Offline

Board footer

Powered by FluxBB