You need to install GPG.
I have the same error in my web console, but when running this command in terminal - the only error I get is:
Unable to open /dev/dahdi/ctl: No such file or directory
I also see this error a lot when upgrading… it does not seem to effect the phone system from functioning properly.
I’m having the same error shown in my Dashboard. Using FreePBX 13.0.195.18
I checked that GPG is installed as you can see in the commands and output below. Any idea/help?
[root ~]# yum install gpg
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
base | 2.0 kB 00:00
extras | 1.3 kB 00:00
pbx | 2.9 kB 00:00
schmooze-commercial | 2.9 kB 00:00
updates | 1.3 kB 00:00
Package gnupg2-2.0.14-8.el6.x86_64 already installed and latest version
Nothing to do
[root ~]# /var/lib/asterisk/bin/module_admin listonline
no repos specified, using: [commercial,standard,extended] from last GUI settings
Whoops\Exception\ErrorException: Comments starting with ‘#’ are deprecated in Unknown on line 23 in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 613
Stack trace:
- Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/GPG.class.php:613
- Whoops\Run->handleError() :0
- parse_ini_string() /var/www/html/admin/libraries/BMO/GPG.class.php:613
- FreePBX\GPG->checkSig() /var/www/html/admin/libraries/BMO/GPG.class.php:174
- FreePBX\GPG->verifyModule() /var/www/html/admin/libraries/modulefunctions.class.php:3266
- module_functions->updateSignature() /var/www/html/admin/libraries/modulefunctions.class.php:3172
- module_functions->getAllSignatures() /var/lib/asterisk/bin/module_admin:571
- showList() /var/lib/asterisk/bin/module_admin:862
Getting exactly the same error on FreePBX 14.0.4.5:
[[email protected] ~]# /var/lib/asterisk/bin/module_admin listonline
no repos specified, using: [standard,commercial] from last GUI settings
Whoops\Exception\ErrorException: Comments starting with '#' are deprecated in Unknown on line 23 in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 624
Stack trace:
1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/GPG.class.php:624
2. parse_ini_string() /var/www/html/admin/libraries/BMO/GPG.class.php:624
3. FreePBX\GPG->checkSig() /var/www/html/admin/libraries/BMO/GPG.class.php:174
4. FreePBX\GPG->verifyModule() /var/www/html/admin/libraries/modulefunctions.class.php:3263
5. module_functions->updateSignature() /var/www/html/admin/libraries/modulefunctions.class.php:3169
6. module_functions->getAllSignatures() /var/lib/asterisk/bin/module_admin:567
7. showList() /var/lib/asterisk/bin/module_admin:858
[[email protected] ~]#
Running fwconsole ma listonline gives a similar result:
[[email protected] ~]# fwconsole ma listonline
No repos specified, using: [standard,commercial] from last GUI settings
In GPG.class.php line 624:
Comments starting with '#' are deprecated in Unknown on line 23
ma [-f|--force] [-d|--debug] [--edge] [--stable] [--color] [--skipchown] [-e|--autoenable] [--skipdisabled] [--snapshot SNAPSHOT] [--format FORMAT] [-R|--repo REPO] [-t|--tag TAG] [--onlystdout] [--willupdate] [--securityonly] [--sendemails] [--] [<args>]...
[[email protected] ~]#
cd /var/www/html/admin/modules
find -name "module.sig" | xargs grep -i '^#'
No results from the 2 commands:
[root ~]# cd /var/www/html/admin/modules
[root modules]# find -name “module.sig” | xargs grep -i ‘^#’
[root modules]#
The error is because you have a module.sig in your modules folder with a # symbol as a starting line. We haven’t supported that since version 12. You’ll need to manually find a file like that and fix it.
Thanks Andrew. Don’t the command suggested by @PitzKey do that? I will go and manually search all modules.
We haven’t modified any of those “module.sig” files. Seems caused by a module update as this error is appearing in several of our PBXs.
Seeing a similar error on my FreePBX 13.0.195.17 servers. It seems that the machines that were upgraded from FreePBX 12 to 13 are the ones that are affected. nmartine any luck at finding the module.sig file in trouble? I have one that I updated from 12 to 13 to 14 that has the same issue. I did see the issue come up after the last round of updates.
[[email protected] ~]# /var/lib/asterisk/bin/module_admin listonline
no repos specified, using: [standard,extended,commercial,unsupported] from last GUI settings
Whoops\Exception\ErrorException: Comments starting with ‘#’ are deprecated in Unknown on line 23 in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 613
Stack trace:
- Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/GPG.class.php:613
- Whoops\Run->handleError() :0
- parse_ini_string() /var/www/html/admin/libraries/BMO/GPG.class.php:613
- FreePBX\GPG->checkSig() /var/www/html/admin/libraries/BMO/GPG.class.php:174
- FreePBX\GPG->verifyModule() /var/www/html/admin/libraries/modulefunctions.class.php:3266
- module_functions->updateSignature() /var/www/html/admin/libraries/modulefunctions.class.php:3172
- module_functions->getAllSignatures() /var/lib/asterisk/bin/module_admin:571
- showList() /var/lib/asterisk/bin/module_admin:862
You probably have a module in your system that is not longer supported (more than two years old)
ok I found it. On my PBX it was this one:
$ find -name “module.sig” | xargs grep -i ‘^#’
./bulkextensions/module.sig:# End
So I just added ; in front of # End and it fixed the issue. Thanks!
@nmartine you need to type the command by hand or replace quotes - if you copy/paste the command from here, it will not find anything. Mine also was not showing anything until I put the proper quotes
Can I just remove the modules?
Awesome catch @jazzerman!!!
The quotes have been ‘mac-tisized’ as i like to call it. Meaning the double and single quotes are actually UTF8 not ASCII.
Fixed below. I also went and fixed the original post
find -name "module.sig" | xargs grep -i '^#'
You can remove them. I have also fixed them online.
Thanks
Thanks for fixing it.
I know that semicolons are always at fault, never knew that quotes can cause trouble as well…
@jazzerman good eyes man!
Fantastic! Thanks @tm1000 and @PitzKey!
I found the problem in:
./bulkextensions/module.sig:# End
I edited the file and included a semicolon changing the original line from:
#End
to
;# End
If the error appears I’ll let you know, but for now it went away!
Thanks again
Bulk DID and Bulk Extensions were EOL in version 12. 13 and newer use the new bulk handler so you should remove those modukes from your system.