Yii Framework Forum: Private Messaging Module - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Private Messaging Module Exception when integrating private messaging module Rate Topic: -----

#1 User is offline   yiiAmateur89 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 22-February 13

Posted 22 February 2013 - 01:27 AM

I have just downloaded and tried to configure the private messaging module: http://www.yiiframew...vate-messaging/

I am getting the following exception when trying to access the module: Alias "message.MessageModule" is invalid. Make sure it points to an existing PHP file and the file is readable.

This is the relevant code in my main.php configuration file:
'modules'=>array(
'message' => array(
'userModel' => 'User',
'getNameMethod' => 'getFullName',
'getSuggestMethod' => 'getSuggest',
'receiverRelation' => array(
CActiveRecord::BELONGS_TO,
'User',
'on' => 'User.id = receiver_id'),
'senderRelation' => array(
CActiveRecord::BELONGS_TO,
'User',
'on' => 'User.id = sender_id'),
),

Has anyone else had this problem before? I would really appreciate the help. Thank you for your time
0

#2 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 578
  • Joined: 26-November 10
  • Location:Lahore, Pakistan

Posted 22 February 2013 - 02:21 AM

I have used it but do not get any issue... You need to check that does MessageModule.php exists in message folder
Cheers
Perochak
Web Design - Logo Design - Application Development

My Blog | Forums Comparison
0

#3 User is offline   yiiAmateur89 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 22-February 13

Posted 22 February 2013 - 07:03 PM

Yes it's there in the message folder. I have no idea why I'm getting this error
0

#4 User is offline   sanguina 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 22-July 12

Posted 23 February 2013 - 07:28 AM

View PostyiiAmateur89, on 22 February 2013 - 07:03 PM, said:

Yes it's there in the message folder. I have no idea why I'm getting this error



Have you renamed the downloaded folder to 'message' ?
the original folder name is yii-messages-master or something simialr
until I become certain that there is no certainty.
1

#5 User is offline   yiiAmateur89 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 22-February 13

Posted 23 February 2013 - 03:19 PM

Wow, yes that has to be the problem!. I didn't do that. I'll try it as soon as I can . Thank you!
0

#6 User is offline   yiiAmateur89 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 22-February 13

Posted 23 February 2013 - 03:20 PM

I had renamed it to just "messages" instead of "message"
0

#7 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 23 February 2013 - 03:52 PM

/* moved to Extensions forum */
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users