You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-01-27 21:09:34

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Treeview Plugin not working as expected

I installed the treeview plugin and am having the following issues. 

1. The treeview only shows some of my locations, not all
2. None of my assets show up in the treeview

Anyone have any ideas why this might happen?  I tried translating the help pages for the plugin, but there wasn't much content.  Thanks.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#2 2009-01-27 21:21:56

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Treeview Plugin not working as expected

1/ yes there is a bug

- if comment for some locations contain a new line => use patch (for 1.1 version)
https://dev.indepnet.net/plugins/changeset/8334

- if parentID for location in the database for first level is -1  (should be 0)
In SQL (after a full backup) :

UPDATE glpi_dropdown_locations SET parentID=0  WHERE level = 1;

2/ no idea

++


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

#3 2009-01-28 00:20:24

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Treeview Plugin not working as expected

I verified that none of my locations have a parentid of -1.  I applied the patch to treeview and it stopped glpi from working completely.  When I go to any GLPI URL I get a blank screen, but apache doesn't report any errors.  If I remove the patched treeview directory from the plugins directory GLPI starts working again.  Does this patch break something else, or could I have applied it incorrectly?  I put the diff file in the treeview directory and ran

patch -p4 <changeset_r8334.diff

Thanks.

Last edited by Bug Reporter (2009-01-28 20:08:46)


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#4 2009-01-28 07:41:55

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Treeview Plugin not working as expected

Strange...

Any message while applying the patch ?
Are you using the 1.1 version of treeview ?
Any error if debug mode on ?

+

PS. I hope "<p4" is a typo for "-p4" ?


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

#5 2009-01-28 20:13:53

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Treeview Plugin not working as expected

The only messages I received while applying the patch were messages stating that several files were being patched.  I verified that the files had a new timestamp also.  Shouldn't that patch just contain the 8 changes to the one file?

I am using the 1.1 version of treeview.

I'll turn on debug mode and post the logs.

I still think there's something wrong with the way I'm patching.  I don't think I should see more than one file being patched.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#6 2009-01-28 20:46:43

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Treeview Plugin not working as expected

Yes, the patch if not only for this file..

Try to download / replace the plugin_treeview.functions_display.php

++


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

#7 2009-01-29 00:15:56

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Treeview Plugin not working as expected

The patch you sent worked perfectly.  I was able to replace the file and the sites with carriage returns showed up.

The reason my devices weren't showing up is because the parentid of my server room was incorrect.  This was because I loaded hundreds of locations through a file import and that id number was off by one.  I corrected that issue, and now I see my devices.

Thanks for all your help, remi!

The only issue I have now is that there isn't a horizontal scroll bar on the treeview pane, but I should be able to fix that.

Last edited by Bug Reporter (2009-01-29 00:17:25)


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

Board footer

Powered by FluxBB