FreePBX 14 had all our modules updated as well as system updates on Centos 7 were done.
Now is FreePBX 14.0.16.4. Asterisk 13.38.1.
Problem is with Black list module. Now version 14.0.3.
I can put a number on it via gui, it is visible in cli>database show blacklist and works! Everything seems fine, but when I try to check BL records via Freepbx www i see blank page like there is nothing in the database, "no results found’. When I export BL by Bulk Handler I get empty file. Again like there is nothing in BL database but there are plenty! I see over 160 blocked numbers in database and over 10 blocked calls every day.
No idea what’s going on here, but two reports (and only two) makes me think there is a bug, but it’s obscure enough to only show up in rare cases. My first thought is there is a special character in one of the blacklist entries causing display issues. If you can share a blacklist dump via paste bin (privately if you wish) that might yield a clue:
Dead end there, your entries look clean. On the blacklist page, there is a display filter box in the upper right. Is it possible the browser is auto-populating that box with something that filters out all entries?
If I didn’t know better i would say you are looking at 2 different machines. The last snippit is the same as running database show blacklist in the CLI. This information should be exactly the same or throw up a nasty error about permissions/connectivity etc. Being that you are running the command through php as root it also eliminates most potential permissions problems. I dare say this is impossible but weirder things have happened.
Lastly incase it is a weird parsing thing which I think is unlikely
php -r 'include "/etc/freepbx.conf"; print_r(FreePBX::Create()->astman->command("database show blacklist"));'
That runs the raw command with no processing of the returned data.
I noticed my quoting was wrong above which may have given bad results. Can you try this again php -r 'include "/etc/freepbx.conf"; print_r(FreePBX::Create()->astman->database_show("blacklist"));'
Visually speaking the output from “database show” is correct unless there is a hidden character or something. Basically it looks like the parsing in astman->database_show is falling on its face. That said I cannot duplicate this in FreePBX 15 and with asterisk 16/17/18 it all “works here”
I would make sure framework is up to date but otherwise this will require some deep digging by someone who has some in depth knowledge