Compatibilité GRR et php8.0

  • cbuisine
  • Topic Author
  • New Member
  • New Member
More
2 years 2 months ago #4139 by cbuisine
Compatibilité GRR et php8.0 was created by cbuisine
Bonjour,

J'ai voulu migrer ma version php vers 8.0 et la boum ! plus de GRR
voici le message d'erreurs :

[Wed Feb 02 14:23:22.709623 2022] [php:error] [pid 36825] [client 10.150.80.1:53186] PHP Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in /var/www/grr/index.php:43\nStack trace:\n#0 /var/www/grr/index.php(43): mysqli_query()\n#1 {main}\n thrown in /var/www/grr/index.php on line 43, referer:  grrtest.domaine.fr/
[Wed Feb 02 14:23:32.777164 2022] [php:error] [pid 36824] [client 10.150.80.2:53286] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/grr/day.php:255\nStack trace:\n#0 {main}\n thrown in /var/www/grr/day.php on line 255, referer: grrtest.domaine.fr/login.php
[Wed Feb 02 14:23:51.211283 2022] [php:error] [pid 36823] [client 10.150.80.2:53287] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/grr/day.php:255\nStack trace:\n#0 {main}\n thrown in /var/www/grr/day.php on line 255, referer: grrtest.domaine.fr/day.php?area=1
[Wed Feb 02 14:24:17.916036 2022] [php:error] [pid 36822] [client 10.150.80.2:53294] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/grr/day.php:255\nStack trace:\n#0 {main}\n thrown in /var/www/grr/day.php on line 255, referer: grrtest.domaine.fr/day.php?area=1
[Wed Feb 02 14:24:34.660469 2022] [php:error] [pid 36821] [client 10.150.80.1:53209] PHP Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in /var/www/grr/index.php:43\nStack trace:\n#0 /var/www/grr/index.php(43): mysqli_query()\n#1 {main}\n thrown in /var/www/grr/index.php on line 43, referer: grrtest.domaine.fr/
[Wed Feb 02 14:24:46.448422 2022] [php:error] [pid 36825] [client 10.150.80.2:53298] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/grr/day.php:255\nStack trace:\n#0 {main}\n thrown in /var/www/grr/day.php on line 255, referer: grrtest.domaine.fr/day.php?area=1
[

Je doute de la compatibilité. Quelqu'un a t-il effectué cet manip. Ma version de GRR est 3.40
Merci pour vos retours
 

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

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 2 months ago #4141 by Yan
Replied by Yan on topic Compatibilité GRR et php8.0
Bonjour,
c'est assez prévisible, GRR 3.4.0 est trop ancien !
Vous aurez peut-être plus de succès avec la dernière version stable : github.com/JeromeDevome/GRR/releases/tag/v.3.4.2e
Merci de venir nous rapporter votre succès ou sinon les problèmes que vous détecterez.
Cordialement,
YN

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

  • cbuisine
  • Topic Author
  • New Member
  • New Member
More
2 years 2 months ago #4142 by cbuisine
Replied by cbuisine on topic Compatibilité GRR et php8.0
Installation faite avec GRR3.42 et php8.
Résultat page blanche et log erreur :

[Fri Feb 04 08:59:19.301436 2022] [php:error] [pid 49246] [client 192.168.xx.x:53844] PHP Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in /var/www/grr342/index.php:44\nStack trace:\n#0 /var/www/grr342/index.php(44): mysqli_query()\n#1 {main}\n thrown in /var/www/grr342/index.php on line 44, referer: grrtest.xxxxx.fr/
[Fri Feb 04 09:01:40.229230 2022] [php:error] [pid 49252] [client 192.168.xx.x:53859] PHP Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in /var/www/grr342/index.php:44\nStack trace:\n#0 /var/www/grr342/index.php(44): mysqli_query()\n#1 {main}\n thrown in /var/www/grr342/index.php on line 44, referer: grrtest.xxxxx.fr/

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

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 2 months ago #4143 by Yan
Replied by Yan on topic Compatibilité GRR et php8.0
Bonjour,
désolé, ça m'avait échappé. Voici un correctif : github.com/JeromeDevome/GRR/commit/313c0...e54c7b367a5bef6ca854
Merci pour votre retour.
Cordialement,
YN

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

  • Yan
  • Developpeur GRR
  • Developpeur GRR
More
2 years 2 months ago #4144 by Yan
Replied by Yan on topic Compatibilité GRR et php8.0
Encore quelques ajustements pour l'installation de GRR3.4.3RC sur php8.0.6.
github.com/JeromeDevome/GRR/commit/0b707...432a4746d356f3ed2065
N'hésitez pas si vous débusquez d'autres erreurs ;-)
Cordialement,
YN

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

  • cbuisine
  • Topic Author
  • New Member
  • New Member
More
2 years 2 months ago #4145 by cbuisine
Replied by cbuisine on topic Compatibilité GRR et php8.0
Bonjour, installation faite GRR 3.42 avec php8.
Message d'erreur à la fin qui apparemment n’empêche pas le fonctionnement
erreurs d'insertion dans les tables grr_type_area, grr_setting
J'arrive bien sur la page d'administration et peux créer des items.
C'est une primo install, je n'ai pas encore testé la maj de 3.40 vers 3.42
Merci pour les correctifs

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

Moderators: Yan