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

Fatal Error: Class "Kunena\Forum\Administrator\View\Users\HtmlHelper" Not Found in Users View #9835

Open
javierfebrero opened this issue Feb 27, 2025 · 5 comments
Milestone

Comments

@javierfebrero
Copy link

Describe the bug
When accessing the Users view in Kunena within Joomla, a fatal error occurs due to the missing class Kunena\Forum\Administrator\View\Users\HtmlHelper.

To Reproduce
Steps to reproduce the behavior:

  • Go to the Joomla administration panel.
  • Navigate to Kunena -> Users.
  • An error screen appears.

Expected behavior
The Kunena Users view should load without errors and correctly display the list of users.

Actual result
A fatal error is displayed with the message:

Class "Kunena\Forum\Administrator\View\Users\HtmlHelper" not found  

The error originates from:

JROOT/administrator/components/com_kunena/src/View/Users/HtmlView.php:223

Joomla version: 5.2.2
Kunena version: 6.3.7
Php version: 8.3.16

The issue seems to have originated from [pull] (#9622)), where changes were made to the Users view.

#9622

Copy link

Thank you for the report, we will looking soon at the issue

@Ruud68
Copy link
Contributor

Ruud68 commented Feb 27, 2025

Hi @javierfebrero ,

thanks for the report.

can you try the following:
in file > JROOT/administrator/components/com_kunena/src/View/Users/HtmlView.php:223

add the following code:

use Joomla\CMS\HTML\HTMLHelper;

in the top of the file where the other use statements are.

@javierfebrero
Copy link
Author

Hi,

I’ve already added the use Joomla\CMS\HTML\HTMLHelper; line at the top of the file, and it does indeed resolve the issue.

However, this seems like something that should be addressed within the core of the component to prevent it from happening in the future. It would be ideal if this fix were implemented so that it doesn’t require manual adjustments going forward.

Please let me know if you need any additional information.

@Ruud68
Copy link
Contributor

Ruud68 commented Feb 27, 2025

Hi @javierfebrero ,

As I was unable to reproduce the issue (for me it works), I was asking you to test this.
Now that we know that it works i will create a PR to fix this is 'core' .

Thanks for reporting and testing this!

Ruud68 added a commit to Ruud68/Kunena-Forum that referenced this issue Feb 27, 2025
@Ruud68
Copy link
Contributor

Ruud68 commented Feb 27, 2025

here you go: #9836

@xillibit xillibit added this to the 6.3 milestone Feb 27, 2025
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

3 participants