Fatal error when searching

Running version 3.1 on Reclaim, with the OHMS Philly theme integration.

The error does not always occur, but the same line (globals.php - 1861) appears in all the failed searches.

thanks!

Fatal error : Uncaught TypeError: Argument 2 passed to set_current_record() must be an instance of Omeka_Record_AbstractRecord, null given, called in /home/oberlinc/africatown.oberlincollegelibrary.org/application/views/scripts/search/index.php on line 22 and defined in /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/globals.php:1861 Stack trace: #0 /home/oberlinc/africatown.oberlincollegelibrary.org/application/views/scripts/search/index.php(22): set_current_record(‘Exhibit’, NULL) #1 /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/Omeka/View.php(114): include(‘/home/oberlinc/…’) #2 /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/Zend/View/Abstract.php(889): Omeka_View->_run(‘/home/oberlinc/…’) #3 /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL) #4 /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/Zend/Contro in /home/oberlinc/africatown.oberlincollegelibrary.org/application/libraries/globals.php on line 1861

This is an error related to trying to show an Exhibit as a search result… your site seems to have no public exhibits currently, but I assume you have one or more private ones?

The first thing to try is to recreate the search index, using the “Index Records” button in Settings → Search.

Thanks! Indexing did the trick.