You are not logged in.
Hello,
We have a problem with dropdowns. When we click in a dropdown we get the message "The results could not be loaded".
We found someone who had the same problem in this github post:
http s://github.com/glpi-project/glpi/issues/6191
Finally he solved the problem changing the nginx configuration. We tried to do the same and that worked... but then api calls ended to work.
If we have a configuration like this, api calls work correctly but we have the dropdowns issue:
location /api {
rewrite ^/api/(.*)$ /apirest.php/$1 last;
}
location ~ [^/]\.php(/|$) {
real_ip_header X-Forwarded-For;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
# Bypass the fact that try_files resets $fastcgi_path_info
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_index index.php;
}
We have errors like this in the error.log on nginx, but when we enter to the form, not in the moment that we deploy the dropdown:
"Stack trace:
#0 {main}
thrown in /usr/share/nginx/html/uac/helpdesk/ajax/actorinformation.php on line 44" while reading response header from upstream, client: x.x.x.x, server: edupre.xunta.es, request: "GET /uac/helpdesk/ajax/actorinformation.php?users_id_assign=23148&only_number=true HTT P/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "ww w.edupre.xunta.es", referrer: "htt p://www.edupre.xunta.es/uac/helpdesk/front/ticket.form.php"
Then, if we comment this param...
"fastcgi_param PATH_INFO $path_info;"
... dropdowns work correctly but then all api calls return the api documentation without any error on logs.
We tried a lot of diferent combinations and we always get the same situation: with PATH_INFO param api works and dropdowns not, and without that param is the opposite.
What is the correct configuration for both to work?
We have last glpi version, 10.0.2:
GLPI 10.0.2 (/uac/helpdesk => /usr/share/nginx/html/uac/helpdesk)
Installation mode: TARBALL
Current language:es_ES
Operating system: Linux stg-iglpi-0001 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
PHP 8.1.7 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, apfd, bcmath, bz2, calendar, cgi-fcgi,
ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt,
mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, sockets, sodium, sqlite3, standard, sysvmsg,
sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="20M" safe_mode="" session.save_handler="files"
upload_max_filesize="20M"
Software: nginx/1.20.2
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Server Software: MariaDB Server
Server Version: 10.6.4-MariaDB-log
Server SQL Mode: NO_ENGINE_SUBSTITUTION
Thanks in advance!
Last edited by Sergio.Marcos.Iglesias (2022-09-23 13:40:51)
Offline