Kunena 6.3.0 released

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

Please Read This First:


This category is only for reporting defects with K 3.0.

Do not use this category:
  • to ask general questions about how to use K 3.0 or to ask when new versions of Kunena will be released;
  • to ask about other (older) versions of Kunena; or
  • if you have tried to install K 3.0 on J! 1.5; or
  • if you installed K 3.0 on a live, production site and you want your site restored to its previous state; or
  • if this website ( www.kunena.org ) works but works differently to how you expected.

You must include your K 3.0 configuration report; if you do not include your configuration report, your topic may be closed (locked) or deleted without any further warnings from the moderators.

Topics that have been closed (resolved) will be archived and no further discussion on those topics will be allowed.

Question Topic notifications not being sent

More
9 years 2 months ago #1 by totvos
I have been tracking reports on my site that topic notifications are not being sent. After stepping through the code, I believe this is a bug in access.php, in plg_kunena_community code, specifically:
Code:
/** * Authorise list of userids to topic or category. * * @param mixed $topic Category or topic. * @param array $userids list(allow, deny). * @return array */ public function authoriseUsers(KunenaDatabaseObject $topic, array &$userids) { if (empty($userids)) { return array (array(), array()); } $category = $topic->getCategory(); $userlist = implode(',', $userids); $db = JFactory::getDBO (); $query = "SELECT c.id FROM #__kunena_categories AS c INNER JOIN #__community_groups_members AS g ON c.accesstype='jomsocial' AND c.access=g.groupid WHERE c.id={$category->id} AND g.approved=1 AND g.memberid IN ({$userlist})"; $db->setQuery( $query ); $allow = (array) $db->loadColumn (); $deny = array(); KunenaError::checkDatabaseError (); return array($allow, $deny); }
In the query, this should be returning approved user IDs but is, instead, returning category IDs, breaking the code in getSubscribers that validates users that may be subscribed. The fix appears to be simple, changing "SELECT c.id" to "SELECT g.memberid".

As far as I can tell, this code is still in the latest develop branch on GitHub.



This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 200M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : js_wright | author: Joomlashack | version: 3.1.3.10 | creationdate: Unknown

Kunena default template details : Blue Eagle | author: Kunena Team | version: 3.0.6 | creationdate: 2014-07-28

Kunena version detailed: Kunena 3.0.6 | 2014-07-28 [ Tala ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: Jomsocial 2.6.1

Third-party SEF components: None

Plugins: Search - Kunena Search 3.0.1 | JomSocial - Kunena Groups 2.0.4

Modules: None

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

More
9 years 1 month ago #2 by xillibit
Hello,

The others components that you have installed are able to sent notifications mails ? The mail configuration in Joomla! is it right configured ?

I advise you to upgrade to last version of Kunena and Joomla! if possible.

I don't provide support by PM, because this can be useful for someone else.

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

More
9 years 1 month ago #3 by totvos
Yes, emails are generally going out via Joomla (registration, for example). I know my mail configuration is correct. And, when I fix the code I mentioned above, Kunena then correctly sends emails as well. I think it is pretty clearly a Kunena bug.

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

More
9 years 1 month ago #4 by xillibit
Thanks for the report

I will look closer to it and fix it

I don't provide support by PM, because this can be useful for someone else.

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

Time to create page: 0.541 seconds