Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Question Problem with file upload COM_KUNENA_POST_ATTACHMENTS_NOT_ALLOWED

More
10 years 10 months ago - 10 years 10 months ago #166856 by ufer
Dear Kunena-Team,

first, I would like to thank you for the really great forum platform you provide.

In my JOOMLA 3.4 platform (Kunena 3.0.4) I experienced that when posting messages with attached files I got the error message COM_KUNENA_POST_ATTACHMENTS_NOT_ALLOWED and the files were not attached (messages sent, anyway).
I searched a bit and found the line
if (empty(KunenaFactory::getConfig()->image_upload) || empty(KunenaFactory::getConfig()->file_upload) )
in libraries/kunena/message/message.php (line 1400)

Since the settings for my system were that file attachment was allowed but image attachment was not, of course I got the message in just the next line when uploading a file. Maybe you could consider replacing || by && here?

Best wishes,

Stefan
Last edit: 10 years 10 months ago by ufer. Reason: Should be much easier to understand this way.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago - 10 years 10 months ago #166877 by sozzled

ufer wrote: In my JOOMLA 3.4 platform (Kunena 3.0.4) ...

But you have posted your message in the K 4.0 "defects" category? K 3.0.4 is unsupported; it has been unsupported for more than a year (since March 2014) .

The best way to let us know more about your problem is to provide your Kunena configuration report .
Last edit: 10 years 10 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #166893 by ufer
OK, sorry for that: this was a typo. It is kunena 4.0.3.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #166895 by 810
You need to set the setting "Allow File Uploads" to Registered Users or everybody

same for the "Allow Image Uploads" setting

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #166903 by ufer
I know That. Thank you. The Point is:

I would like to allow file upload for registered users, but forbid image upload for all. If I make these settings then file upload is not working with a obviously unspecified error message.

Of course I found a way out of this, in the line you indicated. But it might be to have the system work as it seems it should.

Kind regards.

Stefan

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #166904 by rich
I've tested it now. It's a bug. When setting "Allow Image Uploads = Nobody" and "Allow File Uploads = Allowed" you can't upload files.

Important! Always create a backup before you make any changes to your website!

Please Log in or Create an account to join the conversation.

Time to create page: 0.241 seconds