Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: We need some testers please - Deleting Categories Problem
Installed the db plug-in and all seems fine with the table. In the mean time I’ve deleted a plug-in and deleted an image with out problem so “deletion” itself seems to work OK.
Tried the other db “path” but it had no effect so I’ve swapped it back again.
I wonder if I have a corrupted TXP file? Which one would cover this, /include/txp_category.php?
Last edited by thebombsite (2008-07-20 16:40:55)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
Yes, that’s the file that would cover this.
Offline
Re: We need some testers please - Deleting Categories Problem
OK. I’ve tried uploading a new copy of that file with no effect. To make matters worse I have exactly the same problem with thebombsite and a vanilla install I have running so whatever the problem is it must be common to all methinks.
I have a completely new SVN download so I’m now going to upload the whole file set in case it is some other file that is causing the problem. But I’m going to have something to eat first as my stomach thinks my throat has been cut. ;)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
As I mentioned I have a completely new SVN download via TortoiseSVN. I have removed all the files in my vanilla install and “dropped” all the database tables. I have upload the new TXP file set via FTP (Filezilla) and run through the set up process. Install was successful and I’ve logged in. I’ve gone to the categories tab, created a new “file” category and tried to delete it. No go I’m afraid. I’m suspecting some kind of bug now.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
Can anyone else reproduce this with a recent SVN copy of TXP?
Stuart, can you edit the topic title to indicate that we need more people testing this?
And can you post the MySQL and PHP version you have installed?
Last edited by ruud (2008-07-20 20:08:13)
Offline
Re: We need some testers please - Deleting Categories Problem
Title edited.
The new site I’m working on uses PHP 4.4.8 and MySQL 4.1.11-Debian_4sarge7.
Thebombsite, Just Another Theme and my “vanilla” install all use PHP 5.2.5 and MySQL 4.1.22-standard.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
Yeah… Had the same problem – svn’s install used. Deleted after some magic – renamed categories, i think, solved problem.
More info need?
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: We need some testers please - Deleting Categories Problem
Well I renamed the 3 original article categories for the new site but still can’t delete them. Have you tried creating any other category types and deleting them?
Last edited by thebombsite (2008-07-20 20:33:26)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
- does it have child categories?
- is it used by an article/file/image/link?
- can you post the corresponding row contents for that category from the txp_category table?
- can you delete a newly created category?
- is this a problem with all of the 4 category types or just with a few or one (please specify)?
- which SVN version are you using?
Last edited by ruud (2008-07-20 20:38:43)
Offline
Re: We need some testers please - Deleting Categories Problem
ruud,
Installed Textpattern version: 4.0.6 (r2946)
On XAMPP 1.6.7, WinXP
I signed on to the backend:
1. deleted Reciprocal Affection, got this message: Article categories deleted: 7.
2. created a category under File Categories, called it bert, deleted bert, go this message: File categories deleted: 14.
Seems fine to me.
Here’s a final dump:
"13";"root";"file";;"1";"2";"root"
"12";"root";"image";;"1";"4";"root"
"11";"root";"link";;"1";"4";"root"
"10";"root";"article";;"1";"6";"root"
"5";"hope-for-the-future";"article";"root";"2";"3";"Hope for the Future"
"6";"meaningful-labor";"article";"root";"4";"5";"Meaningful Labor"
"8";"textpattern";"link";"root";"2";"3";"Textpattern"
"9";"site-design";"image";"root";"2";"3";"Site Design"
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#26 2008-07-20 20:55:25
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: We need some testers please - Deleting Categories Problem
OK, I’ve had a go on my local MAMP install, PHP version: 5.2.5, MySQL: 5.0.41, Server: Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2. I downloaded everything from here – I suppose that’s the latest?!
- created a new category and deleted it = works
- created a few child cats and deleted them = works
- tried to delete the parent = does not work, as expected (thanks ruud :-)
- tried to delete any used category = does not work, as expected
So from all I can tell everything works as it should.
Offline
Re: We need some testers please - Deleting Categories Problem
I’ve installed the db plug-in to my “vanilla2 install. This is the table:-
id name type parent lft rgt title
13 root file 1 4 root
12 root image 1 4 root
11 root link 1 4 root
10 root article 1 8 root
5 hope-for-the-future article root 2 3 Hope for the Future
6 meaningful-labor article root 4 5 Meaningful Labor
7 test article root 6 7 Test
8 textpattern link root 2 3 Textpattern
9 site-design image root 2 3 Site Design
14 testing file root 2 3 Testing
id7 is one of the 3 original article categories renamed to “test” and is empty.
id14 is a new category created for “files” and is empty.
I can’t delete either of them.
I should point out that Bert and Martin are both testing on a local install – XAMPP or MAMPP – whereas all the sites I’m having problems with are on remote servers – so I shall go try that on my own XAMPP and see what happens.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
Just updated my txp install and installed newly test site:
- does it have child categories?
- no
- is it used by an article/file/image/link?
- no
- can you post the corresponding row contents for that category from the txp_category table?
CODE
13 root file 1 2 root
12 root image 1 4 root
11 root link 1 4 root
10 root article 1 8 root
5 hope-for-the-future article meaningful-labor 3 4 Hope for the Future
6 meaningful-labor article root 2 5 Meaningful Labor
7 reciprocal-affection article root 6 7 Reciprocal Affection
8 textpattern link root 2 3 Textpattern
9 site-design image root 2 3 Site Design
Image:

- can you delete a newly created category?
- yes
- is this a problem with all of the 4 category types or just with a few or one (please specify)?
- all preinstalled categories types (articles,link,image) cannot be deleted
- which SVN version are you using?
- the last at current time
What else? Renaming, moving over the tree of categories doesn’t help. I think, i solved it by this – is just renamed it in the category i need :)
I unchecked categories from articles\images\links but they aren’t deleted anyway. One article category after installed wasn’t assigned to any article – it cannot be deleted to.
Tried to edit one of categories, and…

Deleting steps:
- Created such hierarchy:
- Tried to delete parent
- Nothing happend – no message at the top
Last edited by the_ghost (2008-07-20 21:14:50)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: We need some testers please - Deleting Categories Problem
OK. I’ve just installed a new site on XAMPP and deleting categories works fine provided that they are empty.
So what’s the difference between a local install and a remote one? Can anyone please test this on a hosting server rather than XAMPP or MAMPP?
Victor – you shouldn’t be able to delete a “parent” category now or a category that contains articles/files/links/images.
Last edited by thebombsite (2008-07-20 21:30:47)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: We need some testers please - Deleting Categories Problem
thebombsite
Victor – you shouldn’t be able to delete a “parent” category now or a category that contains articles/files/links/images.
I thought there should appear warning message…
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline

