mxgross / EasyBackupBundle

Kimai 2 Plugin for easier backups
MIT License
24 stars 6 forks source link

Kimai2 settings yield 500 error after installation of branch 53-plugin-compatibility-for-kimai-200-beta-and-higher #56

Closed snapet closed 1 year ago

snapet commented 1 year ago

Hi,

Just installed the branch mentioned in subject and the plugin functions correctly. However, when clicking on "Settings" under "System" I get a 500 "Something is wrong" error. In Doctor > Logs I find below error:

[2023-04-06T10:22:42.727078+02:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "setSection" of class "App\Form\Model\SystemConfiguration". Did you mean to call "getSection"?" at /var/www/kimai2/var/plugins/EasyBackupBundle/EventSubscriber/SystemConfigurationSubscriber.php line 35 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"setSection\" of class \"App\\Form\\Model\\SystemConfiguration\".\nDid you mean to call \"getSection\"? at /var/www/kimai2/var/plugins/EasyBackupBundle/EventSubscriber/SystemConfigurationSubscriber.php:35)"} [] [2023-04-06T10:22:42.726062+02:00] php.CRITICAL: Uncaught Error: Call to undefined method App\Form\Model\SystemConfiguration::setSection() {"exception":"[object] (Error(code: 0): Call to undefined method App\\Form\\Model\\SystemConfiguration::setSection() at /var/www/kimai2/var/plugins/EasyBackupBundle/EventSubscriber/SystemConfigurationSubscriber.php:35)"} [] [2023-04-06T10:22:42.703555+02:00] request.INFO: Matched route "system_configuration". {"route":"system_configuration","route_parameters":{"_route":"system_configuration","_controller":"App\\Controller\\SystemConfigurationController::indexAction","_locale":"en_US"},"request_uri":"https://kimai.example.com/en_US/admin/system-config/","method":"GET"} []

Thanks for your software and hopefully this helps getting your plugin released for the 2.0 series of Kimai.

best, peter

mxgross commented 1 year ago

Hi peter,

please pull the branch 'main', I just fixed the settings page error, it should be running now.

snapet commented 1 year ago

Thanks! This solved it indeed.

best, peter