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

Poll: click on vote results in an error #9578

Closed
rich20 opened this issue Nov 9, 2023 · 2 comments
Closed

Poll: click on vote results in an error #9578

rich20 opened this issue Nov 9, 2023 · 2 comments
Milestone

Comments

@rich20
Copy link
Member

rich20 commented Nov 9, 2023

To Reproduce

  • Create a poll
  • Clickk on Vote

Result
Kunena\Forum\Libraries\Forum\Topic\Poll\KunenaPoll::vote(): Argument #1 ($option) must be of type int, string given, called in .../components/com_kunena/src/Controllers/TopicController.php on line 2457

Call stack

| Function | Location

1 | () | JROOT/libraries/kunena/src/Forum/Topic/Poll/KunenaPoll.php:363
2 | Kunena\Forum\Libraries\Forum\Topic\Poll\KunenaPoll->vote() | JROOT/components/com_kunena/src/Controllers/TopicController.php:2457
3 | Kunena\Forum\Site\Controllers\TopicController->vote() | JROOT/libraries/kunena/src/Controller/KunenaController.php:323
4 | Kunena\Forum\Libraries\Controller\KunenaController->executeTask() | JROOT/libraries/kunena/src/Controller/KunenaController.php:226
5 | Kunena\Forum\Libraries\Controller\KunenaController->execute() | JROOT/components/com_kunena/src/Dispatcher/Dispatcher.php:108
6 | Kunena\Forum\Site\Dispatcher\Dispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:361
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:208
8 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:249
9 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:293
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:61
11 | require_once() | JROOT/index.php:32

System information

  • Joomla version: ‎4.4.1-dev
  • Joomla template: CASSIOPEIA
  • Kunena version: 6.2.1-DEV
  • Kunena template: Aurelia
  • Php version: 8.1.22
  • Database version: 10.5.22-MariaDB

Desktop

  • OS: Ubuntu 22.04.1 LTS
  • Browser: Chromium, Firefox and Opera
@rich20 rich20 added this to the 6.2 milestone Nov 9, 2023
@xillibit
Copy link
Member

xillibit commented Nov 9, 2023

It's when you don't select any option then click on vote

@rich20
Copy link
Member Author

rich20 commented Nov 9, 2023

Yes, if no option has been selected. There should be a hint instead of the error message if nothing has been selected.

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

No branches or pull requests

2 participants