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

Search API can not load custom search settings #3111

Closed
jdarwood007 opened this issue Oct 27, 2015 · 0 comments
Closed

Search API can not load custom search settings #3111

jdarwood007 opened this issue Oct 27, 2015 · 0 comments

Comments

@jdarwood007
Copy link
Member

Notice: Undefined property: sphinxql_search::$searchSettings in /smf/Sources/ManageSearch.php on line 111

Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /smf/Sources/ManageSearch.php on line 111

This appears to be due to this:

    // Perhaps the search method wants to add some settings?
    require_once($sourcedir . '/Search.php');
    $searchAPI = findSearchAPI();
    if (is_callable(array($searchAPI, 'searchSettings')))
        call_user_func_array($searchAPI->searchSettings, array(&$config_vars));

Changing the last line to this makes it work:

        call_user_func_array(array($searchAPI, 'searchSettings'), array(&$config_vars));
Oldiesmann added a commit that referenced this issue May 2, 2016
! Make Search API actually work (Fixes #3111, #3112)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant