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
Page 1 of 1
Private Messaging Module Exception when integrating private messaging module
#2
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
#3
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
#4
Posted 23 February 2013 - 07:28 AM
yiiAmateur89, 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.
#5
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!
Share this topic:
Page 1 of 1

Help













