<p>Are you doing any caching on this site? If you haven't tried already, clear all the caches and run the query again in  Utilities > Clear Caches</p>

<p>I did some test searches, and it appeared to be the exact search term that's failing rather than content that's returned by that search term, which makes me wonder about a corrupt cache. </p>

CC BY-SA 4.0
2019-09-16T08:32:19.443Z
I cleared the cache and this didn't have any effect.
Dan Lee
CC BY-SA 4.0
2019-09-11T16:39:32.867Z
2019-09-11T16:39:32.867Z
neekster
<p>Did you check the craft logs under storage/logs/ ?
There are quite a few, try doing the following to find out in which logs new stuff is being written when trying your search:</p>
<h2>Linux</h2>
<ol>
<li>Check file-dates for all of your storage/logs files</li>
</ol>
<pre><code># go to storage/logs
cd storage/logs
# view all infos of all the files here
ls -al *
# example output
# -rw-r--r-- 1 your-user domain-user  8452020 Sep 11 11:34 web.log

</code></pre>
<ol>
<li><p>Now do a Request which reults in a faulty response.
and then</p>
</li>
<li><p>re-check the dates on last-changed for all your logs, once you find out in which it's being written</p>
</li>
<li><p>run <code>tail -f path/to/file.log</code> and then</p>
</li>
<li><p>watch the output of the console once you do <em>another</em> request.</p>
</li>
</ol>
<h1>Windows</h1>
<ol>
<li>Simply take a look at the last-changed date on all files through your Explorer</li>
<li>Do a faulty-response Request</li>
<li>Check the logs which were edited most recently and either</li>
<li>a: delete/move said log for it to generate a new one on the next request<br>
b: Simply take a look at the bottom lines and try to see at which point the output of your faulty-response request beings and take a look there.</li>
</ol>
<p>If you're able to resolve it through that output, that's great!
If not or you need any other type of help, feel free to respond here and/or open a new question.</p>

CC BY-SA 4.0
2019-09-16T08:41:02.410Z
Thanks for the details response - there doesn't seem to be anything showing in the logs.
Dan Lee
CC BY-SA 4.0
2019-09-20T09:36:09.883Z
Hmm well there's one other thing you can try, you could forcefully add `*searchterm*` asterisks around the search term so as to make craft search quite a bit more leniently (though likely also a decent bit less efficiently).


I tested it out myself and I got lots of results even for the 2nd failed search term you mention in your question. 


To reiterate basically:
`https://www.uk-cpi.com/search/results?q=Anaerobic` 
to
`https://www.uk-cpi.com/search/results?q=*Anaerobic*`


Search Docs: https://docs.craftcms.com/v3/searching.html#supported-syntaxes
Campiotti
CC BY-SA 4.0
2019-09-11T09:42:05.250Z
2019-09-11T09:42:05.250Z
2020-06-17T08:56:27.903Z
Campiotti
<p>We are getting a really odd result when doing certain site searches.</p>

<p>The search function loads a completely blank page when we search for the word Anaerobic; Looking at the source some of the template code is rendered but not all of it.</p>

<ul>
<li>Anaerobic – blank page</li>
<li>Anaerobic digestion – blank page</li>
<li>Anaerobic Digestion Development Centre – returns results fine</li>
</ul>

<p><strong>Failed Search Terms</strong></p>

<pre><code>https://www.uk-cpi.com/search/results?q=Anaerobic+digestion

https://www.uk-cpi.com/search/results?q=Anaerobic
</code></pre>

<p><strong>Working Search Terms</strong></p>

<pre><code>https://www.uk-cpi.com/search/results?q=Anaerobic+Digestion+Development+Centre
</code></pre>

<p>It seems to work fine locally - does anyone have any idea what could be causing the issue?</p>

<p>Thanks in advance,</p>

<p>Dan</p>

<search>
Blank Screen on Site Search for some Search Terms
# Blank Screen on Site Search for some Search Terms

(Asked by: username_0 on 2019-09-10)

We are getting a really odd result when doing certain site searches.
The search function loads a completely blank page when we search for the word Anaerobic; Looking at the source some of the template code is rendered but not all of it.

Anaerobic – blank page
Anaerobic digestion – blank page
Anaerobic Digestion Development Centre – returns results fine

Failed Search Terms
https://www.uk-cpi.com/search/results?q=Anaerobic+digestion

https://www.uk-cpi.com/search/results?q=Anaerobic

Working Search Terms
https://www.uk-cpi.com/search/results?q=Anaerobic+Digestion+Development+Centre

It seems to work fine locally - does anyone have any idea what could be causing the issue?
Thanks in advance,
Dan

**Tags:** search

---

## 2 answers

### Answer by username_1 on 2019-09-11. Score: 2

Are you doing any caching on this site? If you haven't tried already, clear all the caches and run the query again in Utilities > Clear Caches

I did some test searches, and it appeared to be the exact search term that's failing rather than content that's returned by that search term, which makes me wonder about a corrupt cache.

> **Comments:**
> **username_0**: I cleared the cache and this didn't have any effect.  

---

### Answer by username_2 on 2019-09-11. Score: 1

Did you check the craft logs under storage/logs/ ?
There are quite a few, try doing the following to find out in which logs new stuff is being written when trying your search:
Linux

Check file-dates for all of your storage/logs files

# go to storage/logs
cd storage/logs
# view all infos of all the files here
ls -al *
# example output
# -rw-r--r-- 1 your-user domain-user  8452020 Sep 11 11:34 web.log



Now do a Request which reults in a faulty response.
and then

re-check the dates on last-changed for all your logs, once you find out in which it's being written

run tail -f path/to/file.log and then

watch the output of the console once you do another request.


Windows

Simply take a look at the last-changed date on all files through your Explorer
Do a faulty-response Request
Check the logs which were edited most recently and either
a: delete/move said log for it to generate a new one on the next request
b: Simply take a look at the bottom lines and try to see at which point the output of your faulty-response request beings and take a look there.

If you're able to resolve it through that output, that's great!
If not or you need any other type of help, feel free to respond here and/or open a new question.

> **Comments:**
> **username_0**: Thanks for the details response - there doesn't seem to be anything showing in the logs.  
> **username_2**: Hmm well there's one other thing you can try, you could forcefully add `*searchterm*` asterisks around the search term so as to make craft search quite a bit more leniently (though likely also a decent bit less efficiently).   I tested it out myself and I got lots of results even for the 2nd failed search term you mention in your question.    To reiterate basically: `https://www.uk-cpi.com/search/results?q=Anaerobic`  to `https://www.uk-cpi.com/search/results?q=*Anaerobic*`   Search Docs: https://docs.craftcms.com/v3/searching.html#supported-syntaxes  

---

