Page 1 of 1

Search returns nothing, not even an error (1.9.4.1) [SOLVED]

Posted: Fri Apr 08, 2011 1:14 pm
by Weon
Hi there

I've just been through the long and arduous process of upgrading a client site from 1.5.1 to 1.9.4.1. Most things went smoothly, the backups I made weren't needed (which is always nice) and once I had upgraded the CGSimpleSmarty module, my custom layouts worked nicely again!

However, one thing I have just noticed is that the search functionality no longer works. If you look at http://cirenchiro.marblecake.co.uk/ and try to search you'll get nothing returned, not even an error message (the heading and "You should find something there that fits the bill." are part of the search results template but I get the same problem if I simply use {search}).

I have tried uninstalling and reinstalling the module.

I have tried resetting it to the defaults.

I have re-downloaded the full 1.9.4.1 release and replaced the Search module files (version 1.6.10 before and after doing this).

None of this has helped.

I have searched through the forums but can't seem to find an answer or anyone else having this issue.

System info dump is below.

So, can anyone point me in the right direction?

Cheers

Owen

----------------------------------------------

Cms Version: 1.9.4.1

Installed Modules:

CMSMailer: 2.0.1
FileManager: 1.1.0
MenuManager: 1.7.6
ModuleManager: 1.4.2
News: 2.11.2
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.6.10
ThemeManager: 1.1.4
TinyMCE: 2.8.4
CGSimpleSmarty: 1.4.8
FormBuilder: 0.5.5

Config Information:

php_memory_limit:
process_whole_template: true
output_compression: false
max_upload_size: 2000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: false

Php Information:

phpversion: 5.2.9
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 128M
max_execution_time: 180
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 105M
upload_max_filesize: 100M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)

Server Information:

Server Api: cgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.92

----------------------------------------------

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Mon Apr 11, 2011 1:04 pm
by Weon
OK, I've been doing some more poking around trying to work this out but I'm not really any the wiser.

I tried reverting to Search v1.5.2 (the last known version that worked) but to no avail.

I have checked the .htaccess and config.php files to see if there is anything in there causing issues.

In my system info there are these functions listed under disable_functions in PHP (disable_functions) - I have no real idea if these will make any difference but list them here for completeness:

dl, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, escape, shellcmd, escapeshellarg, shell-exec, crack_check, crack_closedict, crack_getlastmessage, crack_opendict, psockopen, php_u, symlink, ini_restore, posix_getpwuid, pfsockopen

I'm pretty stumped, truth be told. The fact I have no error messages (and nothing in the error_log) is really unhelpful!

Please, can anyone help?

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Mon Apr 11, 2011 2:16 pm
by Weon
Right, I've just done a clean install on a different subdomain - http://cmsms.marblecake.co.uk/ - and the search works fine so it's obviously something that's got corrupted somehow.

I've run the installer again on the original site and still no joy.

The Checksum shows all files are correct.

Short of porting all the content from the original install to the new one, I'm running out of options!

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Mon Apr 11, 2011 5:12 pm
by Weon
OK, at http://cmsms.marblecake.co.uk/ I've been going through running every release update from 1.5.1 and when I go from 1.6.4 to 1.6.5 the search stops working. (search version is 1.6.1).

Any ideas?

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Tue Apr 12, 2011 4:40 am
by fredp
Hi,
Have you searched the forum? I just did a quick search and found more than one thread that sounds similar to your issue. Here's just one as an example...
http://forum.cmsmadesimple.org/viewtopic.php?f=8&t=38230

Hope this helps,
fredp

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Tue Apr 12, 2011 6:21 am
by Rolf
Hello Weon,

did you try to reset the search template to the default values?
Search module is working fine on my sites on 1.9.4.1...

grtz. Rolf

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Tue Apr 12, 2011 2:14 pm
by Weon
OK, here we go...

Rolf - I have tried resetting the search to defaults for both the results AND the input form. I have also tried reindexing all content. (see my first post)

fredp - Sorry, I should've said that I have spent a good few hours trawling the forum for details but have turned up nothing. However, I hadn't seen the thread you found! Maybe I need to change my search techniques. I tried all variations I could think of for the problem but only got unrelated results. What format search string are you using? Anyway, I digress...

I looked at the link you found and I think it is a different issue. Upon submission of the search form there is no indication that it's even attempting the search (that thread indicated that it was returning incomplete results). It's not that it's returning zero results, it's that it appears to not even be processing the search request and therefore just displays the Search Results page template with the dummy content that would normally be replaced with the search results.

However, I have trawled through the link you found and I have made the changes to .htaccess it suggests - this made no difference to either the site version that is running on 1.6.5 (http://cmsms.marblecake.co.uk/) or the one running 1.9.4.1. (http://cirenchiro.marblecake.co.uk/)

This is so frustrating - if the search simply returned a results count of zero then at least I would know it's processing the request. However the fact that the dummy code is still displayed means that I have no way of tracking the issue (in my limited knowledge).

Any ideas guys?

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Wed Apr 13, 2011 3:17 am
by Dr.CSS
Most likely it is from those PHP (disable_functions) problems, I've one or two of those but never so many at once, talk to host about getting those to go away...

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Wed Apr 13, 2011 9:28 am
by fredp
Hi,

If you haven't already tried it, you might turn on debugging in config.php and then try searching and reindexing (via admin ui extensions-> search-> options-> reindex all content) again. Perhaps you'll see a related warning/error message.

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Thu Apr 14, 2011 11:22 am
by Weon
Dr.CSS - Thanks for the suggestion. Just a thought though - if it was an issue with the functions on the server being disabled, why would the search work fine on a new install but not on one that has been upgraded? I have put in a support request with the host - we'll see what happens.

fredp - I have enabled debugging on both the 1.6.5 site (http://cmsms.marblecake.co.uk/) and the 1.9.4.1 site (http://cirenchiro.marblecake.co.uk/) - now it all means very little to me. COuld you take a look and let me know if you see anything that might shed some light on the issue?

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Thu Apr 14, 2011 6:53 pm
by Rolf
Hello Weon,

try to disable pretty urls on this site.
This is looking odd to me:

Code: Select all

http://cirenchiro.marblecake.co.uk/search-results/?mact=Search%252Ccntnt01%252Cdosearch%.............
Hope this helps, Rolf

Re: Search returns nothing, not even an error! (1.9.4.1)

Posted: Fri Apr 15, 2011 8:36 am
by Weon
Rolf - you are a legend!

OK, so I disabled "mod_rewrite" as the method for creating pretty URLs and change the method to "none". That worked a treat. :)

I then tried "internal" and that also worked. :)

However, I wasn't keen on the structure of the links so I tried "mod_rewrite" again, this time adding in a value for $config['page_extension'] (I've never had to do this before!)

All of a sudden, everything works a treat.

Many thanks to all who have helped but mostly to Rolf for realising what was wrong (and making me feel slightly foolish given that it was something so simple!)

Cheers

Owen