Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phonebook - Adding a member to multiple groups causing error #630

Open
thameema opened this issue May 6, 2021 · 1 comment
Open

phonebook - Adding a member to multiple groups causing error #630

thameema opened this issue May 6, 2021 · 1 comment

Comments

@thameema
Copy link

thameema commented May 6, 2021

Edit an existing phone number, select multiple groups to add the phone number. Click "submit" causing the following error.

Fatal error: Uncaught Error: [] operator not supported for strings in /opt/playsms-1.4.3/web/plugin/feature/phonebook/phonebook.php:394 Stack trace: #0 /opt/playsms-1.4.3/web/inc/app/main.php(33): include_once() #1 /opt/playsms-1.4.3/web/index.php(34): include('/opt...') #2 {main} thrown in /opt/playsms-1.4.3/web/plugin/feature/phonebook/phonebook.php on line 394

Solution: Edit line 364
//$maps = ''; $maps=array();

@Kisuke-CZE
Copy link

Like you wrote, quick-fix is to replace $maps = ''; with $maps = [];;

This fixes the error message. But there is probably some bigger conceptional error. Because when I export whole phonebook, having multiple groups results in user is export multiple times. Import of this exported CSV causes that contact is not imported as one in multiple groups BUT multiple separated contacts.

Too bad that it is not possible to send messages to "tags", they could be more suitable to do such thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants