You are not logged in.
Pages: 1
Topic closed
Bonjour,
Je viens d'éffectuer une mise à jours depuis une version beta 0.7 de GLPI.
J'ai un bug genant, quand je vais sur l'inventaire de mes machines, je n'ai plus l'onglet TICKETS.
J'ai activier le mod "debug" et voici ce que j'ai:
PHP ERROR : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/htdocs/glpi/inc/dbmysql.class.php at line 147
Et voici la sortie SQL:
SQL REQUEST : 71 Queries took 0.047s
N° Queries Time Errors
1 SELECT *
FROM glpi_computers
WHERE (ID = 22) 0.001
2 SELECT name
FROM glpi_computers
WHERE ID='22' 0.001
3 SELECT ID
FROM glpi_computers
WHERE ( name > 'AP1' OR (name = 'AP1' AND ID > '22') ) AND deleted='0' AND is_template='0' AND glpi_computers.FK_entities IN (0)
ORDER BY name ASC, ID ASC 0.002
4 SELECT name
FROM glpi_computers
WHERE ID=22 0.000
5 SELECT ID
FROM glpi_computers
WHERE (name < 'AP1' OR (name = 'AP1' AND ID < '22') ) AND deleted='0'AND is_template='0'AND glpi_computers.FK_entities IN (0)
ORDER BY name DESC, ID DESC 0.001
6 select *
FROM glpi_type_computers
WHERE ID = '1' 0.001
7 SELECT count(*) AS cpt
FROM glpi_type_computers 0.001
8 SELECT *
FROM glpi_type_computers
WHERE ID <> '1'
ORDER BY name 0.001
9 select *
FROM glpi_type_computers
WHERE ID = '1' 0.000
10 select *
FROM glpi_dropdown_model
WHERE ID = '10' 0.001
11 SELECT count(*) AS cpt
FROM glpi_dropdown_model 0.000
12 SELECT *
FROM glpi_dropdown_model
WHERE ID <> '10'
ORDER BY name 0.001
13 select *
FROM glpi_dropdown_model
WHERE ID = '10' 0.000
14 SELECT count(*) AS cpt
FROM glpi_users 0.000
15 SELECT *
FROM glpi_dropdown_locations
WHERE (ID = '42') 0.000
16 SELECT count(*) AS cpt
FROM glpi_dropdown_locations
WHERE FK_entities='0' 0.001
17 SELECT *
FROM glpi_dropdown_locations
WHERE glpi_dropdown_locations.FK_entities = '0'
ORDER BY FK_entities, completename 0.002
18 SELECT *
FROM glpi_dropdown_locations
WHERE (ID = '42') 0.001
19 SELECT count(*) AS cpt
FROM glpi_groups
WHERE FK_entities='0' 0.001
20 SELECT *
FROM glpi_groups
WHERE ID <> '0' AND glpi_groups.FK_entities = '0'
ORDER BY name 0.001
21 select *
FROM glpi_dropdown_manufacturer
WHERE ID = '49' 0.000
22 SELECT count(*) AS cpt
FROM glpi_dropdown_manufacturer 0.001
23 SELECT count(*) AS cpt
FROM glpi_users 0.000
24 SELECT *
FROM glpi_users
WHERE ID='6' 0.000
25 select *
FROM glpi_dropdown_os
WHERE ID = '3' 0.001
26 SELECT count(*) AS cpt
FROM glpi_dropdown_os 0.000
27 SELECT *
FROM glpi_dropdown_os
WHERE ID <> '3'
ORDER BY name 0.001
28 select *
FROM glpi_dropdown_os
WHERE ID = '3' 0.000
29 SELECT count(*) AS cpt
FROM glpi_dropdown_network 0.000
30 SELECT *
FROM glpi_dropdown_network
WHERE ID <> '0'
ORDER BY name 0.001
31 select *
FROM glpi_dropdown_os_version
WHERE ID = '3' 0.001
32 SELECT count(*) AS cpt
FROM glpi_dropdown_os_version 0.000
33 SELECT *
FROM glpi_dropdown_os_version
WHERE ID <> '3'
ORDER BY name 0.001
34 select *
FROM glpi_dropdown_os_version
WHERE ID = '3' 0.000
35 select *
FROM glpi_dropdown_domain
WHERE ID = '3' 0.001
36 SELECT count(*) AS cpt
FROM glpi_dropdown_domain 0.000
37 SELECT *
FROM glpi_dropdown_domain
WHERE ID <> '3'
ORDER BY name 0.001
38 select *
FROM glpi_dropdown_domain
WHERE ID = '3' 0.000
39 select *
FROM glpi_dropdown_os_sp
WHERE ID = '2' 0.000
40 SELECT count(*) AS cpt
FROM glpi_dropdown_os_sp 0.000
41 SELECT *
FROM glpi_dropdown_os_sp
WHERE ID <> '2'
ORDER BY name 0.001
42 select *
FROM glpi_dropdown_os_sp
WHERE ID = '2' 0.000
43 select *
FROM glpi_dropdown_state
WHERE ID = '1' 0.001
44 SELECT count(*) AS cpt
FROM glpi_dropdown_state 0.000
45 SELECT *
FROM glpi_dropdown_state
WHERE ID <> '1'
ORDER BY name 0.001
46 select *
FROM glpi_dropdown_state
WHERE ID = '1' 0.000
47 SELECT *
FROM glpi_ocs_link
WHERE glpi_id='22' 0.001
48 SELECT count(*) AS cpt
FROM glpi_dropdown_auto_update 0.001
49 SELECT *
FROM glpi_dropdown_auto_update
WHERE ID <> '0'
ORDER BY name 0.001
50 SELECT ocs_server_id
FROM glpi_ocs_link
WHERE glpi_ocs_link.glpi_id='22' 0.001
51 SELECT ocs_server_id
FROM glpi_ocs_link
WHERE glpi_ocs_link.glpi_id='22' 0.001
52 SELECT *
FROM glpi_ocs_config
WHERE ID='1' 0.001
53 SELECT ocs_agent_version
FROM glpi_ocs_link
WHERE (glpi_id = '22') 0.001 Unknown column 'ocs_agent_version' in 'field list'
54 SELECT *
FROM glpi_computers
WHERE (ID = 22) 0.002
55 SELECT count(*) AS NB, ID, device_type, FK_device, specificity
FROM glpi_computer_device
WHERE FK_computers = '22' GROUP BY device_type, FK_device, specificity
ORDER BY device_type, ID 0.002
56 SELECT *
FROM glpi_device_processor
WHERE (ID = 7) 0.001
57 SELECT *
FROM glpi_device_ram
WHERE (ID = 11) 0.001
58 select *
FROM glpi_dropdown_ram_type
WHERE ID = '5' 0.000
59 SELECT *
FROM glpi_device_ram
WHERE (ID = 12) 0.001
60 select *
FROM glpi_dropdown_ram_type
WHERE ID = '5' 0.000
61 SELECT *
FROM glpi_device_ram
WHERE (ID = 15) 0.001
62 select *
FROM glpi_dropdown_ram_type
WHERE ID = '5' 0.000
63 SELECT *
FROM glpi_device_ram
WHERE (ID = 16) 0.001
64 select *
FROM glpi_dropdown_ram_type
WHERE ID = '5' 0.000
65 SELECT *
FROM glpi_device_hdd
WHERE (ID = 9) 0.001
66 SELECT *
FROM glpi_device_iface
WHERE (ID = 20) 0.001
67 SELECT *
FROM glpi_device_drive
WHERE (ID = 2) 0.001
68 SELECT *
FROM glpi_device_drive
WHERE (ID = 11) 0.000
69 SELECT *
FROM glpi_device_gfxcard
WHERE (ID = 7) 0.000
70 SELECT *
FROM glpi_device_pci
WHERE (ID = 8) 0.001
71 SELECT *
FROM glpi_device_pci
WHERE (ID = 3)
Merci de votre aide
GLPI 0.86.61 OCS Inventory : 2
OS : Debian Lenny sur ESX=> liaison AD 2008R2 + Exchange 2010
130 postes + 27 serveurs
Offline
c'est une machine remontée d'OCS ?
Vous n'avez eut aucun message d'erreur lors de la mise à jour ?
Pouvez vous reessayer une mise à jour ?
Vous avez bien le droit de voir tous les tickets ?
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
vous avez bien dans la table glpi_ocs_link le champs ocs_agent_version ?
Offline
Pour qu'il refasse l'update de la version n-1 vers la version SVN il faut lui faire croire que votre version est une n-1.
Pour cela il faut aller modifier directement dans le base de données le champ version de la table glpi_config et le mettre à n-1.
Dans le cas 0.68.3 -> 0.7 SVN :
UPDATE glpi_config SET version= ' 0.68.3' WHERE ID=1
Ensuite la mise à jour doit se lancer toute seule.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Aucun message d'erreur lors de la MAJ, j'ai tous les droits "super-admin"
Merci j'essaye, et oui j'ai éssayé plusieurs fois :-)
J'avais une version Beta 0.7
EDIT: la manipulation "UPDATE glpi_config SET version= ' 0.68.3' WHERE ID=1" a très bien fonctionnée.
Tout est rentré dans l'ordre, sachant que j'utilisais une Beta 0.7 (pas la SVN).
Merci beaucoup, si j'ai d'autre soucis je les remonte :-)
Last edited by siegfried (2007-10-01 11:52:07)
GLPI 0.86.61 OCS Inventory : 2
OS : Debian Lenny sur ESX=> liaison AD 2008R2 + Exchange 2010
130 postes + 27 serveurs
Offline
Pages: 1
Topic closed