Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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 twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question "latest posts" module not functioning with JomSocial

More
17 years 17 hours ago - 17 years 17 hours ago #21097 by goldpan
I have installed the "latest posts" module for Kunena into my site, which also runs JomSocial.

it functions fine, BUT within the module frontend I get the following code actually showing within the module.
Code:
Notice: Constant C_ASSET_JQUERY already defined in /home/www/worldtravelblogs.com/components/com_kunena/class.kunena.php on line 72

i looked at the code within the file class.kunena.php and it is clearly related to Jomsocial. It you see by the comments.

here's the code in question... Any idea what the problem is? How can I stop this code above from being written out in actual text within the module front end?
Code:
// Prevent JomSocial from loading their jquery library - we got one loaded already define( 'C_ASSET_JQUERY', 1 ); include_once(KUNENA_ROOT_PATH .DS. 'components/com_community/libraries/core.php'); include_once(KUNENA_ROOT_PATH .DS. 'components/com_community/libraries/messaging.php');
Last edit: 17 years 17 hours ago by goldpan.

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

More
17 years 13 hours ago #21122 by xillibit
Hello,

You need to to delete this line, but not in components/com_kunena/class.kunena.php but in your module "latest post" :
Code:
define( 'C_ASSET_JQUERY', 1 );

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
17 years 12 hours ago #21127 by jerry
Replied by jerry on topic Re:
goldpan wrote:

I have installed the "latest posts" module for Kunena into my site, which also runs JomSocial.

it functions fine, BUT within the module frontend I get the following code actually showing within the module.

Code:
Notice: Constant C_ASSET_JQUERY already defined in /home/www/worldtravelblogs.com/components/com_kunena/class.kunena.php on line 72

i looked at the code within the file class.kunena.php and it is clearly related to Jomsocial. It you see by the comments.

here's the code in question... Any idea what the problem is? How can I stop this code above from being written out in actual text within the module front end?
Code:
// Prevent JomSocial from loading their jquery library - we got one loaded already define( 'C_ASSET_JQUERY', 1 ); include_once(KUNENA_ROOT_PATH .DS. 'components/com_community/libraries/core.php'); include_once(KUNENA_ROOT_PATH .DS. 'components/com_community/libraries/messaging.php');

could be patched
class.kunena.php line 72
before:
Code:
define( 'C_ASSET_JQUERY', 1 );
after:
Code:
if (!defined('C_ASSET_JQUERY')) define( 'C_ASSET_JQUERY', 1 );

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

Time to create page: 0.241 seconds