Used the GUI to go from 12 to 13. At the end of the process the dashboard reported issues with extensions where Voicemail was the final target.
Often hitting an exception when trying to resolve this which is:
Whoops\Exception\ErrorException: explode() expects parameter 2 to be string, array given in file /var/www/html/admin/modules/voicemail/Voicemail.class.php on line 177
Stack trace:
[FATAL] SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
Hi Alan, we’re are having the same issue regarding the Voicemail class. You can fix this by removing the bad data out of /etc/asterisk/voicemail.conf, but that only leads to further problems.
I think your database problem is something else entirely. Maybe a permissions problem with /var/lib/mysql/mysql.sock? Or MySQL isn’t listening on the socket, but only the port?
Anyway, we are seeing additional weirdness around voicemail.
All of our extensions have had voicemail disabled. If we go to enable them, duplicate data gets added to voicemail.conf (and the above error appears) but voicemail doesn’t get enabled in the extensions module.
We updated the framework to last night to the latest. Maybe related?
I reverted the changes in framework version 13.0.1beta3.52 upgrade to that version. Then fix your voicemail.conf file then everything should be fine. Sorry about that
It looks like it’s merging the two x139 records into one? Which is a bug, but the real question is why is voicemail.conf getting two x139’s to begin with.
and I see you posted a fix already as I was typing this… Thanks!
I’ve installed 13.0.1beta3.52, copied over voicemail .conf with the template version and rebooted.
I still have an issue with Apply Config from the GUI with an eror reported from /var/lib/asterisk/bin/retrieve_conf
PHP Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/manager/functions.inc.php on line 71
Whoops\Exception\ErrorException: Cannot use object of type DB_Error as array in file /var/www/html/admin/modules/manager/functions.inc.php on line 71
Stack trace:
Errors still being reported are “Symlink from modules failed”
Which I’m sure is due to the installation of British Asterisk Voice Prompts. Is there a formal way to deal with either the symlink errors or the additional language files?
I’ve been plagued with the same error since yesterday.
I updated from AsteriskNow’s FreePBX 12 to FreePBX 13 from the GUI on tuesday the 11th, so I could install the Sound Languages module (to make the recordings French).
Since yesterday, whenever I try to edit anything (When I have to press the “Edit” icon), the console returns this error.
I’ve tried re-installing both the manager and the voicemail modules. I’ve tried rebooting multiple times, no can do.
I would have included the report and a screenshot, but since I’m a new member, it seems I can’t.
Just a quick update to mention that we were able to make the build stable again by replacing the faulty voicemail.conf with a copy of voicemail.conf.template. All our voicemail inboxes are gone though.
As previously discussed that is/was the bug. Which has now been resolved. You will have to clean up your voicemail.conf file, unfortunately the fix can not do that for you. You can post the full voicemail.conf file here if you wish and I can clean it up for you
Oh, thanks but no thanks. I already cleaned up the file. Everything’s fine now.
I thought I’d post my own steps for fixing in case someone ends up with the same problem in the future.
Thanks for being so fast on fixing things!