Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-02-15 16:58:46

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

Ok, a little more debugging and I find that there is a query being done in publish.php around line 272, under the case ‘section_id_title’ statement.

That query turns out to be:
select name from `txp_section` where `name` like ‘textpattern’ limit 1

If I use PHPMyAdmin on my site and run that query it returns 0 rows (which is what happens in the Textpattern code as well). It looks like there isn’t anything in that table.

Any idea what should be in that table?

Offline

#17 2006-02-15 17:01:59

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

Oops, there actually is something in the txp_section table, just nothing with a name ‘textpattern’. There are 3 rows with names default, about and article.

Offline

#18 2006-02-15 17:51:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Config.php is not ok

There is no need to look in the database, there is nothing much there when you just installed, just some default page templates, forms, one article, and as you’ve seen three sections.

Textpattern also does not look for config.php in textpattern/textpattern/ if you’ve installed in the root of your domain.

So if the message is that config.php is not OK, then I suggest you start with the original config.php.default, modify that and replace the one that’s ‘not OK’ with it.

It probably would be even faster to redo the install completely from start.

Offline

#19 2006-02-15 19:20:58

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

I figured it out now.

I screwed up the loading of the files onto the server. So index.php and textpattern/index.php actually had the same contents. I removed textpattern/index.php and put up the proper index.php (from the textpattern directory on my home machine) and everything seems to be working now.

Well that was stupid, at least I got to learn a little bit about the guts of Textpattern. :)

Offline

#20 2006-02-15 19:37:57

rskar
Member
Registered: 2006-02-13
Posts: 25

Re: Config.php is not ok

Oh, and thanks for the help. The tip-off for me was that config.php should be in mysite/textpattern not mysite/textpattern/textpattern.

That made me think about whether I had the right index.php in the textpattern directory…

Offline

#21 2006-02-16 04:18:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Config.php is not ok

Glad you got it worked out, thanks for posting an update. :)

Offline

Board footer

Powered by FluxBB