PHP crash on firewall rules



  • Hi, I'm not sure if this is the correct board to post this but I'm running  pfsesne 2.4.4-DEVELOPMENT version and I'm experiening this crash everytime I open the firewall rules page:

    Crash report details:

    PHP Errors:
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:24:36 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:25 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:25:31 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:08 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542
    [22-Mar-2018 10:26:16 Africa/Johannesburg] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/firewall_rules.php on line 542

    No FreeBSD crash data found.

    I'm running a few packages but the the only one that interacts with the firewall is pfBlockerng although I don't think thats the issue. The crash doesn't seem to adversely affect the system but if anyone can give me some idea of possible cause and/or remedy I would greatly appreciate it. I have searched both the pfSense forum and google but I have gotten no useful results.

    Any help appreciated.

    Nick.


  • Developer Netgate

    A quick look at the code would indicate there may be an issue with one of your rule schedules. A schedule is missing a time range. It might be good to check your schedules for errors.



  • Thanks for the reply, I haven't actively setup any schedules but checking in the schedule page I see that there is a schedule with this error:

    I'll explore a little further this evening, but if there is anything I'm missing about this I would appreciate it.



  • Developer Netgate

    Probably best to delete that schedule.



  • Thanks for your help Steve_B, I tried to delete that schedule and it just wouldn't. I eventually decided to manually edit the config.xml (not the safest things I know) and remove the schedules from there. This seems to have worked and I no longer get any errors or crashed.

    Once again, thanks for pointing me in the right direction.


Log in to reply