tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
183 stars 96 forks source link

[BUG] Error 500 at Plugins after Upgrading #533

Closed dominikjas closed 10 months ago

dominikjas commented 10 months ago

Describe the bug Hello,

after I updated the docker-image I added the charset and serverversion at the Database_URL and it seemed like everything is working, but when I click on the plugins button I am getting a Error 500. I did the following:

rm -r cache/* /opt/kimai/bin/console cache:clear --env=prod /opt/kimai/bin/console cache:warmup --env=prod /opt/kimai/bin/console assets:install cd /var chown -R :www-data . chmod -R g+r . chmod -R g+rw .

To Reproduce Steps to reproduce the behaviour: Click on Plugins: image image

This is the log message:

[2023-08-21T16:32:06.312824+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\
Component\ErrorHandler\Error\UndefinedMethodError: 
"Attempted to call an undefined method named "setPayload" of class "App\Event\PageActionsEvent". 
Did you mean to call "getPayload"?" at /opt/kimai/var/plugins/KioskBundle/EventSubscriber/PluginActionsSubscriber.php line 65 

{"exception":"[object] (Symfony\\Component\\
ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"setPayload\" of 
class \"App\\Event\\PageActionsEvent\". Did you mean to call \"getPayload\"? at 
opt/kimai/var/plugins/KioskBundle/EventSubscriber/PluginActionsSubscriber.php:65)"} []
localhost:8001 172.16.1.2 - - [21/Aug/2023:17:32:06 +0100] "GET /de_DE/admin/plugins/ HTTP/1.1" 500 1957 

Desktop (please complete the following information):

Server:

Docker compose file (with passwords redacted)

version: '3.5' services:

sqldb: image: mysql:5.7 hostname: kunde-zeiterfassung-mysql volumes:

volumes: kimai-var: kimai-mysql: kimai-custom: kimai-apache2:

networks: kunde-zeiterfassung_network: external: true

kevinpapst commented 10 months ago

Upgrade the plugins to their latest version. You get them at Lemonsqueezy