Notice: undefined index ... on all web driven searches
Dear all,
We have just installed piler on a Centos 6 64bit VPS:
piler 0.1.25-rc2, build 871, Janos SUTO sj@acts.hu
Build Date: Mon Jun 2 22:23:01 CEST 2014 ldd version: ldd (GNU libc) 2.12 gcc version: gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) Configure command: ./configure --enable-memcached --localstatedir=/var --with-database=mysql --enable-starttls --enable-tcpwrappers
Then, we have imported emails in eml format from different local folders.
All went OK, but whatever searches we try, we get:
Notice: Undefined index: sort in ... search.php on line 28, 174 and 256.
However, the searches are returning results...
I tried to run indexer --all, but it fails with:
Sphinx 2.1.8-id64-release (rel21-r4675) Copyright (c) 2001-2014, Andrew Aksyonoff Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinx/sphinx.conf'... indexing index 'main1'... FATAL: failed to lock /var/piler/sphinx/main1.spl: Resource temporarily unavailable, will not index. Try --rotate option.
I assume indexer is already running and that is why the resource is in use...
Please give me a hint what to do next.
Thank you very much in advance!!!
Helen
Comments (8)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
reporter Dear jsuto,
Thank you for your reply and for the good news (I mean I managed to install it correctly :)!
Is there any possibility to set verbosity level, so no notices to be displayed?
Thank you very much for all you did and do!
Helen
-
repo owner Yes, it's possible with error_reporting in php.ini. However it would be better to fix these notices. Can you describe in details what you do to make these warnings to happen?
-
reporter All I do is this: - I log in as auditor@local - go to Advanced search - fill in either "from" or "To" AND select a time interval " Date from: " and " Date to:"
I hope this helps.
Cheers!
-
repo owner OK, try the following: edit controller/search/helper.php, and add the following at the end of function fixup_post_simple_request():
$this->a['sort'] = "date"; $this->a['order'] = 0;
-
reporter Yes, sir! You did it!
Great work, great support, I love it!!!
-
repo owner - changed status to resolved
You are welcome :-)
- Log in to comment
Hello Helen,
the php notice error is most likely some unpolished code in the gui, I'll check it soon. However normally you don't run "indexer --all" except install time. Instead use the indexer.*sh scripts shipped with piler. So if you still have results for your queries, then don't run indexer manually, unless you are fixing a sphinx issue.