You are not logged in.
Pages: 1
Hi,
I'm currently testing GLPI 0.78 on CentOS 5.5 installed from repos remi and remi-test.
I defined some rules in manufacturer and operating system dictionary sections and made them active. Like
Criteria
Operating system regular expression checks /^CentOS release ([0-9]).([0-9])*/
Actions
Operating system Assign CentOS #0.#1
When pressing 'Rename based on dictionary' button all seems to be ok but nothing happens. In /var/log/glpi/php-errors.log I see:
2010-10-18 20:07 [2]
Notice(8): Undefined property: RuleDictionnaryOperatingSystemCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51 userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnaryoperatingsystem.php:42 include()
or
2010-10-18 20:10 [2]
Notice(8): Undefined property: RuleDictionnaryManufacturerCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51 userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarymanufacturer.php:42 include()
System configuration
GLPI 0.78 (/glpi => /usr/share/glpi)
Server
Operating Systems : Linux dhcp51 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:50:31 EDT 2010 x86_64
PHP 5.3.4-dev (Core, PDO, Phar, Reflection, SPL, SimpleXML, apache2handler, bz2, calendar, ctype, curl, date, dom, ereg, exif,
fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, ldap, libxml, mbstring, mysql, mysqli, openssl, pcre,
pdo_mysql, pdo_sqlite, session, shmop, sockets, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: memory_limit="64M" max_execution_time="30" safe_mode="" session.save_handler="files"
Software: Apache/2.2.3 (CentOS) (Apache/2.2.3 (CentOS) Server at dhcp51 Port 80)
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.9) Gecko/20100908 CentOS/3.6-2.el5.centos Firefox/3.6.9
MySQL: 5.0.77 (glpi@localhost/glpi)
Mysql replicate
Active : No
Plugins list
Notifications / Mail Receiver
Use a SMTP server to send emails: PHP
Mail Receiver
OCS Inventory NG
Host for the OCSNG database : 'ocs', Connection to OCSNG database successful, Use the OCSNG software dictionary : 0
I also tried svn 12765 but errors in php-errors.log are still remain.
Carsten
Offline
Your action is not correct : "assign" will be "assign value from regex"
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
thanks, but "Undefinded property" errors still remains when setting action to "Assign the value from regular expression"
even if manufacture setting is
Criteria
Manufacturer is VMware, Inc.
Actions
Manufacturer Assign VMware
no assignment will be done and I get in php-errors.log:
Notice(8): Undefined property: RuleDictionnaryManufacturerCollection::$show_cache
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php:51 userErrorHandlerNormal()
/usr/share/glpi/front/rule.common.php:124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarymanufacturer.php:42 include()
Offline
installed from svn 12843. Definded rules in Operating system version and Computer type. I also get errors here:
2010-10-21 20:43 [2]
Notice(8): Undefined property: RuleDictionnaryOperatingSystemVersionCollection::$show_cache
Backtrace :
/var/www/html/glpi-12843/inc/ruledictionnarydropdowncollection.class.php:51 userErrorHandlerNormal()
/var/www/html/glpi-12843/front/rule.common.php:124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/var/www/html/glpi-12843/front/ruledictionnaryoperatingsystemversion.php:42 include()
2010-10-21 20:44 [2]
Notice(8): Undefined property: RuleDictionnaryComputerTypeCollection::$show_cache
Backtrace :
/var/www/html/glpi-12843/inc/ruledictionnarydropdowncollection.class.php:51 userErrorHandlerNormal()
/var/www/html/glpi-12843/front/rule.common.php:124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/var/www/html/glpi-12843/front/ruledictionnarycomputertype.php:42 include()
running in debug mode gives the same error.
How can I track down the problem?
Carsten
Offline
Can you please check this fix :
https://forge.indepnet.net/projects/glp … 12845/diff
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
thanks
that fixed "Undefined property" errors.
Tests on "Operating system", "Manufacturer" and "OS Versions" rules are working correct now.
But running tests on "Computer Model" and "Software" rules are not working yet.
Pressing "Test rules engine" and entering test data works correct. Pressing "Renamed based on directory" button runs but nothing changes. Pressing "Cache Informations" also says 0 objects in cache.
Carsten
Offline
moved to bugs section
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
But running tests on "Computer Model" and "Software" rules are not working yet.
test of "Computer model" => work for me.
You should probably use the latest snapshot which have other fixes for Dictionnaries.
I'm currently testing GLPI 0.78 on CentOS 5.5 installed from repos remi and remi-test.
Try with glpi-0.78-2.svn12852 which is available in remi-test.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
also available here :
https://forge.indepnet.net/tarballs/
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Replay the Software dictionnary from software list (massive action) is broken
Here is the fix:
https://forge.indepnet.net/projects/glp … ions/12857
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Replaying the Software dictionnary from the rules list (full replay) also works with my sample test rules.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
restored my 072.4 database
updated to glpi-0.78-2.svn12852
applied changeset_r12857.diff
update went fine
applied a new software dictionary rule and everything is fine; thanks a lot
but when defining a new computer model, assigning this new computer model to an existing computer, extending an existing rule with new computer model, followed by clicking on "Rename based on dictionary" nothing changes. Pressing "Cache Informations" returned the correct result.
in /var/log/glpi/sql-errors.log I get:
2010-10-25 20:12 [7]
*** MySQL query error :
***
SQL: UPDATE
`glpi_computers`
SET `model` = \'16\'
WHERE `computermodels_id` = \'17\' AND `manufacturers_id` = \'6\'
Error: Unknown column 'model' in 'field list'
Backtrace :
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php :184 DBmysql->query()
/usr/share/glpi/inc/ruledictionnarydropdowncollection.class.php :52 RuleDictionnaryDropdownCollection->replayRulesOnExistingDBForModel()
/usr/share/glpi/front/rule.common.php :124 RuleDictionnaryDropdownCollection->replayRulesOnExistingDB()
/usr/share/glpi/front/ruledictionnarycomputermodel.php :42 include()
/usr/share/glpi/front/ruledictionnarycomputermodel.php
On mysql database table glpi_computers I see that model changed to computermodels_id.
Carsten
Last edited by carsten (2010-10-25 21:01:32)
Offline
Please try this fix :
https://forge.indepnet.net/projects/glp … 12868/diff
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
applied changeset 12868
works fine. thanks a lot
Carsten
Offline
Pages: 1