pfBlockerNG php error after update to 3.0.0_5
-
Hi,
since update on ver 3.0.0_5 I get this php error:
PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 65, Message: Uncaught Error: Call to undefined function pfBlockerNG_cleardnsbl() in /usr/local/www/pfblockerng/pfblockerng.php:65
Stack trace:
#0 {main}
thrown @ 2020-12-12 07:56:37Thanks,
fireodo -
@fireodo I guess I found myself the solution - I hope @BBcan177 is verifing if it is correct:
in /usr/local/www/pfblockerng/pfblockerng.php
// Clear IP/DNSBL counters via CRON
if (isset($argv[1])) {
if ($argv[1] == 'clearip') {
pfBlockerNG_clearip();
exit;
}
elseif ($argv[1] == 'cleardnsbl') {
pfBlockerNG_cleardnsbl('clearall');
exit;
}
}the "cleardnsbl" part should be:
}
elseif ($argv[1] == 'cleardnsbl') {
pfBlockerNG_clearsqlite('cleardnsbl');
exit;
}I have tested it and it works but (as I am no programmer) I would like @BBcan177 to confirm that.
Good Weekend,
fireodo -
One thing also is that I have to start unbound manually after the update.
-
Same PHP error on my SG-3100!
-
@netfoo said in pfBlockerNG php error after update to 3.0.0_5:
Same PHP error on my SG-3100!
Edit the /usr/local/www/pfblockerng/pfblockerng.php
with the changes above and you'll be fineRegards,
fireodo -
@cool_corona said in pfBlockerNG php error after update to 3.0.0_5:
One thing also is that I have to start unbound manually after the update.
I've noticed that too. I would have thought that @BBcan177 would have fixed that in the last version unless it it something that we have to do from now on.
-
@fireodo said in pfBlockerNG php error after update to 3.0.0_5:
I have tested it and it works but (as I am no programmer) I would like @BBcan177 to confirm that.
Yes that is ok. I forgot to change that function call. Its only called if you enabled the Widget clear counters option tho.
Will get this fixed in next version asap.
-
@jdeloach said in pfBlockerNG php error after update to 3.0.0_5:
@cool_corona said in pfBlockerNG php error after update to 3.0.0_5:
One thing also is that I have to start unbound manually after the update.
I've noticed that too. I would have thought that @BBcan177 would have fixed that in the last version unless it it something that we have to do from now on.
Its due to this:
https://redmine.pfsense.org/issues/10610Basically during pkg installation, its causing Unbound to go into a zombie state during installation. The devs are looking at it.
What does this report?
pkg-static -v
It should be 1.15.6 (in pfSense 2.4.5), you can try to upgrade the affected code:
pkg-static upgrade -f pkg
But I have still seen it fail with 1.15.10 (pfSense 2.5)
-
-
@bbcan177 I have not set this Clear Widget Option afaik, still every night I am running into this error. Could it get triggered by something else?