You are not logged in.
Pages: 1
Topic closed
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
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
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
-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
Pages: 1
Topic closed