- Affected version
- 2.3.12
Hello,
We are running into a problem where a random-seeming subset of our users always get errors when using search. I'm personally not able to reproduce the error.
We do NOT have Enhanced Search enabled.
I've searched for this bug here, but I was unable to find a match.
Error logs:
TypeError: XF\Search\Query\Query::withPermissionConstraints(): Argument #2 ($constraints) must be of type array, false given, called in /home/username/public_html/src/XF/Search/Search.php on line 403
src/XF/Search/Query/Query.php:377
Stack trace:
#0 src/XF/Search/Search.php(403): XF\Search\Query\Query->withPermissionConstraints(Array, false)
#1 src/XF/Search/Search.php(373): XF\Search\Search->applyPermissionConstraints(Object(XF\Search\Query\KeywordQuery))
#2 src/XF/Search/Search.php(341): XF\Search\Search->executeSearch(Object(XF\Search\Query\KeywordQuery), 200, Object(Closure), true)
#3 src/XF/Repository/SearchRepository.php(26): XF\Search\Search->search(Object(XF\Search\Query\KeywordQuery))
#4 src/XF/Pub/Controller/SearchController.php(480): XF\Repository\SearchRepository->runSearch(Object(XF\Search\Query\KeywordQuery), Array, true)
#5 src/XF/Pub/Controller/SearchController.php(101): XF\Pub\Controller\SearchController->runSearch(Object(XF\Search\Query\KeywordQuery), Array)
#6 src/XF/Mvc/Dispatcher.php(364): XF\Pub\Controller\SearchController->actionSearch(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(266): XF\Mvc\Dispatcher->dispatchClass('XF:Search', 'Search', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\Search), NULL)
#8 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\Search), NULL)
#9 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2830): XF\Mvc\Dispatcher->run()
#11 src/XF.php(850): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state:
array(4) {
["url"] => string(14) "/search/search"
["referrer"] => string(57) "https://www.domainname.com/forums/threadname.22/page-2"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["keywords"] => string(7) "raccoon"
["constraints"] => string(0) ""
["c"] => array(1) {
["users"] => string(0) ""
}
["_xfToken"] => string(8) "********"
}
}
I'm unsure if this is relevant, but outside of the Xenforo Gallery and Xenforo Resource add-ons, we do have a number of other add-ons enabled, namely VaultWiki, Classifieds, App for Cloudflare, and a theme.
Please let me know if there's any other information that's needed to help resolve this problem.
Thank you!
We are running into a problem where a random-seeming subset of our users always get errors when using search. I'm personally not able to reproduce the error.
We do NOT have Enhanced Search enabled.
I've searched for this bug here, but I was unable to find a match.
Error logs:
TypeError: XF\Search\Query\Query::withPermissionConstraints(): Argument #2 ($constraints) must be of type array, false given, called in /home/username/public_html/src/XF/Search/Search.php on line 403
src/XF/Search/Query/Query.php:377
Stack trace:
#0 src/XF/Search/Search.php(403): XF\Search\Query\Query->withPermissionConstraints(Array, false)
#1 src/XF/Search/Search.php(373): XF\Search\Search->applyPermissionConstraints(Object(XF\Search\Query\KeywordQuery))
#2 src/XF/Search/Search.php(341): XF\Search\Search->executeSearch(Object(XF\Search\Query\KeywordQuery), 200, Object(Closure), true)
#3 src/XF/Repository/SearchRepository.php(26): XF\Search\Search->search(Object(XF\Search\Query\KeywordQuery))
#4 src/XF/Pub/Controller/SearchController.php(480): XF\Repository\SearchRepository->runSearch(Object(XF\Search\Query\KeywordQuery), Array, true)
#5 src/XF/Pub/Controller/SearchController.php(101): XF\Pub\Controller\SearchController->runSearch(Object(XF\Search\Query\KeywordQuery), Array)
#6 src/XF/Mvc/Dispatcher.php(364): XF\Pub\Controller\SearchController->actionSearch(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(266): XF\Mvc\Dispatcher->dispatchClass('XF:Search', 'Search', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\Search), NULL)
#8 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\Search), NULL)
#9 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2830): XF\Mvc\Dispatcher->run()
#11 src/XF.php(850): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state:
array(4) {
["url"] => string(14) "/search/search"
["referrer"] => string(57) "https://www.domainname.com/forums/threadname.22/page-2"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["keywords"] => string(7) "raccoon"
["constraints"] => string(0) ""
["c"] => array(1) {
["users"] => string(0) ""
}
["_xfToken"] => string(8) "********"
}
}
I'm unsure if this is relevant, but outside of the Xenforo Gallery and Xenforo Resource add-ons, we do have a number of other add-ons enabled, namely VaultWiki, Classifieds, App for Cloudflare, and a theme.
Please let me know if there's any other information that's needed to help resolve this problem.
Thank you!