Error in liveuser or s4juseronline since CB1.2.1

14 years 11 months ago #101357 by Tomsn
Hi Community
I tested CB1.2.1 (updateed from 1.2stable with exact the steps in the readme file) on my Joomla tespage, Joomla 1.5.11de in legacy mode (php5.2.5 and mysql5.0.45)
Everything works fine, but there is a problem with the moduls liveuserpro and s4j_useronline. After activate these modules i got these errors on frontpage:

liveuserpro:
[code:1]Notice: Use of undefined constant lvuMain - assumed 'lvuMain' in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 37[/code:1]
[code:1]Notice: Undefined variable: mosConfig_lang in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 58[/code:1]
[code:1]Notice: Undefined variable: content in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 278 and 279[/code:1]

in s4J useronline: (this comes 5times)
[code:1]Notice: Undefined variable: result in /home/.sites/75/site340/web/community/modules/mod_s4juseronline/helper.php on line 534[/code:1]

This is the code from helper.php line 494 - 534
[code:1] function GetFilterSQL($tblalisas, $tblalisasuser, $filter, $filtervalue) {
$user =& JFactory::getUser();
$userid = (int)$user->get("id"«»);

switch ($filter) {
case 1: // Only users with picture
$result = " AND $tblalisas.avatar IS NOT NULL AND $tblalisas.avatarapproved = 1 \n";
break;
case 2: // Only buddies
if($userid > 0) //TODO: DJ die andere richtung implementieren && und my id
$result = " AND $tblalisasuser.id IN (SELECT cm.referenceid FROM jos_comprofiler_members cm WHERE cm.referenceid = $tblalisasuser.id AND cm.pending=0 AND cm.accepted=1 ) \n";
break;
case 3: // Gender
$result = " AND $tblalisas.$this->_cb_gender_field = '$filtervalue' \n";
break;
case 4: // Same gender
if($userid > 0)
$result = " AND $tblalisas.$this->_cb_gender_field IN ( SELECT $this->_cb_gender_field FROM #__comprofiler xyz WHERE xyz.user_id = $userid ) \n"; //Same gender
break;
case 5: // Opposite gender
if($userid > 0)
$result = " AND $tblalisas.$this->_cb_gender_field NOT IN ( SELECT $this->_cb_gender_field FROM #__comprofiler xyz WHERE xyz.user_id = $userid ) \n"; //Same gender
break;
case 11:
$result = " AND $tblalisas.$this->_cb_custom1 = '$filtervalue' \n";
break;
case 12:
$result = " AND $tblalisas.$this->_cb_custom2 = '$filtervalue' \n";
break;
case 13:
$result = " AND $tblalisas.$this->_cb_custom3 = '$filtervalue' \n";
break;
case 14:
$result = " AND $tblalisas.$this->_cb_custom4 = '$filtervalue' \n";
break;
case 15:
$result = " AND $tblalisas.$this->_cb_custom5 = '$filtervalue' \n";
break;
}

return $result;
[/code:1]

I hope anyone can help me... these modules works fine with cb1.2stable :)

Please Log in to join the conversation.

14 years 11 months ago #101358 by nant
These errors have NOTHING to do with CB 1.2 or CB 1.2.1.
They are in the modules you have installed.

Please Log in to join the conversation.

14 years 11 months ago #101361 by Tomsn
Hi nant
i think so because these modules read some data from the cb table, in my amatuerish opinion :)
if i wrong, what can then be the reason?

Please Log in to join the conversation.

14 years 11 months ago #101377 by nant
Tomsn wrote:

Hi nant
i think so because these modules read some data from the cb table, in my amatuerish opinion :)
if i wrong, what can then be the reason?


You are wrong - errors are in the module you installed.

Notify the developers of the module to fix their code.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.198 seconds

Facebook Twitter LinkedIn