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 2019-05-31 14:46:13

dj59
Member
Registered: 2019-05-31
Posts: 3

Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

Bonjour,

plugin concerné : GLPI-dashboard_plugin-0.9.7.zip

J'ai suivi l'installation de GLPI sur un 2012 R2 depuis ms-sec.fr/?p=2759

La configuration de base semble fonctionnelle et les extensions actives (sauf APCu qui plante le GLPI et donc commenté dans le php.ini).

Cependant j'ai une erreur 500 - Erreur interne au serveur. lorsque je suis sur la page d'accueil du plugin dashboard (hors serveur) et une autre erreur sur la meme page (depuis le serveur)  :

PHP Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in C:\Glpi\9.4.2\inc\dbmysql.class.php:319
Stack trace:
#0 C:\Glpi\9.4.2\plugins\dashboard\front\main.php(274): DBmysql->fetch_assoc(false)
#1 {main}
thrown in C:\Glpi\9.4.2\inc\dbmysql.class.php on line 319

J'ai également cette erreur qui revient souvent dans les logs sql :

[2019-05-31 12:38:01] glpisqllog.ERROR: DBmysql::query() in C:\Glpi\9.4.2\inc\dbmysql.class.php line 177
  *** MySQL query error:
  SQL: SELECT COUNT(glpi_tickets.id) as total       
      FROM glpi_tickets
      LEFT JOIN glpi_entities ON glpi_tickets.entities_id = glpi_entities.id
      WHERE glpi_tickets.is_deleted = '0'
      AND DATE_FORMAT( glpi_tickets.date, '%Y' ) IN ()
      AND glpi_tickets.entities_id IN (0)
  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
      AND glpi_tickets.entities_id IN (0)' at line 5
  Backtrace :
  plugins\dashboard\front\main.php:273               
  {"user":"2@SRV-GLPI"}

Pour infos, les droits ont bien été placé sur le dossier Glpi (IIS_IUSRS , IUSRS et SERVICE RESEAU avec le privilège modification)

Une idée de l'origine du problème ? Un problème de configuration dans le fichier php.ini ?

Merci pour votre aide.

Offline

#2 2019-06-11 19:07:30

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

Mail envoyé ce jour au leader de ce plugin.
Il n'est pas écrit pour GLPI 9.4 qui n'accepte plus certaines fonctions d'appel de base de données, notamment les fetch_assoc


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2019-06-11 20:35:29

stdonato
Member
Registered: 2013-12-01
Posts: 15

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

yllen wrote:

Mail envoyé ce jour au leader de ce plugin.
Il n'est pas écrit pour GLPI 9.4 qui n'accepte plus certaines fonctions d'appel de base de données, notamment les fetch_assoc


Hi.  i an the plugin creator.
Where i can find info about functions no more suported  by GLPI 9.4.x ?

Offline

#4 2019-06-12 03:21:36

stdonato
Member
Registered: 2013-12-01
Posts: 15

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

Dj59, please select a time period for main page on config page inside plugin.
This period is used for first chart on main page.

Offline

#5 2019-06-13 14:34:36

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

stdonato wrote:

Hi.  i an the plugin creator.
Where i can find info about functions no more suported  by GLPI 9.4.x ?

You must write request by iterator: https://github.com/glpi-project/docdev/ … erator.rst
You can use Appliances to help you, but use of iterator is since 9.1 (https://forge.glpi-project.org/projects … repository)

For your bug
$result_y = $DB->query($query_y);   => $result_y = $DB->request($query_y);

//numero de anos para eixos Y

$conta_y = $DB->numrows($result_y);   => $conta_y = count($result_y);

$arr_years = array();

while ($row_y = $DB->fetch_assoc($result_y))    =>    {  foreach ($result_y as $id => $row_y) {

        $arr_years[] = $row_y['year'];                       

}


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2019-07-16 14:52:40

dj59
Member
Registered: 2019-05-31
Posts: 3

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

Thank you for your feedback.
I didn't fully understand what I had to do.
Can you guide me further?


stdonato, i have selected in config page inside plugin "-- Period in index page: All or Current Year" but nothing has changed.

yllen, I didn't understand what I had to do exactly.

Thank you again

Offline

#7 2019-07-17 15:46:46

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

dj59: you must just give time to stdonato to change the code of its plugin


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2019-07-17 17:20:43

dj59
Member
Registered: 2019-05-31
Posts: 3

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

yllen wrote:

dj59: you must just give time to stdonato to change the code of its plugin

Ok ! Thank you !

Offline

#9 2019-09-12 10:12:47

AvesValer
Banned
From: Russia
Registered: 2019-08-05
Posts: 13

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

Pour ma part, je pense pas que ça soit un problème du plugin, mais bien daccès au fichier.

Tu as essayé de refaire la manip en tant quadministrateur de lordinateur?

Je suis pas sous seven donc je peux pas apporter plus de précision, mais ça ressemble fortement à un problème de droits.

Offline

#10 2019-09-24 11:20:37

Rodney5
Member
Registered: 2019-09-24
Posts: 1

Re: Problème plugin avec GLPI 9.4.2 sous IIS et PHP x64 7.3.2

I also have very slow overall performance after upgrade to 9.4.1.1 from 9.4.1.0. I use Windows 2012 IIS and PHP 7.2 with Wincache enabled

Last edited by Rodney5 (2019-09-24 11:21:02)

Offline

Board footer

Powered by FluxBB