Skip to Content Skip to Menu

Class mosUser not found (quick message)

  • 3168
  • 3168
  • OFFLINE
  • Posts: 7
  • Thanks: 1
  • Karma: 2
16 years 2 months ago #73144 by 3168
When trying to send a quick message the following error is raised:
Fatal error: Class 'mosUser' not found in /home/mattmitc/public_html/components/com_comprofiler/plugin/user/plug_pmsuddeim/pms.uddeim.php on line 222

When sending a message from CB Menu it works fine.

Extra information:
pms.mypmspro is unpublished
pms.uddeim us published
PMS Version: uddeIM 0.9 and above (only choice)

uddeIM Version 1.3
Joomla 1.5
CB 1.2 RC2

PS:I’ve seen a similar post in the general forum. (not resolved yet)
I hope this additional info helps.

Thx a lot

Post edited by: 3168, at: 2008/09/03 21:43

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73153 by slabbi
Replied by slabbi on topic Re:Class mosUser not found (quick message)
Well, seems to be a problem with Joomla 1.5 only.

You can try following:

In pms.uddeim.php you will find two lines witch contain mosUser():

e.g. (same for $rowFrom):

[code:1]$rowTo = new mosUser( $_CB_database );
$rowTo->load( (int) $toid );
$to=$rowTo->username;
[/code:1]

replace this code with (same for $fromid):

[code:1]$sql="SELECT username FROM #__users WHERE id=".(int)$toid;
$_CB_database->setQuery($sql);
$to = $database->loadResult();
[/code:1]

I have not tested the code but it should work ;)

Please give feedback!

Post edited by: slabbi, at: 2008/09/03 23:15

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • 3168
  • 3168
  • OFFLINE
  • Posts: 7
  • Thanks: 1
  • Karma: 2
16 years 2 months ago #73157 by 3168
No success…
I’m not sure if I’m doing the correct code replacement though.

I think the block of code to be replaced is:

if ($fromid) {
$rowFrom = new mosUser( $_CB_database );
$rowFrom->load( (int) $fromid );
$from = $rowFrom->username;
} else {
$from = null;
}

$rowTo = new mosUser( $_CB_database );
$rowTo->load( (int) $toid );
$to=$rowTo->username;

Can you please specify how the whole code block should be changed?
Sorry...
Thx

Post edited by: 3168, at: 2008/09/04 00:19

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73201 by slabbi
Replied by slabbi on topic Re:Class mosUser not found (quick message)

if ($fromid) {

$sql="SELECT username FROM #__users WHERE id=".(int)$fromid;
$_CB_database->setQuery($sql);
$from = $database->loadResult();

} else {
$from = null;
}

$sql="SELECT username FROM #__users WHERE id=".(int)$toid;
$_CB_database->setQuery($sql);
$to = $database->loadResult();


uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73464 by slabbi
Replied by slabbi on topic Re:Class mosUser not found (quick message)
Any news?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • 3168
  • 3168
  • OFFLINE
  • Posts: 7
  • Thanks: 1
  • Karma: 2
16 years 2 months ago #73726 by 3168
Didn´t work Slabbi.
Now the error message is:
Fatal error: Call to a member function loadResult() on a non-object in C:\wamp\www\components\com_comprofiler\plugin\user\plug_pmsuddeim\pms.uddeim.php on line 225
The following user(s) said Thank You: mehmeterzurum

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum