Getting an error when I activate Item Relations 2.0 [omeka 2.1.1]

Hi Folks,

I'me getting the following error when I attempt to view an item record in admin view after installing and activating the new 2.x compatible Item Relations plugin 2.0 (released on the 6th Feb 2014)

Any suggestions/thoughts?


Omeka has encountered an error

Zend_Db_Statement_Mysqli_Exception
Mysqli prepare error: Table 'devwyndhistory.omeka_item_relations_relations' doesn't exist

#0 /home/devwyndhistory/public_html/application/libraries/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT `item_re...')
#1 /home/devwyndhistory/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT `item_re...')
#2 /home/devwyndhistory/public_html/application/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT `item_re...')
#3 [internal function]: Zend_Db_Adapter_Abstract->query(Object(Omeka_Db_Select), Array)
#4 /home/devwyndhistory/public_html/application/libraries/Omeka/Db.php(79): call_user_func_array(Array, Array)
#5 /home/devwyndhistory/public_html/application/libraries/Omeka/Db/Table.php(590): Omeka_Db->__call('query', Array)
#6 /home/devwyndhistory/public_html/application/libraries/Omeka/Db/Table.php(590): Omeka_Db->query(Object(Omeka_Db_Select), Array)
#7 /home/devwyndhistory/public_html/plugins/ItemRelations/models/Table/ItemRelationsRelation.php(52): Omeka_Db_Table->fetchObjects(Object(Omeka_Db_Select))
#8 /home/devwyndhistory/public_html/plugins/ItemRelations/ItemRelationsPlugin.php(445): Table_ItemRelationsRelation->findBySubjectItemId(259)
#9 /home/devwyndhistory/public_html/plugins/ItemRelations/ItemRelationsPlugin.php(261): ItemRelationsPlugin::prepareSubjectRelations(Object(Item))
#10 [internal function]: ItemRelationsPlugin->hookAdminItemsShowSidebar(Array)
#11 /home/devwyndhistory/public_html/application/libraries/Omeka/Plugin/Broker.php(157): call_user_func(Array, Array)
#12 /home/devwyndhistory/public_html/application/libraries/globals.php(188): Omeka_Plugin_Broker->callHook('admin_items_sho...', Array)
#13 /home/devwyndhistory/public_html/admin/themes/default/items/show.php(99): fire_plugin_hook('admin_items_sho...', Array)
#14 /home/devwyndhistory/public_html/application/libraries/Omeka/View.php(117): include('/home/devwyndhi...')
#15 /home/devwyndhistory/public_html/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/home/devwyndhi...')
#16 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render('items/show.php')
#17 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('items/show.php', NULL)
#18 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()
#19 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#20 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#21 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('showAction')
#22 /home/devwyndhistory/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/devwyndhistory/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#24 /home/devwyndhistory/public_html/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/devwyndhistory/public_html/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#26 /home/devwyndhistory/public_html/admin/index.php(28): Omeka_Application->run()
#27 {main}

First guess is that something went wrong during the installation and not all the tables were created. Maybe try uninstalling and reinstalling ItemRelations as a first try.

Update: sorry. That is a bug in the upgrade we're fixing.

No worries, thanks Patrick

Tom,

We just uploaded a new version. Upgrading to that should resolve the issue.