FastCGI errors on Nginx log

597 views
Skip to first unread message

Gomes Silva

unread,
Feb 23, 2016, 10:19:15 AM2/23/16
to ICA-AtoM Users
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.

Mike G

unread,
Mar 1, 2016, 2:32:20 PM3/1/16
to ICA-AtoM Users
Hi Gomes,

Are you using another language in AtoM other than English? It's possible it's a bug related to that that we've since fixed in the 2.3 development branch. I'll ask around to see if any of my coworkers have seen this issue before and get back to you.

cheers

Gomes Silva

unread,
Mar 1, 2016, 3:48:49 PM3/1/16
to ICA-AtoM Users
Hello,

Thank you very much for your reply.

You are correct, right now I'm using the Portuguese language (default_culture: pt) and I am pondering to start the pt_PT translation.
The problem seems to be triggered if I wait some seconds on the global search, when it starts to autocomplete.
Reply all
Reply to author
Forward
0 new messages