Project

General

Profile

Actions

Anomalie #1503

closed

L'historique Paypal ne s'affiche pas

Added by Guillaume Kulakowski almost 3 years ago. Updated almost 3 years ago.

Status:
Fermé
Priority:
Normal
Start date:
10/28/2020
Due date:
% Done:

100%

Estimated time:

Description

Bonjour,

lors de l'affichage de l'historique Paypal, j'ai un message d'erreur.

Ci-dessous la trace :

213.246.52.18 - 2020-10-28 16:50:12 - ERROR - Galette error:
Type: TypeError
Message: Argument 3 passed to Galette\Core\History::__construct() must be an instance of Galette\Core\Preferences, null given, called in /galette/shared/galette/plugins/galette-plugin-paypal/lib/GalettePaypal/PaypalHistory.php on line 92
File: /galette/releases/galette-0.9.4.1/galette/lib/Galette/Core/History.php
Line: 82
Trace: #0 /galette/shared/galette/plugins/galette-plugin-paypal/lib/GalettePaypal/PaypalHistory.php(92): Galette\Core\History->__construct(Object(Galette\Core\Db), Object(Galette\Core\Login), NULL)
#1 /galette/shared/galette/plugins/galette-plugin-paypal/_routes.php(409): GalettePaypal\PaypalHistory->__construct(Object(Galette\Core\Db), Object(Galette\Core\Login))
#2 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#3 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 /galette/releases/galette-0.9.4.1/galette/lib/Galette/Middleware/Authenticate.php(172): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 [internal function]: Galette\Middleware\Authenticate->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#7 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Galette\Middleware\Authenticate), Array)
#8 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#9 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#10 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#13 /galette/releases/galette-0.9.4.1/galette/vendor/akrabat/rka-slim-session-middleware/RKA/SessionMiddleware.php(47): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 [internal function]: RKA\SessionMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#15 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(RKA\SessionMiddleware), Array)
#16 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#17 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#18 /galette/releases/galette-0.9.4.1/galette/lib/Galette/Middleware/TrailingSlash.php(81): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 [internal function]: Galette\Middleware\TrailingSlash->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#20 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Array, Array)
#21 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#22 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#23 /galette/releases/galette-0.9.4.1/galette/lib/Galette/Middleware/Language.php(103): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#24 [internal function]: Galette\Middleware\Language->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#25 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Array, Array)
#26 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#27 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#28 /galette/releases/galette-0.9.4.1/galette/lib/Galette/Middleware/Telemetry.php(144): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#29 [internal function]: Galette\Middleware\Telemetry->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#30 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Array, Array)
#31 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#32 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#33 /galette/releases/galette-0.9.4.1/galette/lib/Galette/Middleware/CheckAcls.php(143): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#34 [internal function]: Galette\Middleware\CheckAcls->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#35 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Array, Array)
#36 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#37 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#38 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#39 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#40 /galette/releases/galette-0.9.4.1/galette/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#41 /galette/releases/galette-0.9.4.1/galette/includes/main.inc.php(187): Slim\App->run()
#42 /galette/releases/galette-0.9.4.1/galette/webroot/index.php(57): require_once('/home/borsalinu...')
#43 {main}

Version de Galette : v0.9.4.1
Version de Paypal : 1.8.0


Related issues 2 (0 open2 closed)

Related to Galette - Anomalie #1495: Bug? en clliquant sur Contenu des courrielsFerméJohan Cwiklinski10/20/2020

Actions
Precedes Plugins - Evolution #1505: Add code quality checksFerméJohan Cwiklinski10/29/2020

Actions
Actions #1

Updated by Johan Cwiklinski almost 3 years ago

  • Is duplicate of Anomalie #1495: Bug? en clliquant sur Contenu des courriels added
Actions #2

Updated by Johan Cwiklinski almost 3 years ago

  • Status changed from Nouveau to Rejeté

Duplique #1495 ; le problème corrigé pour la 0.9.4.2 à venir

Actions #3

Updated by Guillaume Kulakowski almost 3 years ago

J'ai appliqué b2157679cf6f789cf3938b79615da6034528d1c3 ça corrige bien #1504 mais pas #1503.

Actions #4

Updated by Johan Cwiklinski almost 3 years ago

  • Status changed from Rejeté to Nouveau

Ha oui, au temps pour moi ; l'erreur n'est pas au même endroit :)

Actions #5

Updated by Johan Cwiklinski almost 3 years ago

  • Status changed from Nouveau to In Progress
  • Assignee set to Johan Cwiklinski

J'ai ouvert une PR sur le miroir github avec le correctif :
https://github.com/galette/plugin-paypal/pull/1

Puisque ça n'impacte que le plugin, et que c'est le seul bug ouvert ; une nouvelle version devrait sortir rapidement.

Actions #6

Updated by Guillaume Kulakowski almost 3 years ago

Merci !!!

Par contre, avec le fixe j'ai:

 Message : Argument 3 passed to GalettePaypal\PaypalHistory::__construct() must be an instance of GalettePaypal\Preferences, instance of Galette\Core\Preferences given, called in /home/borsalinux-fr/gestion/shared/galette/plugins/galette-plugin-paypal/_routes.php on line 410 
Actions #7

Updated by Guillaume Kulakowski almost 3 years ago

Avec un

use Galette\Core\Preferences

c'est bon !

Actions #8

Updated by Johan Cwiklinski almost 3 years ago

Guillaume Kulakowski a écrit (#note-7):

Avec un

[...]

c'est bon !

J'ai zappé, en effet merci :)

Il faudrait que j'implémente les vérifications du code (cf. #1505) pour essayer d'éviter les cas du genre.

Actions #9

Updated by Johan Cwiklinski almost 3 years ago

  • Is duplicate of deleted (Anomalie #1495: Bug? en clliquant sur Contenu des courriels)
Actions #10

Updated by Johan Cwiklinski almost 3 years ago

  • Related to Anomalie #1495: Bug? en clliquant sur Contenu des courriels added
Actions #11

Updated by Johan Cwiklinski almost 3 years ago

Actions #12

Updated by Johan Cwiklinski almost 3 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
Actions #13

Updated by Johan Cwiklinski almost 3 years ago

  • Status changed from Résolu to Fermé
Actions #14

Updated by Manuel Her almost 3 years ago

J'ai une erreur "Page non trouvée" lorsque j'essaye de consulter les autres pages du log
l'url xxx/galette/webroot/plugins/paypal/logs/page/2

Manuel

Actions #15

Updated by Johan Cwiklinski almost 3 years ago

Manuel Her a écrit (#note-14):

J'ai une erreur "Page non trouvée" lorsque j'essaye de consulter les autres pages du log
l'url xxx/galette/webroot/plugins/paypal/logs/page/2

Manuel

Ça ne me semble pas lié au présent ticket ; il faudrait en ouvrir un nouveau.

Actions

Also available in: Atom PDF