Adding a new Item Type

I am trying to add an Item Type, I put in all of the elements and descriptions and then click Add Item type but then I get the error:

Cannot set element set ID: set named "Item Type Metadata" does not exist.

#0 /home/mdharves/public_html/application/models/Element.php(58): Element->_getElementSetId('Item Type Metad...')
#1 /home/mdharves/public_html/application/forms/ItemTypes.php(245): Element->setElementSet('Item Type Metad...')
#2 /home/mdharves/public_html/application/forms/ItemTypes.php(68): Omeka_Form_ItemTypes->_getElementInfosFromPost()
#3 /home/mdharves/public_html/application/controllers/ItemTypesController.php(27): Omeka_Form_ItemTypes->saveFromPost()
#4 /home/mdharves/public_html/application/libraries/Zend/Controller/Action.php(516): ItemTypesController->addAction()
#5 /home/mdharves/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#6 /home/mdharves/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /home/mdharves/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#8 /home/mdharves/public_html/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#9 /home/mdharves/public_html/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#10 /home/mdharves/public_html/admin/index.php(28): Omeka_Application->run()

I am logged in as the super user so there should not be a permission problem.

Also, if I go to Settings -> Item type elements, I get:

Customize the element descriptions below. To re-order the elements, edit a specific item type.

Notice: Trying to get property of non-object in /home/mdharves/public_html/admin/themes/default/settings/edit-item-type-elements.php on line 15

Fatal error: Call to a member function getElements() on a non-object in /home/mdharves/public_html/admin/themes/default/settings/edit-item-type-elements.php on line 18

set named "Item Type Metadata" does not exist

Is it possible that you manually deleted the Item Type Metadata element set from your database? In normal operation this set should always exist.

I have a table called omek_item_types and omek_item_types_elements is this what you mean or are you referring to a field within another table?

This would be a row in the element_sets table.

That fixed it! Thank you!!

What other tags are required to be in the element_sets table because I think I may have other ones missing.