Search fails, error message

I’ve been reloading images into a collection and tried searching in the live interface for the first time and got this error message:

Fatal error : Uncaught TypeError: Argument 2 passed to set_current_record() must be an instance of Omeka_Record_AbstractRecord, null given, called in /home/gallery1/public_html/application/views/scripts/search/index.php on line 22 and defined in /home/gallery1/public_html/application/libraries/globals.php:1845 Stack trace: #0 /home/gallery1/public_html/application/views/scripts/search/index.php(22): set_current_record(‘Item’, NULL) #1 /home/gallery1/public_html/application/libraries/Omeka/View.php(114): include(’/home/gallery1/…’) #2 /home/gallery1/public_html/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run(’/home/gallery1/…’) #3 /home/gallery1/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL) #4 /home/gallery1/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript(‘search/index.ph…’, NULL) #5 /home/gallery1/public_html/application/libraries in /home/gallery1/public_html/application/libraries/globals.php on line 1845

I’m running 2.7.1 on Reclaim. This is way beyond me to troubleshoot.

In Settings -> Search there’s an “Index Records” button. Try clicking that and seeing if it resolves this problem.

This topic was automatically closed after 250 days. New replies are no longer allowed.