Forum
Deleted Category Sets Still Display Using "perch_categories"
Pretty much what it says in the title – when using the perch_categories
call, previously deleted Category Sets are still being displayed.
I was able to replicate this using the following steps:
- Create a new category set, ex: "Colours"
- Populate with a couple of categories, ex: "Red, Blue, Green"
- Add a
<?php perch_categories(); ?>
call totest.php
- Reload
test.php
to see all category sets, including the "Colours" set - Delete the "Colours" category set in admin
- Reload
test.php
- The freshly-deleted "Colours" set is still displayed (ex: "Red, Blue, Green" still listed)
Note that this applies to deleting entire sets -- when I delete a category within a set, it no longer displays.
Perhaps the individual categories within a set need to be deleted before deleting the set itself? I'm guessing that it's probably not intended to work this way (or the documentation missed this warning).
Anywho, at the moment I'm stuck with seeing these unwanted test categories, and it's too far into the project to start fresh. Should I be hunting out the unwanted set data via PHPmyAdmin to get rid of them "for good"? Can you point me into the right area, or provide another option?
Cheers!
For what it's worth:
One more update:
Looks like the deleted "sets" are no longer in the database tables (ie,
perch2_category_sets
), but the "categories" that were within the deleted sets are still present in the database tables (ie,perch2_categories
).I'll hold off simply deleting these unwanted records until I hear back, just in case there's a reason that I shouldn't. :-)
I'll log it.
Cheers. In my case, you think it's safe to simply delete the unwanted rows from the
perch2_categories
table manually?Yes, and this should be fixed now.
Just updated and was able to confirm 2.6.2 fixed the bug I'd encountered.
A solid A+ for response time! Cheers!