Projet

Général

Profil

Actions

Anomalie #1887

ouvert

Fatal error adding contribution when no type is present

Ajouté par Johan Cwiklinski il y a 22 jours. Mis à jour il y a 21 jours.

Statut:
Résolu
Priorité:
Normal
Assigné à:
Catégorie:
Core
Version cible:
Début:
31/10/2024
Echéance:
% réalisé:

100%

Temps estimé:
Version utilisée:

Description

If one removes (or reassign) all contributions types to the same (say only fees), trying to add a donation (in that example) will fail

Type: ErrorException
Code: 0
Message: Undefined array key 0
File: /var/www/svn_softs/galette_demo.git/galette/lib/Galette/Controllers/Crud/ContributionsController.php
Line: 173
Trace: #0 /var/www/svn_softs/galette_demo.git/galette/lib/Galette/Controllers/Crud/ContributionsController.php(173): {closure}()
#1 [internal function]: Galette\Controllers\Crud\ContributionsController->add()
#2 /var/www/svn_softs/galette_demo.git/galette/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array()
#3 /var/www/svn_softs/galette_demo.git/galette/vendor/php-di/slim-bridge/src/ControllerInvoker.php(47): Invoker\Invoker->call()
#4 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/Routing/Route.php(363): DI\Bridge\Slim\ControllerInvoker->__invoke()
#5 /var/www/svn_softs/galette_demo.git/galette/lib/Galette/Middleware/Authenticate.php(166): Slim\Routing\Route->handle()
#6 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): Galette\Middleware\Authenticate->__invoke()
#7 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#8 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle()
#9 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle()
#10 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run()
#11 /var/www/svn_softs/galette_demo.git/galette/vendor/akrabat/rka-slim-session-middleware/RKA/SessionMiddleware.php(66): Slim\Routing\RouteRunner->handle()
#12 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): RKA\SessionMiddleware->process()
#13 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/csrf/src/Guard.php(482): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#14 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Csrf\Guard->process()
#15 /var/www/svn_softs/galette_demo.git/galette/lib/Galette/Middleware/Language.php(68): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#16 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Galette\Middleware\Language->__invoke()
#17 /var/www/svn_softs/galette_demo.git/galette/lib/Galette/Middleware/Telemetry.php(69): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#18 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Galette\Middleware\Telemetry->__invoke()
#19 /var/www/svn_softs/galette_demo.git/galette/includes/main.inc.php(177): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#20 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): Closure->{closure}()
#21 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#22 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\RoutingMiddleware->process()
#23 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#24 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process()
#25 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#26 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process()
#27 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#28 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle()
#29 /var/www/svn_softs/galette_demo.git/galette/vendor/slim/slim/Slim/App.php(193): Slim\App->handle()
#30 /var/www/svn_softs/galette_demo.git/galette/includes/main.inc.php(209): Slim\App->run()
#31 /var/www/svn_softs/galette_demo.git/galette/webroot/index.php(50): require_once('...')
#32 {main}
Actions

Formats disponibles : Atom PDF