Skip to content

400 error when search box includes just one set of quotes " #137

@AmandaUCSC

Description

@AmandaUCSC

OK, here's a weird problem. When I try to search using two set of quotes " " or "" or "words" I have no problems. But I forgot a set by accident earlier and wrote "words - which led to this error:

Apache_Solr_HttpTransportException
'400' Status: Bad Request

exception 'Apache_Solr_HttpTransportException' with message ''400' Status: Bad Request' in /var/www/vhosts/[domain]/omeka/plugins/SolrSearch/lib/solr-php-client/Service.php:338

Stack trace:
#0 /var/www/vhosts/[domain]/omeka/plugins/SolrSearch/lib/solr-php-client/Service.php(1176): Apache_Solr_Service->_sendRawGet('http://85.214.2...')
#1 /var/www/vhosts/[domain]/omeka/plugins/SolrSearch/controllers/ResultsController.php(100): Apache_Solr_Service->search('" AND public:"t...', 0, '25', Array)
#2 /var/www/vhosts/[domain]/omeka/plugins/SolrSearch/controllers/ResultsController.php(65): SolrSearch_ResultsController->_search(0, '25', true)
#3 /var/www/vhosts/[domain]/omeka/application/libraries/Zend/Controller/Action.php(516): SolrSearch_ResultsController->indexAction()
#4 /var/www/vhosts/[domain]/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#5 /var/www/vhosts/[domain]/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /var/www/vhosts/[domain]/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#7 /var/www/vhosts/[domain]/omeka/application/libraries/Zend/Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
#8 /var/www/vhosts/[domain]/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#9 /var/www/vhosts/[domain]/omeka/index.php(23): Omeka_Application->run()
#10 {main}

I have not changed anything. Per the other message I posted on here last week, this is the code I was given for the latest version of the plug-in. I simply overwrote the old version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions