Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After opening, the plugin window is empty #29

Open
petrkytepov opened this issue Jul 15, 2020 · 6 comments
Open

After opening, the plugin window is empty #29

petrkytepov opened this issue Jul 15, 2020 · 6 comments

Comments

@petrkytepov
Copy link

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
Copy link
Contributor

trasher commented Jul 15, 2020

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

@petrkytepov
Copy link
Author

petrkytepov commented Jul 17, 2020

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants