LinuxMCE Forums

Archive => Archive => Pluto Main General Issues => Topic started by: archived on November 01, 2005, 07:41:57 pm

Title: Cannot delete device template category
Post by: archived on November 01, 2005, 07:41:57 pm
I accidently added a device template category instead of adding a new model. I get the following error when I attempt to delete it.

Quote
Fatal error: Call to undefined function: deletedevicecategory() in /var/www/pluto-admin/include/utils.inc.php on line 3795


How do I delete it?
Title: Cannot delete device template category
Post by: archived on November 02, 2005, 08:45:39 am
Fixed, in an older release the device category was deleted by opening an popup, and the function wasn't in "utils.inc.php" library, but inside of that popup.

To remove the device category, you can either wait for next release, which will have the fix for this issue, or you can go to database and run a sql query
Code: [Select]
DELETE FROM DeviceCategory WHERE PK_DeviceCategory=X;
with X the ID of category who is displayed next to category name in Device Templates page.
Title: Cannot delete device template category
Post by: archived on November 03, 2005, 10:32:57 pm
The sql delete worked. Thanks.