Dear sirs,
I'm using AtoM 2.2.1 on a Ubuntu 14 Server x64. Everything works fine, but every time I use the search field these two kind of errors are written in /var/log/nginx/error.log:
2016/02/23 14:37:19 [error] 821#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function get() on a non-object in /usr/share/nginx/atom/lib/helper/QubitHelper.php on line 365" while reading response header from upstream, client: 172.16.3.126, server: _, request: "GET /index.php/search/autocomplete?query=jo%C3%A3o&repos= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.atom.sock:", host: " .....
By the way, /usr/share/nginx/atom/lib/helper/QubitHelper.php on line 365 is the "$r = $hit->get($key)->get(0);":
$accessField = function($culture) use ($hit, $fieldName, $flat)
{
if ($flat)
{
$key = sprintf("i18n.%s.%s", $culture, $fieldName);
$r = $hit->get($key)->get(0);
if (empty($r))
{
return false;
}
This is the other error:
2016/02/23 13:17:08 [error] 23422#0: *1 FastCGI sent in stderr: "PHP message: This request has been forwarded to a 404 error page by the action "search/autocomplete"" while reading response header from upstream, client: 10.0.2.2, server: _, request: "GET /index.php/search/autocomplete?query=jpa&repos= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.atom.sock:", host: ...
If I didn't went to this Nginx log I would never knew something wrong was happening so this might not be something problematic (at least, for now). I have these dependencies installed:
- Elasticsearch 1.7.5,
- Java 8u72+8u71arm-1~webupd8~0
- Mysql server 5.5.47
- Nginx 1.8.1-1
- php5-cli 5.5.9
- php5-fpm 5.5.9
- php5-curl 5.5.9
- php5-mysql 5.5.9
- php5-xsl 5.5.9
- php5-json 1.3.2-2
- php5-ldap 5.5.9
- php-apc 4.0.2
- php5-readline 5.5.9
- gearman-job-server 1.0.6
- imagemagick 6.7.7.10
- ghostscript 9.10
- poppler-utils 0.24.5
- ffmpeg 2.5.3
Any suggestions?
Thank you very much for your support.