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

K 6.4.0 0 Call to undefined method Kunena\Forum\Libraries\Config\KunenaConfig::get() #9798

Open
Pinkeltje opened this issue Jan 9, 2025 · 4 comments
Milestone

Comments

@Pinkeltje
Copy link
Contributor

Describe the bug
Inserting attachment in message as registered user throws error.
My findings, in an attempt to clarify the issue as reported on the forum
https://www.kunena.org/forum/76-Official-Announcements-and-News-about-Kunena/168690-kunena-6-4-rc2-released-for-joomla-5-0-5-1-5-22#232673

To Reproduce
Steps to reproduce the behavior:

  1. Install clean J 5.2.3
  2. Install K 6.4.0 RC2
  3. Install sample data and language files
  4. Login as super user
  5. Create new topic or reply to existing topic and insert attachment

Expected behavior
No message that links and images have been removed

Actual result
Screenshots
2025-01-09 Screenshot 770

To Reproduce for registered user
Steps to reproduce the behavior:

Same as before but then
4. Login as registered user
5. Create new topic or reply to existing topic
Expected behavior
Message created with attachment inserted.

Actual result
Error message

To be tested
I had one testsite where the problem resolved itself?? But unfortunately can't reproduce what I did.

Then in new J523 site problem occured again.
2025-01-09 Screenshot 772
Go back to topic and attachment is nicely inserted in message.

@rich20
Copy link
Member

rich20 commented Jan 9, 2025

I get the error even if I don't attach any images.
It might have something to do with this bug. #9799
Because when I use the following setting, the error message is gone. (But with this setting you can't upload attachments.)

  1. set in the configuration (tab) Security - Prevent that new users are able to add url and image in his messages or profile
  2. set a higher number as user has posts to able to add url and image

@rich20 rich20 added this to the 6.4 milestone Jan 9, 2025
@Pinkeltje
Copy link
Contributor Author

I get the error even if I don't attach any images.

Confirmed. I was so focussed on attachments that I forgot to test only text.

Can confirm the empty [img][/img] tags as well.
We don't use it frequently in our forum, most images are attachments, but mods have a donationbutton in their signature and there I can reproduce it.
[url=https://joomlanl.nl/donatie][color=red][b]donatie[/b][/color].[img]https://joomlanl.nl/images/afbeeldingen_joomlanl/donatiebutton.gif[/img][/url]
K 6.3.8
2025-01-09 Screenshot 774
K 6.4.0
2025-01-09 Screenshot 775
Don't look at the color difference. Live site is with 9themestore template and custom css, testsite with Aurelia, to make sure there are no template conflicts.

@Gindi50
Copy link

Gindi50 commented Jan 11, 2025

I don't see any connection between the last line in the call stack and the error message after saving.

I'm not a programmer, but I'm curious and so I compared the KunenaAccess.php file in version 6.3.8 with the one in version 6.4.0-RC2.

Maybe that can help with the solution.

In 6.4., line 20 is missing

6.4 is missing lines 127 to 141

6.4 line 161: $query = $db->createQuery()

6.3.8 line 177: $query = $db->getQuery(true)

6.4 is missing lines 188 to 206

6.4 line 272 and 6.3.8 line 307 a quotation mark is missing or there is one too many:

“function kShowAccessType(htmlclass, el) {

6.4 line 796: $query = $db->createQuery()

6.3.8 line 831: $query = $db->getQuery(true)

6.4 line 879: $query = $db->createQuery()

6.3.8 line 914: $query = $db->getQuery(true)

@Gindi50
Copy link

Gindi50 commented Jan 11, 2025

6.4 line 895: $query = $db->createQuery()

6.3.8 line 930: $query = $db->getQuery(true)

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