Omeka has encountered an error

InvalidArgumentException

Invalid record passed to recordMetadata.

exception 'InvalidArgumentException' with message 'Invalid record passed to recordMetadata.' in /var/www/omeka-2.3.1/application/views/helpers/Metadata.php:57
Stack trace:
#0 [internal function]: Omeka_View_Helper_Metadata->metadata(NULL, Array, Array)
#1 /var/www/omeka-2.3.1/application/libraries/Zend/View/Abstract.php(350): call_user_func_array(Array, Array)
#2 /var/www/omeka-2.3.1/application/libraries/globals.php(2004): Zend_View_Abstract->__call('metadata', Array)
#3 /var/www/omeka-2.3.1/application/libraries/globals.php(2004): Omeka_View->metadata(NULL, Array, Array)
#4 /var/www/omeka-2.3.1/plugins/MOASNiceUrls/libraries/MOASNiceUrls/Strategy/Collection.php(23): metadata(NULL, Array)
#5 /var/www/omeka-2.3.1/plugins/MOASNiceUrls/libraries/MOASNiceUrls/Strategy/Collection.php(18): MOASNiceUrls_Strategy_Collection->buildQuery(NULL)
#6 /var/www/omeka-2.3.1/plugins/MOASNiceUrls/libraries/MOASNiceUrls/UrlContext.php(32): MOASNiceUrls_Strategy_Collection->getUrl(Object(ElementText))
#7 /var/www/omeka-2.3.1/plugins/MOASNiceUrls/controllers/RedirectController.php(20): MOASNiceUrls_UrlContext->getUrl(Object(ElementText))
#8 /var/www/omeka-2.3.1/application/libraries/Zend/Controller/Action.php(516): MOASNiceUrls_RedirectController->redirectAction()
#9 /var/www/omeka-2.3.1/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('redirectAction')
#10 /var/www/omeka-2.3.1/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/omeka-2.3.1/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#12 /var/www/omeka-2.3.1/application/libraries/Zend/Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/omeka-2.3.1/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#14 /var/www/omeka-2.3.1/index.php(23): Omeka_Application->run()
#15 {main}