Default Sort Error

Hi all–

Hoping to use the Default Sort plugin to, well, change the default sort on browse. I’ve installed the plugin in two Omeka instances on on the same server/hosting environment and keep getting this error on the config page for one of the installs. It works fine with the other Omeka install:

Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /home/vfc/ Stack trace: #0 /home/vfc/ in_array(1, false) #1 /home/vfc/ include(’/home/vfc/vtfol…’) #2 /home/vfc/ DefaultSortPlugin->hookConfigForm(Array) #3 /home/vfc/ Omeka_Plugin_Broker->callHook(‘config_form’, Array, Object(Plugin)) #4 /home/vfc/ include(’/home/vfc/vtfol…’) #5 /home/vfc/ Omeka_View->_run(’/home/vfc/vtfol…’) #6 /home/vfc/ Zend_View_Abstract->render(NULL) #7 /home/vfc/ Zend_Controller_Action_Helper_ViewRenderer->renderScript(‘plugins/config…’, NULL) #8 /home/vfc/ Zend_Controller_Action_Helper_ViewRenderer->render() #9 /home/vfc/ Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #10 /home/vfc/ Zend_Controller_Action_HelperBroker->notifyPostDispatch() #11 /home/vfc/ Zend_Controller_Action->dispatch(‘configAction’) #12 /home/vfc/ Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #13 /home/vfc/ Zend_Controller_Front->dispatch() #14 /home/vfc/ Zend_Application_Bootstrap_Bootstrap->run() #15 /home/vfc/ Zend_Application->run() #16 /home/vfc/ Omeka_Application->run() #17 {main} thrown in /home/vfc/ on line 153

Any advice?

Thank you!

What version of PHP are you using on this server? Some problems like this only occur with very new versions of PHP (i.e., 8.0 and up).

Though either way this is probably something that the plugin developer would need to fix. You should probably report it on the plugin’s issue tracker.

Thank you! Sorry for the long-delayed replay. PHP 8.0.

Funny thing is that I have two other Omeka installs that use this plugin–both on the same server and one on the same domain–that aren’t having this issue.

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