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 2019-10-30 12:54:33

Gio_C
Member
Registered: 2019-10-30
Posts: 2

Error 500 at "glpi/front/phone.form.php"

I've updated GLPI to the last current version (9.2.x to 9.4.4) and everything works fine, everything but the page "glpi/front/phone.form.php".
This error appears only if in the URL the "id" parameter is set with any value: (eg. phone.form.php?id=1).
Under this condition the server returns "Error HTTP 500.0 - Internal Server Error" and "The FastCGI process exited unexpectedly".
All the other "form" pages work correctly (eg. computer.form.php, monitor.form.php, printer.form.php, etc.) so I believe is unlikely a problem with my server.
I also experimented on my own and I noticed that the page doesn't return any error if I remove "$phone->display(['id' => $_GET["id"], 'withtemplate' => $_GET["withtemplate"]]);" from the "phone.form.php" file.

Offline

#2 2019-10-30 16:41:48

Kaya84
Member
Registered: 2019-06-13
Posts: 217

Re: Error 500 at "glpi/front/phone.form.php"

Post the output of php error log to see where the problem is.

Offline

#3 2019-10-30 17:06:05

Gio_C
Member
Registered: 2019-10-30
Posts: 2

Re: Error 500 at "glpi/front/phone.form.php"

The PHP log is empty, but the IIS 10.0 server log contains this record:

2019-10-30 16:56:56 192.168.6.153 GET /glpi/front/phone.form.php id=1 443 - 192.168.6.153 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/78.0.3904.70+Safari/537.36 https: //srv-iis.server.local/glpi/front/phone.php 500 0 255 301

Offline

#4 2019-12-09 16:31:02

Freezee10
Member
Registered: 2019-09-12
Posts: 19

Re: Error 500 at "glpi/front/phone.form.php"

I have the same problem, anyone for help ?

Offline

#5 2019-12-12 10:14:30

Freezee10
Member
Registered: 2019-09-12
Posts: 19

Re: Error 500 at "glpi/front/phone.form.php"

Anyone for help please?

Offline

#6 2019-12-16 16:45:10

lboudehen
Member
Registered: 2019-12-16
Posts: 3

Re: Error 500 at "glpi/front/phone.form.php"

hello i am having the same problem as you.
just followed the error and I modified the file "inc \ phone.class.php" and I commented the following lines from 70 to 90 "

/ * function defineTabs($options = []) {

      $ong = [];
      $this->addDefaultFormTab($ong);
      $this->addStandardTab('Item_Devices', $ong, $options);
      $this->addStandardTab('Computer_Item', $ong, $options);
      $this->addStandardTab('NetworkPort', $ong, $options);
      $this->addStandardTab('Infocom', $ong, $options);
      $this->addStandardTab('Contract_Item', $ong, $options);
      $this->addStandardTab('Document_Item', $ong, $options);
      $this->addStandardTab('KnowbaseItem_Item', $ong, $options);
      $this->addStandardTab('Ticket', $ong, $options);
      $this->addStandardTab('Item_Problem', $ong, $options);
      $this->addStandardTab('Change_Item', $ong, $options);
      $this->addStandardTab('Link', $ong, $options);
      $this->addStandardTab('Notepad', $ong, $options);
      $this->addStandardTab('Reservation', $ong, $options);
      $this->addStandardTab('Log', $ong, $options);

      return $ong;
   }* / "

if it helps anyone

Thank you to the developers for taking a look at this problem as they will certainly provide a better solution.

Offline

#7 2019-12-16 16:53:04

Freezee10
Member
Registered: 2019-09-12
Posts: 19

Re: Error 500 at "glpi/front/phone.form.php"

Thank you for this smile

Offline

#8 2019-12-16 17:01:04

lboudehen
Member
Registered: 2019-12-16
Posts: 3

Re: Error 500 at "glpi/front/phone.form.php"

better still just comment on that

/*$this->addStandardTab('Item_Devices', $ong, $options);*/

line 74 on inc/phone.class.php

Offline

#9 2020-01-06 16:49:10

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Error 500 at "glpi/front/phone.form.php"

lboudehen wrote:

hello i am having the same problem as you.
just followed the error and I modified the file "inc \ phone.class.php" and I commented the following lines from 70 to 90 "

/ * function defineTabs($options = []) {

      $ong = [];
      $this->addDefaultFormTab($ong);
      $this->addStandardTab('Item_Devices', $ong, $options);
      $this->addStandardTab('Computer_Item', $ong, $options);
      $this->addStandardTab('NetworkPort', $ong, $options);
      $this->addStandardTab('Infocom', $ong, $options);
      $this->addStandardTab('Contract_Item', $ong, $options);
      $this->addStandardTab('Document_Item', $ong, $options);
      $this->addStandardTab('KnowbaseItem_Item', $ong, $options);
      $this->addStandardTab('Ticket', $ong, $options);
      $this->addStandardTab('Item_Problem', $ong, $options);
      $this->addStandardTab('Change_Item', $ong, $options);
      $this->addStandardTab('Link', $ong, $options);
      $this->addStandardTab('Notepad', $ong, $options);
      $this->addStandardTab('Reservation', $ong, $options);
      $this->addStandardTab('Log', $ong, $options);

      return $ong;
   }* / "

if it helps anyone

Thank you to the developers for taking a look at this problem as they will certainly provide a better solution.

With   this fork, you just delete all tab in the phone object


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#10 2020-01-06 16:51:59

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Error 500 at "glpi/front/phone.form.php"

lboudehen wrote:

better still just comment on that

/*$this->addStandardTab('Item_Devices', $ong, $options);*/

line 74 on inc/phone.class.php

with this fork you delete Components tab of the Phone object.

If the issue is with this table, perhaps it may be repair in your database?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#11 2020-01-07 17:40:57

lboudehen
Member
Registered: 2019-12-16
Posts: 3

Re: Error 500 at "glpi/front/phone.form.php"

yllen wrote:
lboudehen wrote:

better still just comment on that

/*$this->addStandardTab('Item_Devices', $ong, $options);*/

line 74 on inc/phone.class.php

with this fork you delete Components tab of the Phone object.

If the issue is with this table, perhaps it may be repair in your database?

Hi, thank to responding, but when i create new phone and open again the detailed sheet i have error 500.

if it is necessary to repair the base I do not know how.

Offline

#12 2020-01-21 09:30:32

ElGuinness
Member
Registered: 2019-12-23
Posts: 3

Re: Error 500 at "glpi/front/phone.form.php"

Tks for this modification ....... now fatal error :

Fatal error: Uncaught Error: Class 'Phone' not found in C:\inetpub\glpi\inc\html.class.php:1475 Stack trace: #0 C:\inetpub\glpi\inc\html.class.php(6327): Html::generateMenuSession(true) #1 C:\inetpub\glpi\inc\html.class.php(1585): Html::displayMainMenu(true, Array) #2 C:\inetpub\glpi\front\central.php(68): Html::header('Interface stand...', '/glpi/front/cen...', 'central', 'central') #3 {main} thrown in C:\inetpub\glpi\inc\html.class.php on line 1475

Offline

#13 2020-07-08 21:29:32

Tja
Member
Registered: 2020-01-31
Posts: 34

Re: Error 500 at "glpi/front/phone.form.php"

i have still the problem
/*

ok it's ok to view and edite but i have not the onglet .

Offline

#14 2020-07-16 04:55:45

Tja
Member
Registered: 2020-01-31
Posts: 34

Re: Error 500 at "glpi/front/phone.form.php"

HELLO

I have a solution

change ver php to 4.4 and it's ok

Offline

#15 2020-08-01 23:33:25

NIYALI
Member
Registered: 2019-10-18
Posts: 10

Re: Error 500 at "glpi/front/phone.form.php"

Freezee10 wrote:

I have the same problem, anyone for help ?

Post the output of php error log to see where the problem is.Kodi nox

Last edited by NIYALI (2020-08-02 19:08:32)

Offline

#16 2023-10-10 04:33:39

evawillms
Member
Registered: 2023-10-07
Posts: 1

Re: Error 500 at "glpi/front/phone.form.php"

Tja wrote:

HELLO

I have a solution

change ver php to 4.4 and it's ok

Great idea ..

Offline

Board footer

Powered by FluxBB