You are not logged in.
I run GLPI 0.85.2 AND previous version 0.84.7
A PHP error occurs when executing compute_dictionnary.php.
The script doesn't seem to do anything, but displaying the help when no parameter 'dictionnary' is given
Extract of php-errors.log
Notice(8): Use of undefined constant NORMAL_MODE - assumed 'NORMAL_MODE'
Backtrace :
/var/www/glpi084/scripts/compute_dictionnary.php:53 Toolbox::userErrorHandlerNormal()
Solution is to add "Session::" before NORMAL_MODE on line 53 -> Session::NORMAL_MODE
By the way, the help lists the different values for parameter 'dictionnary' (General, Models, Types). 3 values are missing for Operating Systems. Would be nice to add them to the help.
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
Sorry, the script does what it is supposed to do, even with the mentionned error.
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
when the compute_dictionnary has something to do (eg a software to modify), I get the following set of 2 PHP errors several times.
The number of times I get those errors is not clear (related to number of software to modify ?).
It looks like the script tries to determine the context, in terms of entities, but can't do it, which is normal because the script is not logged in.
I don't get these errors with the button 'Play the dictionnary'.
*** PHP Notice(8): Undefined index: glpiactiveentities_string
Backtrace :
inc/db.function.php:1716
inc/software.class.php:616 getEntitiesRestrictRequest()
inc/commondbtm.class.php:3203 Software->getSearchOptions()
inc/commondbtm.class.php:1054 CommonDBTM->getSearchOptionByField()
inc/software.class.php:891 CommonDBTM->update()
...ruledictionnarysoftwarecollection.class.php:385 Software->putInTrash()
...ruledictionnarysoftwarecollection.class.php:256 RuleDictionnarySoftwareCollection->putOldSoftsInTrash()
...ruledictionnarysoftwarecollection.class.php:186 RuleDictionnarySoftwareCollection->replayDictionnaryOnSoftwaresByID()
scripts/compute_dictionnary.php:61 RuleDictionnarySoftwareCollection->replayRulesOnExistingDB()
*** PHP Notice(8): Undefined index: glpiparententities
Backtrace :
inc/db.function.php:1732
inc/software.class.php:616 getEntitiesRestrictRequest()
inc/commondbtm.class.php:3203 Software->getSearchOptions()
inc/commondbtm.class.php:1054 CommonDBTM->getSearchOptionByField()
inc/software.class.php:891 CommonDBTM->update()
...ruledictionnarysoftwarecollection.class.php:385 Software->putInTrash()
...ruledictionnarysoftwarecollection.class.php:256 RuleDictionnarySoftwareCollection->putOldSoftsInTrash()
...ruledictionnarysoftwarecollection.class.php:186 RuleDictionnarySoftwareCollection->replayDictionnaryOnSoftwaresByID()
scripts/compute_dictionnary.php:61 RuleDictionnarySoftwareCollection->replayRulesOnExistingDB()
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline