pluginsGLPI / treeview

Treeview GLPI plugin
GNU General Public License v2.0
5 stars 7 forks source link

After opening, the plugin window is empty #29

Open petrkytepov opened 4 years ago

petrkytepov commented 4 years ago

Good afternoon. Installed the plugin. Activated. After opening, the plugin window is empty. I have Ubuntu 20.04 GLPI 9.5.0 with plugin: Treeview 1.9.0

trasher commented 4 years ago

You should check your logs (both PHP and GLPI ones).

petrkytepov commented 4 years ago

Good day. Help me to understand. I have Ubuntu 20.04 GLPI 9.4.6 with plugin: Treeview 1.8.0


[2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: itemName Backtrace : plugins/treeview/inc/config.class.php:322 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: locationName Backtrace : plugins/treeview/inc/config.class.php:323 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: target Backtrace : plugins/treeview/inc/config.class.php:324 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: folderLinks Backtrace : plugins/treeview/inc/config.class.php:325 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: useSelection Backtrace : plugins/treeview/inc/config.class.php:326 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 PHP Notice(8): Undefined index: useLines Backtrace : plugins/treeview/inc/config.class.php:327 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"} [2020-07-17 13:00:05] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 683 *** PHP Notice(8): Undefined index: useIcons Backtrace : plugins/treeview/inc/config.class.php:328 plugins/treeview/inc/config.class.php:301 PluginTreeviewConfig->getNodesFromDb() plugins/treeview/left.php:69 PluginTreeviewConfig->buildTreeview() {"user":"2@glpi","mem_usage":"0.000\", 2.27Mio)"}

[Fri Jul 17 13:01:14.080621 2020] [php7:error] [pid 38127] [client 100.100.100.100:46512] PHP Fatal error: Uncaught Error: Class 'PluginTreeviewConfig' not found in /var/www/glpi/plugins/treeview/index.php:35\nStack trace:\n#0 {main}\n thrown in /var/www/glpi/plugins/treeview/index.php on line 35, referer: http://100.100.100.100/glpi/front/computer.php [Fri Jul 17 13:01:18.433775 2020] [php7:error] [pid 38128] [client 100.100.100.100:46514] PHP Fatal error: Uncaught Error: Class 'PluginTreeviewConfig' not found in /var/www/glpi/plugins/treeview/index.php:35\nStack trace:\n#0 {main}\n thrown in /var/www/glpi/plugins/treeview/index.php on line 35, referer: http://100.100.100.100/glpi/front/computer.php

petrkytepov commented 4 years ago

Good afternoon. Help me figure it out. in both the first and second versions, the tree does not work.

  1. Ubuntu 20.04 GLPI 9.5.0 with plugin: Treeview 1.9.0 php 7.4.3

  2. Ubuntu 20.04 GLPI 9.4.6 with plugin: Treeview 1.8.0 php 7.4.3

cedric-anne commented 4 years ago

Hi,

I cannot reproduce your issue. It seems that either some columns are missing into your glpi_plugin_treeview_configs table either the default data is not present in the table. Table and its data should have been created by https://github.com/pluginsGLPI/treeview/blob/master/hook.php#L59 .

If you had no data in this plugin, try to uninstall it and reinstall it.

Regards

petrkytepov commented 4 years ago

Good afternoon. Reinstall, or should I uninstall and install again helped. Although before that, I also deleted and installed it. This is a translator, I'm sorry. Thanks.

cedric-anne commented 4 years ago

I was talking about uninstall feature in plugins page. This feature should drop plugins table. The use the install feature to make plugin recreate tables with their default data.