[Resolved] no search results

Home Forums Support [Resolved] no search results

Home Forums Support no search results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #882449
    Top-Fit-Gesund

    Hi,
    all search like “https://www.expertenrat-adhs.de/?s=adhs” results in a “not found”-page. I ex- & included all plugins without any success (no Gutenberg editor), yet changing the theme to “Twenty Fifteen” finally showed the wanted search results. The strange thing is, another website with GP and all plugins except WP-Members works fine. Do you have any idea, where to start with the search for the error?
    Thanks in advance,
    Rainer

    BTW again: GP is the theme I prefer most. Great work!

    GeneratePress 2.2.2
    #882573
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Do you have a child theme activated? If so, any custom functions/template files in the child theme?

    #882745
    Top-Fit-Gesund

    Hi Tom,
    no child theme present or activated…
    Regards, Rainer

    #883362
    Tom
    Lead Developer
    Lead Developer

    There must be a difference between the working and non-working site. GP itself can’t break your URLs, so it’s likely a plugin, function or server configuration error.

    Maybe some of the core GP files have been altered? You can try re-installing the theme?

    #883514
    Top-Fit-Gesund

    Hi Tom,
    yes finally this remark was the solution. From many changes in functions.php there was this forgotten piece of code:
    if (is_search()) {
    $query->is_search = false;
    $query->query_vars = false;
    $query->query = false;
    if ($error == true) {$query->is_404 = true;}
    }
    }
    add_action(‘parse_query’, ‘guru20_filter_query’);
    add_filter(‘get_search_form’, create_function(‘$a’, “return null;”));
    oh, oh, oh… but now the search can be activated!
    Thanks, Rainer

    #883732
    Tom
    Lead Developer
    Lead Developer

    Glad you found the problem! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.