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 2022-05-27 14:20:12

bmichelsz
Member
From: Slovakia
Registered: 2007-10-20
Posts: 37

Uncaught Exception Error - Socket under printer or phone

Hello all,

when I would like to add a socket to the printer or phone, the following error appears on screen (only in debug mode):

Uncaught Exception Error: Call to undefined method Printer::isRackPart() in GLPI_ROOT/src/Dropdown.php at line 346

Can you comment on that, please?
Thank you.


Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33

Offline

#2 2022-05-30 01:18:17

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,814
Website

Re: Uncaught Exception Error - Socket under printer or phone

Please provide the full stack trace from the error which can be found in the "files/_log/php-errors.log" file.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2022-05-30 09:04:07

bmichelsz
Member
From: Slovakia
Registered: 2007-10-20
Posts: 37

Re: Uncaught Exception Error - Socket under printer or phone

Hello,
thank you for reply.

Here you are:

[2022-05-27 15:58:39] glpiphplog.CRITICAL:   *** Uncaught Exception Error: Call to undefined method Printer::isRackPart() in /var/www/htdocs/glpi/src/Dropdown.php at line 346
  Backtrace :
  src/CommonDBTM.php:3969                            Dropdown::show()
  src/Socket.php:139                                 CommonDBTM::dropdown()
  :                                                  Glpi\Socket::showNetworkPortForm()
  src/Application/View/Extension/PhpExtension.php:86 call_user_func_array()
  ...d284077743ba7a891217e2486891b455ae1d5e51.php:98 Glpi\Application\View\Extension\PhpExtension->call()
  vendor/twig/twig/src/Template.php:171              __TwigTemplate_8e1f265c3a469d699ac76280b79e9442cfb01e2b8210c5444bceeb61cb73da10->block_more_fields()
  ...ca3a73bb1521fcad91032b07d9f1f89d1c1c33.php:1014 Twig\Template->displayBlock()
  vendor/twig/twig/src/Template.php:171              __TwigTemplate_f07c79ea571cb382f650c477b2134cf017e9adf1e20571847818e3cc9ecb74d2->block_form_fields()
  ...beca3a73bb1521fcad91032b07d9f1f89d1c1c33.php:95 Twig\Template->displayBlock()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_f07c79ea571cb382f650c477b2134cf017e9adf1e20571847818e3cc9ecb74d2->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  ...d284077743ba7a891217e2486891b455ae1d5e51.php:47 Twig\Template->display()
  vendor/twig/twig/src/Template.php:394              __TwigTemplate_8e1f265c3a469d699ac76280b79e9442cfb01e2b8210c5444bceeb61cb73da10->doDisplay()
  vendor/twig/twig/src/Template.php:367              Twig\Template->displayWithErrorHandling()
  vendor/twig/twig/src/TemplateWrapper.php:47        Twig\Template->display()
  src/Application/View/TemplateRenderer.php:177      Twig\TemplateWrapper->display()
  src/Socket.php:207                                 Glpi\Application\View\TemplateRenderer->display()
  src/CommonGLPI.php:655                             Glpi\Socket->showForm()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()
  

Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33

Offline

Board footer

Powered by FluxBB