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

Rendering Error in the history if the topic is not approved #9687

Closed
rich20 opened this issue May 14, 2024 · 2 comments
Closed

Rendering Error in the history if the topic is not approved #9687

rich20 opened this issue May 14, 2024 · 2 comments
Milestone

Comments

@rich20
Copy link
Member

rich20 commented May 14, 2024

Describe the bug
https://www.kunena.org/forum/k-6-3-0-support/168431-forum-statistics-bug-return-value-must-be-of-type-array,-none-returned#231321
Confirmed

To Reproduce

  1. enable in the configuration - Frontend tab the history (it is default setting)
  2. define a category for review
  3. create as registered user a new topic
  4. go to this unapproved topic as administrator or moderator
  5. click on Edit
  6. scroll down to the history

Actual result
Warning: Undefined variable $messages in .../components/com_kunena/src/Controller/Topic/Form/History/TopicFormHistoryDisplay.php on line 92

Rendering Error in layout Topic/Edit: array_keys(): Argument #1 ($array) must be of type array, null given in /...components/com_kunena/src/Controller/Topic/Form/History/TopicFormHistoryDisplay.php on line 92
Layout was rendered in .../components/com_kunena/template/aurelia/pages/topic/edit/default.php on line 44

System information

  • Joomla version: ‎4.4.5-dev and 5.1.1-dev
  • Joomla template: CASSIOPEIA
  • Kunena version: 6.3.1-DEV
  • Kunena template: Aurelia
  • Php version: 8.2.18
  • Database version: 10.5.23-MariaDB

Desktop

  • OS: Ubuntu 22.04.1 LTS
  • Browser: Chromium, Firefox and Opera
@rich20 rich20 added this to the 6.3 milestone May 14, 2024
Ruud68 added a commit to Ruud68/Kunena-Forum that referenced this issue May 14, 2024
@Ruud68 Ruud68 mentioned this issue May 14, 2024
@Ruud68
Copy link
Contributor

Ruud68 commented May 14, 2024

@rich20 can you give #9688 a try?

@rich20
Copy link
Member Author

rich20 commented May 14, 2024

Completed

@rich20 rich20 closed this as completed May 14, 2024
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