Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-01 17:05:05

Michel
New Member
From: Mülheim/Germany
Registered: 2007-02-10
Posts: 6
Website

Categories doesn't work

Hi,

I got a problem with my categories. If I want to create a category (image, link, article, file), the new category is written into the database, but it doesn’t appear on the category panel. I also cannot select a category when editing/creating an article. The second category also don’t work.

My textpattern version is 4.0.4. Do you need more info?

Oh, could it be a problem with an previous Wordpress Import?

Last edited by Michel (2007-03-02 13:52:07)

Offline

#2 2007-03-01 20:19:12

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

Re: Categories doesn't work

Possible. What’s happened is that your categories table has become… “confused” – the categories are actually there, just not showing up.

If you can dump the txp_category table (from say, phpMyAdmin) data (don’t need the structure) I can fix it for you in a jiffy.

Offline

#3 2007-03-01 20:21:52

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

Re: Categories doesn't work

It’s probably due to inconsistencies in your category table. That could be caused by a buggy import script, or by something else that has modified the category table.

Double check that there are 4 categories with the name name='root', parent='', lft=1, one for each type (article, link, image, file).


Alex

Offline

#4 2007-03-02 13:51:20

Michel
New Member
From: Mülheim/Germany
Registered: 2007-02-10
Posts: 6
Website

Re: Categories doesn't work

This is my txp_category now (after deleting everything and editing it zem’s way): Screenshot of txp_category
And this is my textpattern table: Screenshot textpattern Table

Could the names categories in the textpattern cause the problem?

Offline

#5 2007-03-02 17:05:14

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

Re: Categories doesn't work

It’s because lft and rgt columns have zeros.

Offline

#6 2007-03-02 18:18:14

Michel
New Member
From: Mülheim/Germany
Registered: 2007-02-10
Posts: 6
Website

Re: Categories doesn't work

Oh, that’s my fault. I read lft has to be “”. Sorry.

So, I changed it to lft=“1” and its working! :D Thank you sooo much!

Offline

Board footer

Powered by FluxBB