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 2015-04-17 16:14:35

blerohellec
Member
From: Paris
Registered: 2015-04-08
Posts: 84

PHP error on parameter 'Automatic closing of solved tickets after'

I'm running GLPI 0.84.7 AND GLPI 0.85.3 (latest unstable release dating 2 days ago)

I get a PHP error related to the parameter of entities 'Automatic closing of solved tickets after' (tab Assistance).
The error occurs only for sub-entities, and not for the root entity.
And it occurs only when the value is 'inheritance of the parent entity'.

On screen, normally, the inherited value should be displayed (in green), but it doesn't.
If in Debug mode, an error is displayed (in red).

extract of php-errors.log hereafter

GLPI 0.84.7
Notice(8): Undefined offset: -1
Backtrace :
glpi084/inc/toolbox.class.php:531        Toolbox::userErrorHandlerNormal()
glpi084/inc/entity.class.php:1780        Toolbox::userErrorHandlerDebug()
glpi084/inc/entity.class.php:339        Entity::showHelpdeskOptions()
glpi084/inc/commonglpi.class.php:284        Entity::displayTabContentForItem()
glpi084/ajax/common.tabs.php:71        CommonGLPI::displayStandardTab()

GLPI 0.85.3
  *** PHP Notice(8): Undefined offset: -1
  Backtrace :
  inc/entity.class.php:1893                         
  inc/entity.class.php:346                           Entity::showHelpdeskOptions()
  inc/commonglpi.class.php:455                       Entity::displayTabContentForItem()
  ajax/common.tabs.php:87                            CommonGLPI::displayStandardTab()


Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu

Offline

#2 2015-04-17 18:40:41

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

Re: PHP error on parameter 'Automatic closing of solved tickets after'

Look at the value defined in parent entity of your sub-entity. Save again even no change.
I had the same problem and solve it like indicated.


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

#3 2015-04-17 19:40:24

blerohellec
Member
From: Paris
Registered: 2015-04-08
Posts: 84

Re: PHP error on parameter 'Automatic closing of solved tickets after'

Thx a lot. It works fine now.

It seems that the value stored in db for this parameter at instalation time is not correct.
I've seen -1 in glpi_entities.autoclose_delay, while displaying '1 day' on screen.
Once saved again without changing anything, value has turned to +1 in db.


Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu

Offline

#4 2015-04-19 10:29:22

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

Re: PHP error on parameter 'Automatic closing of solved tickets after'

-1 was the old value for inherit parent in glpi version < 0.83.
You must had a problem during migration 0.80 -> 0.83.


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

Board footer

Powered by FluxBB