KatjaGlassConsulting / ApprovalBundle

A Kimai Plugin to manage weekly approval workflow
MIT License
12 stars 16 forks source link

1.1.0: Settings are crashing #63

Closed Sarmingsteiner closed 3 weeks ago

Sarmingsteiner commented 3 weeks ago

Unfortunately, "Settings" are crashing in 1.1.0.

KatjaGlassConsulting commented 3 weeks ago

Can you copy the lines from "doctor"-log what is crashing?

Sarmingsteiner commented 3 weeks ago

Here you go. Tried with PHP 8.1, 8.2 and 8.3:

[2024-11-03 16:39:34] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Activity" from namespace "KimaiPlugin\VacationBundle\Validator". Did you forget a "use" statement for "App\Entity\Activity"?" at (...)/kimai/var/plugins/ApprovalBundle/Form/SettingsForm.php line 117 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError(code: 0): Attempted to load class \"Activity\" from namespace \"KimaiPlugin\\VacationBundle\\Validator\".\nDid you forget a \"use\" statement for \"App\\Entity\\Activity\"? at (...)/kimai/var/plugins/ApprovalBundle/Form/SettingsForm.php:117)"} []
[2024-11-03 16:39:33] php.CRITICAL: Uncaught Error: Class "KimaiPlugin\VacationBundle\Validator\Activity" not found {"exception":"[object] (Error(code: 0): Class \"KimaiPlugin\\VacationBundle\\Validator\\Activity\" not found at (...)/kimai/var/plugins/ApprovalBundle/Form/SettingsForm.php:117)"} []
[2024-11-03 16:39:33] request.INFO: Matched route "approval_bundle_settings". {"route":"approval_bundle_settings","route_parameters":{"_route":"approval_bundle_settings","_controller":"KimaiPlugin\\ApprovalBundle\\Controller\\WeekReportController::settings","_locale":"de"},"request_uri":"(...)/kimai/public/de/approval/settings","method":"GET"} []
KatjaGlassConsulting commented 3 weeks ago

I see, I am using features from another plugin. I will update

KatjaGlassConsulting commented 3 weeks ago

fixed in latest release: https://github.com/KatjaGlassConsulting/ApprovalBundle/releases/tag/1.1.1 - please provide a short feedback or close when fixed.

Thanks for this quick reporting.

Sarmingsteiner commented 3 weeks ago

Yes, "Settings" work again in 1.1.1. Thanks for the real "quickfix"! 🥇