Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx search error #604

Open
champakakumara opened this issue Mar 20, 2023 · 3 comments
Open

Sphinx search error #604

champakakumara opened this issue Mar 20, 2023 · 3 comments
Assignees

Comments

@champakakumara
Copy link

I Installed Sphinx but when Search Candidates in opencats got below error,any idea about that?

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/opencats_index/lib/Search.php on line 2483

Fatal error: Uncaught ArgumentCountError: Too few arguments to function SearchByResumePager::__construct(), 6 passed in /var/www/html/opencats_index/modules/candidates/CandidatesUI.php on line 2088 and exactly 7 expected in /var/www/html/opencats_index/lib/Search.php:2199 Stack trace: #0 /var/www/html/opencats_index/modules/candidates/CandidatesUI.php(2088): SearchByResumePager->__construct(20, 1, '201', 'urban developme...', 'lastName', 'ASC') #1 /var/www/html/opencats_index/modules/candidates/CandidatesUI.php(145): CandidatesUI->onSearch() #2 /var/www/html/opencats_index/lib/ModuleUtility.php(79): CandidatesUI->handleRequest() #3 /var/www/html/opencats_index/index.php(272): ModuleUtility::loadModule('candidates') #4 {main} thrown in /var/www/html/opencats_index/lib/Search.php on line 2199

@RussH
Copy link
Member

RussH commented Mar 20, 2023

Hi @champakakumara can you confirm the version of opencats you've installed, and whether you followed the instructions in https://github.com/opencats/OpenCATS/tree/master/optional-updates/latest-sphinx-search ?

@champakakumara
Copy link
Author

/

Hi @champakakumara can you confirm the version of opencats you've installed, and whether you followed the instructions in https://github.com/opencats/OpenCATS/tree/master/optional-updates/latest-sphinx-search ?

yes I followed instructions, but I installed this on Dockerfile, because my opencats run on docker. opencats Version 0.9.6

@RussH
Copy link
Member

RussH commented Mar 20, 2023

Let me check that sphinx info - I realise I've not checked the sphinx guidance against PHP 7.2. As a workaround you may want to check the 'use search on shared hosting' that was made available by @dveos https://forums.opencats.org/viewtopic.php?t=907&hilit=searchd&start=60

@RussH RussH self-assigned this Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants