Yet another error (this time for deleting child categories)
Heres the problem,
You create a main ad category called PHONES.
You then setup 3 categories [Apple. Samsung. and Backberry] and you make their parent category PHONES.
Everything works fine, and when viewing the PHONE category the widgets on the sidebar will show REFINE RESULTS and SUB-CATEGORIES [Apple. Samsung. and Backberry].
But lets say you found that the subcategories were useless, because you can just insert a custom field to the form called BRAND and include it in advanced search.
So you do that, you remove the sub categories, and you move all the ads into the main PHONES category.
Now when looking at the phone listings, everything is there, and you can refine the results using the brand.
But, where the sub-category side bar should be, you now have this error:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /
wp-includes/taxonomy.php on line 2875
Warning: implode() [function.implode]: Invalid arguments passed in /
wp-includes/taxonomy.php on line 2875
Warning: Invalid argument supplied for foreach() in /
wp-includes/taxonomy.php on line 2882
Why is it doing that, and how can it be fixed.
Do we need to move all the ads to some uncategorized category, remove the entire category and then re-create it, and place the ads back, or is there an easier fix?
I have tried resaving permalinks, aswell as resaving the form used for that category
Note then when a sub category is added back the error goes away.
Therefor i assume the only solution is to delete the entire category and re-create it?