Messages plugin Invalid Recipient issue
Messages plugin Invalid Recipient issue
Hi there,
I have installed the Appgini Messages plugin and configured it as instructed in the video.
I can send messages from the Admin to user1 & user2.
However, I could not send the message from user1 to user2 or to Admin.
The "Invalid recipient" message slide from the bottom after clicking the Send button. I have done the settings as instructed... Is there any setting that I missed out ?
I am using the latest Messages plugin version 1.2 with Appgini 22.14.1293
Appreciate your help. Thanks
I have installed the Appgini Messages plugin and configured it as instructed in the video.
I can send messages from the Admin to user1 & user2.
However, I could not send the message from user1 to user2 or to Admin.
The "Invalid recipient" message slide from the bottom after clicking the Send button. I have done the settings as instructed... Is there any setting that I missed out ?
I am using the latest Messages plugin version 1.2 with Appgini 22.14.1293
Appreciate your help. Thanks
Zala.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Re: Messages plugin Invalid Recipient issue
Did you ever get a response to this issue? I have exactly the same issue. I am testing using XAMPP on localhost. I have sent a Bug Report to the plugin developer and I am awaiting a reply.
Re: Messages plugin Invalid Recipient issue
Hi there,
The AppGini team is still investigating this issue after they managed to reproduced the error.
As a temporary fix, add the group in the canSend method in MessageDB.php file.
The file is located in plugins/messages/app-resources/MessageDB.php
(around line 84)
Just add the group(s) which you want to enable them to send messages under the // admins group always allowed comment.
Sample code below.
Good luck.
The AppGini team is still investigating this issue after they managed to reproduced the error.
As a temporary fix, add the group in the canSend method in MessageDB.php file.
The file is located in plugins/messages/app-resources/MessageDB.php
(around line 84)
Just add the group(s) which you want to enable them to send messages under the // admins group always allowed comment.
Sample code below.
Code: Select all
public static function canSend($recipients = null) {
static $allowedRecipients = null;
if($allowedRecipients === null) {
$mi = getMemberInfo();
// admins group always allowed
if($mi['group'] == 'Admins') return true;
if($mi['group'] == 'Partner') return true;
if($mi['group'] == 'Lawyer') return true;
if($mi['group'] == 'Pupil') return true;
if($mi['group'] == 'Intern') return true;
if($mi['group'] == 'Account') return true;
$allowedRecipients = array_merge(
self::listAllowedRecipients('users'),
array_map(
function($g) { return "group:$g"; },
array_keys(self::listAllowedRecipients('groups'))
)
);
if(self::groupPermissions()['canSendGlobalMessage'])
$allowedRecipients[] = '__ALL_USERS__';
}
Zala.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Re: Messages plugin Invalid Recipient issue
Not working for me!
Have followed the guide but issues with not working when trying to send to group or multiple users via hooks and new record added. Sometimes have managed to get message to a single user (admin) but not the second user (also an admin).
Ron
Have followed the guide but issues with not working when trying to send to group or multiple users via hooks and new record added. Sometimes have managed to get message to a single user (admin) but not the second user (also an admin).
Ron
Ron - Gloucestershire, UK: AppGini Pro V 22.13 Rev 1291 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Re: Messages plugin Invalid Recipient issue
Having issue with Messages PlugIn
This does not work
I tried my group:customers both with and without named users - my app 'hangs' with no response.
Also
I changed to group:Admins to suit my app and does not work (I have 2 admins)
Also
Fails - I swapped out to two users in my app and message only goes to first listed user - in the example sends only to Jack !!
Strange, anyone else having issues?
This does not work
Code: Select all
'recipients' => [
'group:accountants',
'group:sales',
'jack',
'dorothy'
],
Also
Code: Select all
/* send the message to all users of the accountants group */
'recipients' => 'group:accountants',
Also
Code: Select all
'recipients' => 'jack','dorothy',
Strange, anyone else having issues?
Ron - Gloucestershire, UK: AppGini Pro V 22.13 Rev 1291 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Re: Messages plugin Invalid Recipient issue
I have now same issue. How to fix this?
Re: Messages plugin Invalid Recipient issue
hello
me also have same problem , i send message for support but nobody care to answer !!!!!
me also have same problem , i send message for support but nobody care to answer !!!!!
Re: Messages plugin Invalid Recipient issue
I'm aware of the issue and working on a fix for it that we'll release as soon as possible.

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: Messages plugin Invalid Recipient issue
I'm pleased to announce a new release of the Messages plugin (v 1.3) that fixes this issue and a couple more. Please download it and let me know your feedback 


- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: Messages plugin Invalid Recipient issue
Hi there,
I have tested the latest version and so far so good. Messages could be sent and received across groups.
However, I found and issue with the insertion of the message icon code during installation to hooks/header-extras.php ...
The issue is the php tag was missing during insertion. which caused Also it would be nice if insertion comment is included like other plugins Anyway, thank you for the update and hope it can be fixed soon.
I have tested the latest version and so far so good. Messages could be sent and received across groups.
However, I found and issue with the insertion of the message icon code during installation to hooks/header-extras.php ...
The issue is the php tag was missing during insertion. which caused Also it would be nice if insertion comment is included like other plugins Anyway, thank you for the update and hope it can be fixed soon.
Zala.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Appgini 23.11, MacOS 13.4 Windows 11 on Parallels.
Re: Messages plugin Invalid Recipient issue
If the header-extras.php file already includes PHP code, it could confuse the plugin, appending the include line without opening a PHP tag first since it's appending to an already open PHP tag .. I'll investigate this further and see how to fix it.However, I found and issue with the insertion of the message icon code during installation to hooks/header-extras.php ...
The issue is the php tag was missing during insertion.
Thanks for your suggestion. Will do this in the next release.Also it would be nice if insertion comment is included like other plugins

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.