Ver 2.3 pfBlockerNG error when saving configuration



  • When trying to save a new configuration I get the following```
    Crash report begins.  Anonymous machine information:

    amd64
    10.3-RELEASE
    FreeBSD 10.3-RELEASE #6 05adf0a(RELENG_2_3_0): Mon Apr 11 18:52:07 CDT 2016    root@ce23-amd64-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense

    Crash report details:

    PHP Errors:
    [16-Apr-2016 01:15:00 America/Denver] PHP Stack trace:
    [16-Apr-2016 01:15:00 America/Denver] PHP  1. {main}() /usr/local/www/pfblockerng/pfblockerng.php:0
    [16-Apr-2016 01:15:00 America/Denver] PHP  2. pfblockerng_sync_cron() /usr/local/www/pfblockerng/pfblockerng.php:94
    [16-Apr-2016 01:15:00 America/Denver] PHP  3. sync_package_pfblockerng() /usr/local/www/pfblockerng/pfblockerng.php:387
    [16-Apr-2016 01:15:39 America/Denver] PHP Stack trace:
    [16-Apr-2016 01:15:39 America/Denver] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
    [16-Apr-2016 01:15:39 America/Denver] PHP  2. eval() /usr/local/www/pkg_edit.php:255
    [16-Apr-2016 01:15:39 America/Denver] PHP  3. sync_package_pfblockerng() /usr/local/www/pkg_edit.php(255) : eval()'d code:3

    
    However the changes appear to be saved. I have deleted the package and did a fresh install with the same results. Any ideas? Should I be concerned?

  • Moderator

    Hi, Those errors don't point to the issue unfortunately… Could you take a look at the file  /tmp/PHP_errors.log and see if it shows any other clues?

    Also take a look at the pfblockerng.log file around the timestamps of these errors, and see if they report any additional clues...

    Which Tab were you saving at the time? Can you post a screenshot of that page?



  • BBcan177,

    I have not been able to do a print screen. I can capture it and save it as a *.png file, but don't now how to stick in the reply. However this is what I did.
        Firewall –> pfBlockerNG --> General --> Country --> Top 20

    I added a country in the left part of the screen, IPv4 Countries and clicked on "SAVE". I did not select any of the IPv6 countries.

    This a different result from the previous. I do not know why?

    From the dashboard

    					Crash report begins.  Anonymous machine information:
    
    amd64
    10.3-RELEASE
    FreeBSD 10.3-RELEASE #6 05adf0a(RELENG_2_3_0): Mon Apr 11 18:52:07 CDT 2016     root@ce23-amd64-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense
    
    Crash report details:
    
    PHP Errors:
    [16-Apr-2016 14:12:54 America/Denver] PHP Stack trace:
    [16-Apr-2016 14:12:54 America/Denver] PHP   1\. {main}() /usr/local/www/pkg_edit.php:0
    [16-Apr-2016 14:12:54 America/Denver] PHP   2\. eval() /usr/local/www/pkg_edit.php:255
    [16-Apr-2016 14:12:54 America/Denver] PHP   3\. sync_package_pfblockerng() /usr/local/www/pkg_edit.php(255) : eval()'d code:3
    

    From  PHP_errors.log

    Message from syslogd@pfSense at Apr 16 13:43:36 ...
    pfSense php-fpm[94750]: /pkg_edit.php: Successful login for user 'admin' from: 192.168.20.201
    [16-Apr-2016 14:12:54 America/Denver] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4290
    [16-Apr-2016 14:12:54 America/Denver] PHP Stack trace:
    [16-Apr-2016 14:12:54 America/Denver] PHP   1\. {main}() /usr/local/www/pkg_edit.php:0
    [16-Apr-2016 14:12:54 America/Denver] PHP   2\. eval() /usr/local/www/pkg_edit.php:255
    [16-Apr-2016 14:12:54 America/Denver] PHP   3\. sync_package_pfblockerng() /usr/local/www/pkg_edit.php(255) : eval()'d code:3
    

    Here is snapshot of /var/log/pfblockerng: I tried several times.

    ===[  Continent Process  ]============================================
    
    [ pfB_Top_v4 ]           exists. 
    
    ===[  IPv4 Process  ]=================================================
    
    ===[  IPv6 Process  ]=================================================
    
    Warning: Invalid argument supplied for foreach() in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4290
    
    Call Stack:
        0.0013     383816   1\. {main}() /usr/local/www/pfblockerng/pfblockerng.php:0
        0.0620   10908952   2\. pfblockerng_sync_cron() /usr/local/www/pfblockerng/pfblockerng.php:94
        0.0621   10915416   3\. sync_package_pfblockerng() /usr/local/www/pfblockerng/pfblockerng.php:387
    
    ===[  Aliastables / Rules  ]==========================================
    
    No changes to Firewall rules, skipping Filter Reload
    No Changes to Aliases, Skipping pfctl Update
    
     UPDATE PROCESS ENDED 
    
    **Saving configuration [ 04/16/16 14:12:54 ] ...
     CRON  PROCESS  START [ 04/16/16 14:15:00 ]
     UPDATE PROCESS START 
    
    Clearing all DNSBL Feeds... 
    ** DNSBL Disabled **
    
    ===[  Continent Process  ]============================================
    
    [ pfB_Top_v4 ]           exists. 
    
    ===[  IPv4 Process  ]=================================================
    
    ===[  IPv6 Process  ]=================================================
    
    Warning: Invalid argument supplied for foreach() in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4290
    
    Call Stack:
        0.0013     383816   1\. {main}() /usr/local/www/pfblockerng/pfblockerng.php:0
        0.0622   10908752   2\. pfblockerng_sync_cron() /usr/local/www/pfblockerng/pfblockerng.php:94
        0.0623   10915216   3\. sync_package_pfblockerng() /usr/local/www/pfblockerng/pfblockerng.php:387
    
    ===[  Aliastables / Rules  ]==========================================
    
    No changes to Firewall rules, skipping Filter Reload
    No Changes to Aliases, Skipping pfctl Update
    
     UPDATE PROCESS ENDED 
    
    **Saving configuration [ 04/16/16 14:21:59 ] ...
    
    

Log in to reply