Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Pages: 1