Bonjour,
je ne sais pas si c'est ici l'endroit le plus adapté pour ma question donc je pose ma problématique ici en attendant confirmation ou infirmation.
Mon contexte :
Je suis missionné par un client ayant une boutique Prestashop en ligne pour résoudre son problème d'importation.
Je suis dev php junior, je n'ai jamais bossé avec Prestashop auparavant mais je suis motivé en tant que dev à résoudre sa problématique.
Contexte technique :
- Prestashop 1.6.1.24
- PHP 7.2
- module B2bmontres activé
- module Matterhorn activé
J'ai des logs d'erreurs du jour :
PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable
erreur qui est présente 206 fois sur les 220 erreurs...
Ensuite j'ai :
PHP message: PHP Notice: Undefined variable: advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 227
PHP message: PHP Notice: Undefined variable: link_advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 228" while reading response header from upstream, client: ****.:***:***:****:****:add2:***:****, server: presta16.blabla.com, request: "GET /admin_presta16/index.php?controller=AdminDashboard&token=b82c27bf2b3f37ab7e4277874e653f31 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "presta16.blabla.com", referrer: "https://presta16.blabla.com/admin_presta16/index.php?controller=AdminLogin&token=6384d03adca4b570d4a6cc0de283e5c9"
PHP message: PHP Notice: Undefined variable: advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 227
PHP message: PHP Notice: Undefined variable: link_advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 228" while reading response header from upstream, client: ***.***.***.***, server: presta16.blabla.com, request: "GET /admin_presta16/index.php?controller=AdminDashboard&token=b82c27bf2b3f37ab7e4277874e653f31 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "presta16.blabla.com", referrer: "https://presta16.blabla.com/admin_presta16/index.php?controller=AdminLogin&token=6384d03adca4b570d4a6cc0de283e5c9"
2020/05/27 11:50:33 [error] 22365#22365: *401501 open() "/var/www/presta16/img/app_icon.png" failed (2: No such file or directory), client: **.**.***.***, server: presta16.blabla.com, request: "GET /img/app_icon.png HTTP/2.0", host: "presta16.blabla.com"
PHP message: PHP Notice: Undefined variable: advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 227
PHP message: PHP Notice: Undefined variable: link_advice in /var/www/presta16/modules/psaddonsconnect/psaddonsconnect.php on line 228" while reading response header from upstream, client: **.**.***.***, server: presta16.blabla.com, request: "GET /admin_presta16/index.php?controller=AdminDashboard&token=b82c27bf2b3f37ab7e4277874e653f31 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "presta16.blabla.com", referrer: "https://presta16.blabla.com/admin_presta16/index.php?controller=AdminLogin&token=6384d03adca4b570d4a6cc0de283e5c9&redirect=AdminDashboard"
2020/05/27 11:50:48 [error] 22365#22365: *401501 FastCGI sent in stderr: "ay or an object that implements Countable in /var/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:48 [error] 22365#22365: *401501 FastCGI sent in stderr: "be an array or an object that implements Countable in /var/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:48 [error] 22365#22365: *401501 FastCGI sent in stderr: "ter must be an array or an object that implements Countable in /var/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:49 [error] 22365#22365: *401501 FastCGI sent in stderr: "): Parameter must be an array or an object that implements Countable in /var/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:49 [error] 22365#22365: *401501 FastCGI sent in stderr: "r/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:49 [error] 22365#22365: *401501 FastCGI sent in stderr: ": count(): Parameter must be an array or an object that implements Countable in /var/www/presta16/classes/ObjectModel.php on line 644
2020/05/27 11:50:59 [error] 22365#22365: *401501 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/presta16/classes/controller/AdminController.php on line 551
2020/05/27 11:51:00 [error] 22365#22365: *401501 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/presta16/classes/controller/AdminController.php on line 551" while reading response header from upstream, client: **.**.***.***, server: presta16.blabla.com, request: "POST /admin_presta16/index.php?controller=AdminGamification&token=32a8300e9c1ef6f5659d04086d6ac06e HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "presta16.blabla.com", referrer: "https://presta16.blabla.com/admin_presta16/index.php?controller=AdminEciMatterhornTask&token=bc30e66dbc26fd976f96806eaf01bb0a"
Des pistes de solution ou carrément une ou des solutions ?
Merci d'avance