• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to edit task manager hangs
#1
Trying to to into the task manager and it just hangs:

[Tue Aug 16 13:55:50 2011] [error] [client 192.168.101.10] PHP Fatal error: Class '' not found in /var/www/html/glpi/plugins/fusioninventory/inc/taskjob.class.php on line 1331, referer: http://192.168.101.55/glpi/plugins/fusio...m.php?id=4
[Tue Aug 16 13:57:05 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/favicon.ico
[Tue Aug 16 13:57:17 2011] [error] [client 192.168.101.10] PHP Fatal error: Class '' not found in /var/www/html/glpi/plugins/fusioninventory/inc/taskjob.class.php on line 1331, referer: http://192.168.101.55/glpi/plugins/fusio...m.php?id=4
#2
What version of plugins you use ?
And what version of GLPI ?
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#3
GLPI 0.80.2
fusioninventory-for-glpi-metapackage_2.4.0-RC2.tar

Downloaded them yesterday the tar ball.

I am using git right now to pull down the source tree.
#4
Can you give the complete log of the bug in glpi/files/_log/php-errors.log and sql-errors.log ?
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#5
Do you want me to post it or send it to you?
#6
Like you want, if you want mail : d.durieux@siprossii.com
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#7
I removed everything and did a clean install from 0.8.02 and the git repository.
I still get hung up when I try to edit an existing task and click on the action1 button. Here is the error log
2011-08-16 19:14 [2@lenny.karzsys.com]
Notice(8): Undefined index: actionselectiontoadd
Backtrace :
/var/www/html/glpi/plugins/fusioninventory/front/taskjob.form.php:78 userErrorHandlerNormal()

Don't know if it is related but when you click on + under the ip range screen it gets this error:
http://192.168.101.55/glpi/plugins/fusio....php?add=1

Here is the httpd error log
[Tue Aug 16 18:27:17 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/favicon.ico
[Tue Aug 16 18:31:34 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/glpi/plugins/fusioninventory/plugins, referer: http://192.168.101.55/glpi/plugins/fusio...prange.php
[Tue Aug 16 18:31:34 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/favicon.ico
[Tue Aug 16 18:39:08 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/favicon.ico
[Tue Aug 16 18:50:31 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/glpi/plugins/fusioninventory/plugins, referer: http://192.168.101.55/glpi/plugins/fusio...prange.php
[Tue Aug 16 18:50:31 2011] [error] [client 192.168.101.10] File does not exist: /var/www/html/favicon.ico


I manually inserted an ip address range and tried to force network discovery and get no results but this error is in the files/_log directory

Test
2011-08-16 18:42 [2@lenny.karzsys.com]
Notice(8): Undefined index: id
Backtrace :
/var/www/html/glpi/plugins/fusioninventory/front/taskjob.form.php:278 userErrorHandlerNormal()

2011-08-16 18:42 [2@lenny.karzsys.com]
Notice(8): Undefined index: id
Backtrace :
/var/www/html/glpi/plugins/fusioninventory/inc/taskjob.class.php:152 userErrorHandlerNormal()
/var/www/html/glpi/plugins/fusioninventory/inc/wizard.class.php:186 PluginFusioninventoryTaskjob->showForm()
/var/www/html/glpi/plugins/fusioninventory/inc/wizard.class.php:631 PluginFusioninventoryWizard::displayShowForm()
/var/www/html/glpi/plugins/fusioninventory/front/wizard.php:56 PluginFusioninventoryWizard::w_tasksforcerun()

Similar results with an snmp scan

2011-08-16 18:54 [2@lenny.karzsys.com]
Notice(8): Undefined index: id
Backtrace :
/var/www/html/glpi/plugins/fusioninventory/front/taskjob.form.php:278 userErrorHandlerNormal()

2011-08-16 18:54 [2@lenny.karzsys.com]
Notice(8): Undefined index: id
Backtrace :
/var/www/html/glpi/plugins/fusioninventory/inc/taskjob.class.php:152 userErrorHandlerNormal()
/var/www/html/glpi/plugins/fusioninventory/inc/wizard.class.php:186 PluginFusioninventoryTaskjob->showForm()
/var/www/html/glpi/plugins/fusioninventory/inc/wizard.class.php:631 PluginFusioninventoryWizard::displayShowForm()
/var/www/html/glpi/plugins/fusioninventory/front/wizard.php:56 PluginFusioninventoryWizard::w_tasksforcerun()
#8
It's strange you have the url with [...]/glpi/plugins/fusioninventory//plugins/fusioninventory/front/iprange.form.php?add=1 instead [...]/glpi/plugins/fusioninventory/front/iprange.form.php?add=1

What is your OS? and how do to have installed GLPI ?
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#9
Centos 5.5
Glpi is installed in /var/www/html/glpi and the plugins directory is under glpi.
If I roll it back to the tar ball rather then the git repository it fixes the missing form problem. So there must be some difference between those two code bases.
I tried the repository clean. Deleted everything including the database. Started fresh and still got the same results.

I can't get either of them to find anything on network discovery of snmp inventory. The tar ball tries and hangs or errors out and the repository just flashes by and returns to the menu.
#10
You will have this file/folder structure
glpi
-plugins
--fusioninventory
---front
---inc
---setup.php
---hook.php

idem for glpi/plugins/fusinvinventory and glpi/plugins/fusinvsnmp
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#11
Ok I tried it again from the repository and get the same error on the ip address range

Here is the ls of the directory

[root@lenny plugins]# pwd
/var/www/html/glpi/plugins
[root@lenny plugins]# ls -l fusioninventory
total 296
drwxr-xr-x 2 root root 4096 Aug 17 11:01 ajax
drwxr-xr-x 2 root root 4096 Aug 17 11:01 docs
-rw-r--r-- 1 root root 38471 Aug 17 11:01 effects.js
drwxr-xr-x 2 root root 4096 Aug 17 11:01 front
-rw-r--r-- 1 root root 35950 Aug 17 11:01 hook.php
drwxr-xr-x 2 root root 4096 Aug 17 11:01 inc
-rw-r--r-- 1 root root 1877 Aug 17 11:01 index.php
drwxr-xr-x 3 root root 4096 Aug 17 11:01 install
drwxr-xr-x 2 root root 4096 Aug 17 11:01 locales
drwxr-xr-x 2 root root 4096 Aug 17 11:01 pics
-rw-r--r-- 1 root root 163312 Aug 17 11:01 prototype.js
-rw-r--r-- 1 root root 409 Aug 17 11:01 script.js
-rw-r--r-- 1 root root 16295 Aug 17 11:01 setup.php
drwxr-xr-x 3 root root 4096 Aug 17 11:01 tools
[root@lenny plugins]#

[root@lenny plugins]# ls -l fusinvsnmp
total 176
drwxr-xr-x 2 root root 4096 Aug 17 11:03 ajax
drwxr-xr-x 2 root root 4096 Aug 17 11:03 docs
drwxr-xr-x 2 root root 4096 Aug 17 11:03 front
-rw-r--r-- 1 root root 97395 Aug 17 11:03 hook.php
drwxr-xr-x 2 root root 4096 Aug 17 11:03 inc
-rw-r--r-- 1 root root 1482 Aug 17 11:03 includes.php
drwxr-xr-x 3 root root 4096 Aug 17 11:03 install
drwxr-xr-x 2 root root 4096 Aug 17 11:03 locales
drwxr-xr-x 2 root root 20480 Aug 17 11:03 models
drwxr-xr-x 2 root root 4096 Aug 17 11:03 pics
drwxr-xr-x 2 root root 4096 Aug 17 11:03 report
-rw-r--r-- 1 root root 409 Aug 17 11:03 script.js
-rw-r--r-- 1 root root 11674 Aug 17 11:03 setup.php
drwxr-xr-x 2 root root 4096 Aug 17 11:03 tool
[root@lenny plugins]#
[root@lenny plugins]# ls -l fusinvinventory
total 56
drwxr-xr-x 2 root root 4096 Aug 17 11:04 ajax
drwxr-xr-x 3 root root 4096 Aug 17 11:04 b
drwxr-xr-x 2 root root 4096 Aug 17 11:04 datafilter
drwxr-xr-x 2 root root 4096 Aug 17 11:04 front
-rw-r--r-- 1 root root 9564 Aug 17 11:04 hook.php
drwxr-xr-x 2 root root 4096 Aug 17 11:04 inc
-rw-r--r-- 1 root root 1393 Aug 17 11:04 includes.php
drwxr-xr-x 3 root root 4096 Aug 17 11:04 install
drwxr-xr-x 2 root root 4096 Aug 17 11:04 locales
drwxr-xr-x 2 root root 4096 Aug 17 11:04 pics
-rw-r--r-- 1 root root 8059 Aug 17 11:04 setup.php
[root@lenny plugins]#
#12
It look right, humm very hard to have same problem on my installations
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#13
It looks like the url is getting halfway duplicated //plugins/fusion....


The requested URL /glpi/plugins/fusioninventory//plugins/fusioninventory/front/iprange.form.php was not found on this server.

Just to make sure this is what I am doing to get the code:


git clone git://gitorious.org/fusioninventory/fusioninventory-for-glpi.git fusio
ninventory
cd fusioninventory
git checkout -b 2.4.0 origin/2.4.0
cd ..
git clone git://gitorious.org/fusioninventory/fusioninventory-for-glpi-plugin_fu
sinvdeploy.git fusinvdeploy
git clone git://gitorious.org/fusioninventory/fusioninventory-for-glpi-plugin_fu
sinvsnmp.git fusinvsnmp
cd fusinvsnmp
git checkout -b 2.4.0 origin/2.4.0
cd ..
git clone git://gitorious.org/fusioninventory/fusioninventory-for-glpi-plugin_fu
sinvinventory.git fusinvinventory
cd fusinvinventory
git checkout -b 2.4.0 origin/2.4.0
cd ..
#14
Yes that's it, it's correct
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#15
here is a diff between the tarball and the repository code looks like something changed on the form


wish@wish-desktop:~/Downloads/test$ diff fusioninventory ../fusioninventory
Common subdirectories: fusioninventory/ajax and ../fusioninventory/ajax
Common subdirectories: fusioninventory/docs and ../fusioninventory/docs
Common subdirectories: fusioninventory/front and ../fusioninventory/front
Only in fusioninventory: .git
Common subdirectories: fusioninventory/inc and ../fusioninventory/inc
Common subdirectories: fusioninventory/install and ../fusioninventory/install
Common subdirectories: fusioninventory/locales and ../fusioninventory/locales
Common subdirectories: fusioninventory/pics and ../fusioninventory/pics
diff fusioninventory/setup.php ../fusioninventory/setup.php
193c193
< '/plugins/fusioninventory/front/iprange.form.php?add=1';
---
> '../fusioninventory/front/iprange.form.php?add=1';
195c195
< '/plugins/fusioninventory/front/iprange.php';
---
> '../fusioninventory/front/iprange.php';
Common subdirectories: fusioninventory/tools and ../fusioninventory/tools
wish@wish-desktop:~/Downloads/test$
#16
Ah ok, I see the problem, it's a bug, it's fixed in dev version, you can "git pull" :p
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
#17
That fixed it.

THX


Forum Jump:


Users browsing this thread: 1 Guest(s)