Error: Class 'Items' not found

29 views
Skip to first unread message

Sue Hemmens

unread,
Apr 15, 2012, 3:48:10 PM4/15/12
to Omeka Dev
$item = get_db()->getTable('Items')->find($itemId);
$item->delete();

gives

Fatal error: Class 'Items' not found in /var/www/html/ciunas/
application/libraries/Omeka/Db/Table.php on line 514

Help!!
(at the risk of a bash on the head from zerocrates...)

thanks in advance, and promises of pints of Guinness.

Jeremy Boggs

unread,
Apr 15, 2012, 3:54:28 PM4/15/12
to omek...@googlegroups.com
It should be 'Item' not 'Items' in your getTable.

Best,
Jeremy

> --
> You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.
>

Sue Hemmens

unread,
Apr 15, 2012, 3:57:22 PM4/15/12
to omek...@googlegroups.com
ah!  Thanks so much, I copied the code off an old post and have been staring at it for ages! I knew it would be something stupid...
pints your way :)
Reply all
Reply to author
Forward
0 new messages