Gossamer Forum
Home : Products : Gossamer Links : Discussions :

cannot delete categories

Quote Reply
cannot delete categories
I am trying to delete a category, but I get the following error:
Code:
A fatal error has occured:

GT::SQL::Table (11174): Wrong argument passed to this subroutine. Usage: Usage: $cat->delete( id_number ). at /home/yoga/html/directory/admin/Links/Category.pm line 124.

Please enable debugging in setup for more details.

Just to see what is passed to the sub, I dumped the input to _plg_delete, and it says

$VAR = { 'ID' => '129' }; $VAR = { 'FatherID' => '129' };

Does anyone have an idea what this could be? I have switched off all plugin hooks.

Thanks in advance.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] cannot delete categories In reply to
OK, I found the bug.

I had at some point created a Category_tree table (through GT::SQL::Tree) but deleted it again. and at that point something must have gone wrong because the .def file of Category still had foreign keys relations in it which were not supposed to be there....

Ivan
-----
Iyengar Yoga Resources / GT Plugins