Hello. We are running a site and are trying to implement the Corrections plugin. It is not working.
It seems there are two parts to the problem:
PART ONE
When we test the '‘corrections’ link on our item page - when viewing our public site on a ‘normal’ browser (not logged into admin) - our server displays a “This page isn’t working virtualcollections.ced.berkeley.edu is currently unable to handle this request. HTTP ERROR 500”
Yet, When we test the ‘corrections’ link on our item page - when logged into omeka admin in the same browser - the corrections form appears.
PART TWO
When I fill out the corrections form with some test data, and hit submit, we get an omeka error. The error log reads as follows:
2017-05-03T17:04:21-06:00 ERR (3): exception ‘Omeka_Record_Exception’ with message ‘Cannot find an element with an ID of ‘4’!’ in /home/virtualcollect/public_html/application/models/Mixin/ElementText.php:312
Stack trace:
#0 /home/virtualcollect/public_html/application/models/Mixin/ElementText.php(508): Mixin_ElementText->getElementById(4)
#1 /home/virtualcollect/public_html/application/models/Mixin/ElementText.php(473): Mixin_ElementText->_getElementTextsToSaveFromPost(Object(ArrayObject))
#2 [internal function]: Mixin_ElementText->beforeSaveElements(Object(ArrayObject))
#3 /home/virtualcollect/public_html/application/libraries/Omeka/Record/AbstractRecord.php(251): call_user_func_array(Array, Array)
#4 /home/virtualcollect/public_html/application/libraries/Omeka/Record/AbstractRecord.php(210): Omeka_Record_AbstractRecord->delegateToMixins(‘beforeSaveEleme…’, Array)
#5 /home/virtualcollect/public_html/plugins/Corrections/models/CorrectionsCorrection.php(53): Omeka_Record_AbstractRecord->__call(‘beforeSaveEleme…’, Array)
#6 /home/virtualcollect/public_html/plugins/Corrections/models/CorrectionsCorrection.php(53): CorrectionsCorrection->beforeSaveElements(Object(ArrayObject))
#7 [internal function]: CorrectionsCorrection->beforeSave(Array)
#8 /home/virtualcollect/public_html/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#9 /home/virtualcollect/public_html/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks(‘beforeSave’, Array)
#10 /home/virtualcollect/public_html/application/libraries/Omeka/Controller/AbstractActionController.php(188): Omeka_Record_AbstractRecord->save(false)
#11 /home/virtualcollect/public_html/plugins/Corrections/controllers/IndexController.php(30): Omeka_Controller_AbstractActionController->addAction()
#12 /home/virtualcollect/public_html/application/libraries/Zend/Controller/Action.php(516): Corrections_IndexController->addAction()
#13 /home/virtualcollect/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘addAction’)
#14 /home/virtualcollect/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#15 /home/virtualcollect/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#16 /home/virtualcollect/public_html/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#17 /home/virtualcollect/public_html/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#18 /home/virtualcollect/public_html/index.php(23): Omeka_Application->run()
#19 {main}
I did not build this site and am not a server admin yet have been tasked with making this work.
Thank you for your help in pointing me towards a solution.