You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-08-27 16:05:01

cmatt4440
Member
Registered: 2024-03-05
Posts: 16

Unable to add actors in WebUI

When trying to add actors with the WebUI I get the error "The results could not be loaded"

I see some relevant errors in files/_log/php-errors.log:

[2024-08-27 08:55:41] glpiphplog.WARNING:   *** PHP User Warning (512): IDOR token cannot be generated with empty criteria. in /var/www/html/glpi/src/Session.php at line 1654
  Backtrace :
  src/Session.php:1654                               trigger_error()
  ...tes/1b/1bc59cab74df512e2caa074465da2e41.php:434 Session::getNewIDORToken()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_d62f8951e4825d75945fe96af6d7f910->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  vendor/twig/twig/src/Template.php:379              Twig\Template->display()
  vendor/twig/twig/src/TemplateWrapper.php:38        Twig\Template->render()
  .../twig/twig/src/Extension/CoreExtension.php:1347 Twig\TemplateWrapper->render()
  ...tes/54/54bf5691f5e7b12842576f6eae0cc83b.php:177 twig_include()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_11331e5866fdd8b06a457601bea3617d->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  vendor/twig/twig/src/Template.php:379              Twig\Template->display()
  vendor/twig/twig/src/TemplateWrapper.php:38        Twig\Template->render()
  .../twig/twig/src/Extension/CoreExtension.php:1347 Twig\TemplateWrapper->render()
  ...tes/85/8516ecf745bdabc376ff2cd57117f78d.php:416 twig_include()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_7b40705d0225b2f830a20cca8c47ae69->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  vendor/twig/twig/src/Template.php:379              Twig\Template->display()
  vendor/twig/twig/src/TemplateWrapper.php:38        Twig\Template->render()
  .../twig/twig/src/Extension/CoreExtension.php:1347 Twig\TemplateWrapper->render()
  ...tes/22/22d5d897f4b5af5b403673476f790424.php:152 twig_include()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_825de126fa2e4aa487bf6a6b66b0f5d2->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  vendor/twig/twig/src/TemplateWrapper.php:45        Twig\Template->display()
  src/Application/View/TemplateRenderer.php:184      Twig\TemplateWrapper->display()
  src/Ticket.php:4429                                Glpi\Application\View\TemplateRenderer->display()
  src/CommonGLPI.php:680                             Ticket->showForm()
  ajax/common.tabs.php:120                           CommonGLPI::displayStandardTab()
  public/index.php:82                                require()

I also saw some suggestions to reset the nginx config to the one suggested on the docs. I did what I could to make it work and look like the documentation. Here it is for reference:

server {
    listen 80;
    server_name [redacted];
    return 301 https://$server_name$request_uri;
}

server {
    client_max_body_size 120M;
    listen 443 ssl http2;
    server_name [redacted];

    ssl_certificate /root/certs/tls_crt.crt;
    ssl_certificate_key /root/certs/tls_key.key;
    ssl_protocols TLSv1.2 TLSv1.3;

    root /var/www/html/glpi/public;  # Ensure you have a 'public' directory

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ ^/index\.php$ {
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS on;
    }

    location ~ /\.ht {
        deny all;
    }
}

Offline

#2 2024-08-27 16:16:50

cmatt4440
Member
Registered: 2024-03-05
Posts: 16

Re: Unable to add actors in WebUI

Issue resolved by deleting the contents of the "_cache" folder in glpi/files after upgrading. The official documentation should be updated to include that. https://github[dot]com/glpi-project/glpi/issues/16841#issuecomment-2091837793

Offline

Board footer

Powered by FluxBB