Specific keywords are returning a blank page upon search form submission
Hello everyone,
I'm pretty new to Low Search. I'm trying to resolve an issue for a client where two (2) specific keywords are returning a completely blank page after the search form is submitted. The keywords are "lake" and "murray". The search form consists of only one (1) text input box and one (1) submit button.
EDIT: It looks like it won't let me post the code here :(
Thanks for any help you can provide!
Replies
Low 4 Mar 2014 19:25
hi James. What are your EE, LS and PHP versions? Also, can you try and share your Form and Results tag? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.
And what is the URI for a search result that causes the blank page?
James Bozard 4 Mar 2014 19:39
Hey thanks for the quick reply. Here's the information you requested.
EE version: 2.7.2
Low Search version: 3.0.1
PHP version on server: 5.3.24
You can take a look at our code here: http://pastie.org/8862738
Here's the URI that I get when searching for "lake":
http://www.lakemurraycountry.com/sear...
And here's the URI that I get when searching for "murray":
http://www.lakemurraycountry.com/sear...
Thanks again!
Low 4 Mar 2014 19:44
Although I don't think it's related, I do recommend upgrading Low Search to the latest version and see if that helps.
Other than that, I'm thinking it might be a malformed conditional that might be the problem. You mentioned "[code for individual result - omitted to simplify]". Can you post that code for me to take a look at?
James Bozard 4 Mar 2014 19:48
Sure thing. Sorry, I shouldn't have assumed that it wouldn't be relevant. This paste is now updated with the remaining code:
http://pastie.org/8862791
Low 4 Mar 2014 19:53
Okay, there's a big conditional statement on line #48 of http://pastie.org/8862791
If you remove that line (or use {!-- --} to comment it out), does the problem still occur? If so, I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
James Bozard 4 Mar 2014 20:04
I replaced the EE code within the href attribute on line 48 with "#", but the problem persists. Unfortunately I won't be able to give you access to the backend. I should also add that this code was written by another developer who is currently on vacation, and he will probably be able to fix it when he gets back.
Unless you have any other suggestions, I guess we can leave this one alone for now.
Low 4 Mar 2014 20:08
Are you logged in as SuperAdmin? And you're not seeing a php error?
A white screen could also mean a lack of memory. Can you try and increase the php memory in the .htaccess file? For example:
php_value memory_limit 128M
(or any number that is higher than your current amount)James Bozard 4 Mar 2014 20:26
I am logged in as a Super Admin. The .htaccess file associated with this site doesn't contain a line with php_value memory_limit, so I don't think there's a memory issue.
It's odd because all other search queries work great.
Low 4 Mar 2014 20:31
I'm thinking there's a certain entry that's causing the issue. If you want to test further, I'd strip the Results code clean so it only contains an {entry_id} and {title} variable, and then check if the issue persists. Then bit by bit add the original code again to see where it fails.
Tricky for me to check without access, so you can leave it at this, or try and debug yourself. There should be an error somewhere -- perhaps in a server log...