InfotelGLPI / printercounters

Plugin Printercounters for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
14 stars 9 forks source link

Automatic actions disabling plugin #40

Closed jpdenss closed 6 years ago

jpdenss commented 6 years ago

If I run PHP cron, the result is the same: Plugin is disabled in GLPI but still works normally in manual mode.

image

image

image

image

amma35 commented 6 years ago

This problem only with Windows. The php command fails to load extensions and as with each use of the plugin, a check is performed on the xmlrpc extension.

To avoid this problem you would have to put a part in comment, on the other hand no more check will be carried out on the extension.

In the printercouters/setup.php file, from line 123 to 126, add"//" at the beginning of each line like this :

//   if (!extension_loaded('snmp')) {
//      echo __('This plugin requires SNMP php extension', 'printercounters');
//      return false;
//   }