Site logo

Archived topic

no search results

5 replies · Started by Top-Fit-Gesund on April 28, 2019

Viewing posts 1–6 of 6

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!

Hi there,

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

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

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?

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[s] = false;
$query->query[s] = 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

Glad you found the problem! :)

This archived topic is closed to new replies.