Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout results in crash with 1.2.31 #5308

Closed
gramakri opened this issue Jul 4, 2023 · 13 comments · Fixed by #5309
Closed

Logout results in crash with 1.2.31 #5308

gramakri opened this issue Jul 4, 2023 · 13 comments · Fixed by #5309
Labels

Comments

@gramakri
Copy link
Contributor

gramakri commented Jul 4, 2023

Checklist

  • [X ] I verified that Kanboard is correctly installed
  • [X ] I verified that the problem does not come from a plugin
  • [ X] I verified that the problem is not already reported
  • [ X] I understand that Kanboard is in maintenance mode. It doesn't mean it's abandoned, but there is no significant feature development

Actual behaviour

In latest release , 1.2.31, clicking logout results in a crash. The user is also not logged out

Expected behaviour

User is redirected to login form. Behavior is not seen in 1.2.30

Steps to reproduce

  • Install Kanboard
  • Authentication is configure as LDAP (via cloudron)
  • See the current backtrace on logout below

Screenshots

Just a white screen on logout:
image

Dev console:

image

Logs

09:07:22 - [Tue Jul 04 03:37:22.579511 2023] [php:error] [pid 30] [client 172.18.0.1:34770] PHP Fatal error:  Uncaught TypeError: Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /app/code/app/Core/Session/SessionManager.php on line 62 and defined in /app/code/vendor/symfony/event-dispatcher/EventDispatcher.php:48\nStack trace:\n#0 /app/code/app/Core/Session/SessionManager.php(62): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch()\n#1 /app/code/app/Controller/AuthController.php(61): Kanboard\\Core\\Session\\SessionManager->close()\n#2 /app/code/app/Core/Controller/Runner.php(77): Kanboard\\Controller\\AuthController->logout()\n#3 /app/code/app/Core/Controller/Runner.php(31): Kanboard\\Core\\Controller\\Runner->executeController()\n#4 /app/code/index.php(9): Kanboard\\Core\\Controller\\Runner->execute()\n#5 {main}\n  thrown in /app/code/vendor/symfony/event-dispatcher/EventDispatcher.php on line 48

Configuration

  • Kanboard version: 1.2.31
  • Database type and version: MySQL 8
  • PHP version: 8.1
  • OS: Ubuntu (cloudron)
  • Browser: Firefox
@gramakri gramakri added the bug label Jul 4, 2023
@gramakri gramakri changed the title Logout results in crash Logout results in crash with 1.2.31 Jul 4, 2023
@gramakri
Copy link
Contributor Author

gramakri commented Jul 4, 2023

I have managed to reproduce this even without LDAP. So, we can rule that part out. There are no plugins as well, this is just a fresh installation and no content. Just login with admin/admin and logout.

@rilshok
Copy link

rilshok commented Jul 4, 2023

I have the same problem. Using the latest docker container the problem is reproduced. In version v1.2.29 this problem is not observed

@zjeeraar
Copy link

zjeeraar commented Jul 4, 2023

I have the same issue, coming from 1.2.30, upgraded to 1.2.31.
With Firefox the following error can be seen:

Fatal error: Uncaught TypeError: Symfony\Component\EventDispatcher\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/app/app/Core/Session/SessionManager.php on line 62 and defined in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:48 Stack trace: #0 /var/www/app/app/Core/Session/SessionManager.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #1 /var/www/app/app/Controller/AuthController.php(61): Kanboard\Core\Session\SessionManager->close() #2 /var/www/app/app/Core/Controller/Runner.php(77): Kanboard\Controller\AuthController->logout() #3 /var/www/app/app/Core/Controller/Runner.php(31): Kanboard\Core\Controller\Runner->executeController() #4 /var/www/app/index.php(9): Kanboard\Core\Controller\Runner->execute() #5 {main} thrown in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php on line 48

@danilo85-br
Copy link

I have the same issue, coming from 1.2.30, upgraded to 1.2.31. With Firefox the following error can be seen:

Fatal error: Uncaught TypeError: Symfony\Component\EventDispatcher\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/app/app/Core/Session/SessionManager.php on line 62 and defined in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:48 Stack trace: #0 /var/www/app/app/Core/Session/SessionManager.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #1 /var/www/app/app/Controller/AuthController.php(61): Kanboard\Core\Session\SessionManager->close() #2 /var/www/app/app/Core/Controller/Runner.php(77): Kanboard\Controller\AuthController->logout() #3 /var/www/app/app/Core/Controller/Runner.php(31): Kanboard\Core\Controller\Runner->executeController() #4 /var/www/app/index.php(9): Kanboard\Core\Controller\Runner->execute() #5 {main} thrown in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php on line 48

I've got the same error. I've installed with only the php files on a subdirectory.

@talpa
Copy link

talpa commented Jul 5, 2023

The same problem

@stultitiophobia
Copy link

stultitiophobia commented Jul 5, 2023

Same here, too

But not on logoff but on cronjob execution

@mandrewsan
Copy link

Same!

@ecerichter
Copy link

Same problem with logout here.

@ngosang
Copy link
Contributor

ngosang commented Jul 6, 2023

Same problem

PHP message: PHP Fatal error:  Uncaught TypeError: Symfony\Component\EventDispatcher\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/app/app/Core/Session/SessionManager.php on line 62 and defined in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:48"
Stack trace:"
#0 /var/www/app/app/Core/Session/SessionManager.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()"
#1 /var/www/app/app/Controller/AuthController.php(61): Kanboard\Core\Session\SessionManager->close()"
#2 /var/www/app/app/Core/Controller/Runner.php(77): Kanboard\Controller\AuthController->logout()"
#3 /var/www/app/app/Core/Controller/Runner.php(31): Kanboard\Core\Controller\Runner->executeController()"
#4 /var/www/app/index.php(9): Kanboard\Core\Controller\Runner->execute()"
#5 {main}"
  thrown in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php on line 48"
2023/07/06 18:18:27 [error] 15#15: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Symfony\Component\EventDispatcher\EventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/app/app/Core/Session/SessionManager.php on line 62 and defined in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:48
Stack trace:
#0 /var/www/app/app/Core/Session/SessionManager.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#1 /var/www/app/app/Controller/AuthController.php(61): Kanboard\Core\Session\SessionManager->close()
#2 /var/www/app/app/Core/Controller/Runner.php(77): Kanboard\Controller\AuthController->logout()
#3 /var/www/app/app/Core/Controller/Runner.php(31): Kanboard\Core\Controller\Runner->executeController()
#4 /var/www/app/index.php(9): Kanboard\Core\Controller\Runner->execute()
  thrown in /var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php on line 48" while reading response header from upstream, client: 172.18.0.6, server: localhost, request: "GET /logout HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "kanboardvvvv"

@espiney
Copy link

espiney commented Jul 8, 2023

I have a fresh install, and I'm getting this as well.

Do we know a work around?

@petski
Copy link
Contributor

petski commented Jul 8, 2023

#5309

@fguillot fguillot linked a pull request Jul 8, 2023 that will close this issue
5 tasks
@ecerichter
Copy link

The patch works for me. Thanks!

@fguillot
Copy link
Member

Fixed in v1.2.32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.