24.03-DEVELOPMENT - PHP Fatal error: Uncaught ValueError: range(): Argument #3
-
@SwissSteph I have updated my post, is it clearer now?
-
Thank you for your reply.
I was right... BUT I have a big spit next if I want to edit
With or without the patch I get the same error
[24-Apr-2024 11:22:58 Europe/Zurich] PHP Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must be greater than 0 for increasing ranges in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:391
Stack trace:
#0 /usr/local/www/pfblockerng/pfblockerng_category_edit.php(391): range()
#1 {main}
thrown in /usr/local/www/pfblockerng/pfblockerng_category_edit.php on line 391
[24-Apr-2024 11:25:46 Europe/Zurich] PHP Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must be greater than 0 for increasing ranges in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:391
Stack trace:
#0 /usr/local/www/pfblockerng/pfblockerng_category_edit.php(391): range()
#1 {main}
thrown in /usr/local/www/pfblockerng/pfblockerng_category_edit.php on line 391
[24-Apr-2024 11:28:32 Europe/Zurich] PHP Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must be greater than 0 for increasing ranges in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:391
Stack trace:
#0 /usr/local/www/pfblockerng/pfblockerng_category_edit.php(391): range()
#1 {main}
thrown in /usr/local/www/pfblockerng/pfblockerng_category_edit.php on line 391EDIT
I finally followed the very clear information from "graphene" in this post
https://forum.netgate.com/topic/187604/24-03-r-20240416-0005-unable-to-add-an-ipv4-entry-to-the-pfblockerng-configuration/6
and manually edited the two lines by removing the "-" before the "1".
It's all good, no more crashes when editing a line.
-
@pst said in 24.03-DEVELOPMENT - PHP Fatal error: Uncaught ValueError: range(): Argument #3:
I have updated my post
That looks perfect.
-
@SwissSteph said in 24.03-DEVELOPMENT - PHP Fatal error: Uncaught ValueError: range(): Argument #3:
With or without the patch I get the same error
Did you press Apply after adding the patch in System Patches? It doesn't get applied just by adding it. The patch is the same code as you manually edited so it should have worked, if applied. The system patch works for me, and others.
-
precisely ... no "apply" button, very strange indeed
-
@SwissSteph Two of the fields are not correct, change to
Path Strip Count: 0 Base Directory: /usr/local/www/pfblockerng/
-
I really suck ... and am very sorry to have taken up your time unnecessarily by poor handling and understanding on my part!!!!
Thank you for understanding my error put forward where I had made a mistake.
-
@SwissSteph No worries :)
-
To make something "clean", I re-edited the two lines, put all the "-" in front of the "1".
Created a "patch" with YOUR very clear instructions (thanks again!) and "applied" this patch.
So I confirm that your corrections also work very well for me.
THANKS
-
@SwissSteph just wish the code would get fixed permanently.
-
-
I skimmed this but donโt see anyone put in a pfBlocker bug report at Redmine.pfSense.org.
-
@SteveITS Thereโs actually several entries for it with different descriptions.
https://redmine.pfsense.org/issues/15419
https://redmine.pfsense.org/issues/15365 -
@DefenderLLC I wrote my note poorly...I meant, it wasn't linked on this page. I was on my phone and didn't dig into it, thanks for linking the reports.
-
-