XAMPP et GRR

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4049 by TITI
XAMPP et GRR was created by TITI
Bonjour,

J'ai installé sur une machine qui va servir de serveur XAMPP et GRR, quand je suis sur la machine j'accède bien à Grr par http://localhost/grr, mais je n'y accède pas en mettant http://NomMachine/grr ou http://@ip/grr (donc je ne peux pas y accéder depuis les autres postes de mon réseau) j'ai le message suivant :

Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in C:\Logiciel\xampp\htdocs\grr\index.php:44 Stack trace: #0 C:\Logiciel\xampp\htdocs\grr\index.php(44): mysqli_query('SET NAMES utf8') #1 {main} thrown in C:\Logiciel\xampp\htdocs\grr\index.php on line 44

Pourriez vous m'aider ?

Merci

Cordialement

Please Log in or Create an account to join the conversation.

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 4 months ago #4051 by Yan
Replied by Yan on topic XAMPP et GRR
Bonjour
Quelle version de Grr avez-vous installée ?
A priori Xampp n’accepte les connexions que depuis la machine : avez-vous fait les réglages nécessaires pour avoir un vrai serveur web ? Sans compter les réglages de sécurité !
Si tout est Ok sur ces points, il y a un bug… à corriger si vous donnez la version fautive.
Cordialement
YN

Please Log in or Create an account to join the conversation.

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4053 by TITI
Replied by TITI on topic XAMPP et GRR
Bonjour,
Il s'agit de la version GRR 3.4.2d.
Aujourd'hui j'ai installé GLPI et les accès fonctionnent correctement en http://localhost/glpi, mais aussi en http://NomMachine/glpi et http://@ip/glpi, je n'ai rien fait de particulier pour la configuration de GLPI
Y aurait il un paramètre dans GRR à modifier ou alors comme vous le mentionner un bug dans cette version ?
Merci pour votre aide

Cordialement

Please Log in or Create an account to join the conversation.

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4055 by TITI
Replied by TITI on topic XAMPP et GRR
Bonjour,

J'ai tenté d'installer la verion 3.4.0.
L'installation se passe bien, mais quand je veux rentrer dans l'application après avoir saisi le nom d'utilisateur et le mot de passe (du compte administrateur) voilà ce que j'obtiens :

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3760

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3768

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3787

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3789

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3790

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3791

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3792

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3794

Warning: Trying to access array offset on value of type int in C:\Logiciel\xampp\htdocs\grr\include\functions.inc.php on line 3795

Merci

Cordialement

Please Log in or Create an account to join the conversation.

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 4 months ago #4056 by Yan
Replied by Yan on topic XAMPP et GRR
Bonjour
Grr 3.4.0 n’est pas compatible avec php7.
Si vous ne pouvez pas attendre le correctif sur la 3.4.2, je vous conseille d’installer la dernière 3.4.1 sur un php 5.6 ou 7.2. Je pense qu’il ne devrait pas y avoir de surprise, mais il reste quelques bugs…
Cordialement
YN

Please Log in or Create an account to join the conversation.

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4057 by TITI
Replied by TITI on topic XAMPP et GRR
Bonjour

Merci pour votre réponse.
Le paquet Xampp que j'ai installé, installe une version PHP 8.0.13
Je ne suis effectivement pas pressé, je peux attendre la correction sur la version 3.42.
(Je vais essayé de voir avec la version 3.4.1, pour faire un test)
Encore merci

Cordialement

Please Log in or Create an account to join the conversation.

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 4 months ago #4058 by Yan
Replied by Yan on topic XAMPP et GRR
Bonjour
Merci pour ces précisions.
J’ajoute donc l’étude du passage à php8 dans la to-do list.
Cordialement
YN

Please Log in or Create an account to join the conversation.

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4061 by TITI
Replied by TITI on topic XAMPP et GRR
Bonjour,
Pour info (si cela peut aider).
1) J'ai supprimé l'installation de GRR 3.4.2d (Suppression du dossier Grr dans Htdocs et de la base Mysql)
2) j'ai installé la version 3.4.1g.
A la fin de l'installation je me connecte parfaitement avec le compte administrateur,
Puis si je ferme le navigateur, quand j'essaie de m'y reconnecter (http://localhost/grr), j'ai le message suivant :
"Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in C:\Logiciel\xampp\htdocs\grr\index.php:44 Stack trace: #0 C:\Logiciel\xampp\htdocs\grr\index.php(44): mysqli_query('SET NAMES utf8') #1 {main} thrown in C:\Logiciel\xampp\htdocs\grr\index.php on line 44"

3) j'ai retenté avec la version 3.4.2 et idem

J'avoue que je n'y comprends plus rien

A la première installation de la version 3.4.2, début de notre conversation, j'arrivais bien à ouvrir l'application en http://localhost/grr,

Cordialement

Please Log in or Create an account to join the conversation.

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 4 months ago - 2 years 4 months ago #4062 by Yan
Replied by Yan on topic XAMPP et GRR
Bonjour,
je pense qu'il suffit de remplacer la ligne 44 du fichier index.php de la version 3.4.2 par
Code:
@mysqli_query($db, "SET NAMES utf8");

Meilleurs voeux pour 2022 !
YN
Last edit: 2 years 4 months ago by Yan.

Please Log in or Create an account to join the conversation.

  • TITI
  • Topic Author
  • New Member
  • New Member
More
2 years 4 months ago #4063 by TITI
Replied by TITI on topic XAMPP et GRR
Bonjour,

Tout d'abord Merci et aussi Très très belle Année 2022
Je viens de vérifier le contenu du fichier index.php et j'ai déjà
// Premier test
@mysqli_query("SET NAMES utf8");

Cordialement

Please Log in or Create an account to join the conversation.

Moderators: Yan