Upgrade to 5.5.3 breaks SMS app

dcitelecom

Member
Oct 20, 2021
159
3
18
62
Earlier today, I upgraded from 5.1.2 to 5.5.3, which was a disaster because I was unable to log in after the upgrade. The new FusionPBX code is querying the user_enabled column as a boolean value (true), but the old database's user_enabled column is configured as type text or varchar, causing PostgreSQL to throw the error. I fixed it, but needed to vent. :) Sorry.

My main issue is the SMS app, which is now broken in 5.5.3. Clicking the app results in "Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/fusionpbx/app/sms/sms.php:61 Stack trace: #0 {main} thrown in /var/www/fusionpbx/app/sms/sms.php on line 61"

Since the SMS app is apparently no longer maintained (please prove me wrong), I will try the new Messages app, but how do I uninstall the old sms app? Any help would be greatly appreciated.
 
Last edited:
Upgrade

First, part of your post shows you didn't follow the upgrade instructions. Maybe you didn't find the public instructions. But you need them because you performed an upgrade. The version upgrade instructions have been at the link below that I'm sharing for many years.

This is documented in the public documentation here in Upgrade 5.4 to 5.5 pre-release instructions.
- https://docs.fusionpbx.com/en/latest/advanced/version_upgrade.html#version-upgrade

app/sms

The app/sms was written by another developer not part of the FusionPBX project. It was contributed into the fusionpbx-apps repo. Software requires maintenance work over years. The particular way SMS is handled in app/sms via command line curl using Lua this approach is not the safest way to provide SMS. So I have been considering retiring app/sms completely. However, some people are dependent on it so that makes me hesitate.

The SMS via app/messages doesn't use command line curl.

I'll look at the code one more time for app/sms. The security in it could be improved more to be ultra safe it would require a major rewrite.

P.S. Keep in mind this is a 3rd party forum. I won't always notice comments here but I did notice this one.
 
Thanks for the quick reply and the upgrade link. With those instructions, the upgrades are flawless. In the past, I always updated from the GUI and would suggest adding a small note there referring to the upgrade doc.

I looked at the new Providers and Messaging apps, and DIDWW (my SMS provider) is unfortunately not listed as a Provider. Unfortunately, the setup to get this working seems a bit more complicated than the old SMS app. Can anyone help add DIDWW as a Provider? I can't upgrade my live system until I get SMS working again.
 
Thank you. I wouldn't mind getting the new Messaging app to work as well. It appears that I would only need to set up DIDWW as the provider and then point the inbound Destination to my SMS-enabled extension. However, I can't find the file to add DIDWW, and the numerous settings are overwhelming. Assuming I figure this out somehow, would I be able to send and receive SMS from my Acrobits Groundwire SIP client just like with the SMS app?

If anyone is already using DIDWW for their SMS, please help. Thanks.