This error come when there is no JomSocial installed. It has been fixed in SVN.
New JomSocial code in components/com_kunena/class.kunena.php (find the first line):
Code:
//JomSocial
if ($fbConfig->pm_component == 'jomsocial' || $fbConfig->fb_profile == 'jomsocial' || $fbConfig->avatar_src == 'jomsocial')
{
// Only proceed if jomSocial is really installed
if ( file_exists( $mainframe->getCfg( 'absolute_path' ) . '/components/com_community/libraries/core.php' ) )
{
$database->setQuery("SELECT id FROM #__menu WHERE link = 'index.php?option=com_community' AND published=1");
$JOMSOCIAL_Itemid = $database->loadResult();
check_dberror('Unable to load jomSocial item id');
define("KUNENA_JOMSOCIAL_ITEMID", (int)$JOMSOCIAL_Itemid);
define("KUNENA_JOMSOCIAL_ITEMID_SUFFIX", "&Itemid=" . KUNENA_JOMSOCIAL_ITEMID);
include_once(JPATH_ROOT.'/components/com_community/libraries/core.php');
include_once(JPATH_ROOT.'/components/com_community/libraries/messaging.php');
//PM popup requires JomSocial css to be loaded from selected template
$config =& CFactory::getConfig();
$mainframe->addCustomHeadTag('<link type="text/css" rel="stylesheet" href="'.KUNENA_JLIVEURL.'/components/com_community/assets/window.css" />');
$mainframe->addCustomHeadTag('<link type="text/css" rel="stylesheet" href="'.KUNENA_JLIVEURL.'/components/com_community/templates/'.$config->get('template').'/css/style.css" />');
}
else
{
// JomSocial not present reset config settings to avoid problems
$fbConfig->pm_component = $fbConfig->pm_component == 'jomsocial' ? 'none' : $fbConfig->pm_component;
$fbConfig->fb_profile = $fbConfig->fb_profile == 'jomsocial' ? 'kunena' : $fbConfig->fb_profile;
$fbConfig->avatar_src = $fbConfig->avatar_src == 'jomsocial' ? 'kunena' : $fbConfig->avatar_src;
// Do not save new config - thats a task for the backend
// This is just a catch all in case it is not present
}
}