Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Crash report details: PHP Errors

    Scheduled Pinned Locked Moved IDS/IPS
    3 Posts 3 Posters 382 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nasheayahu
      last edited by

      Crash report begins.  Anonymous machine information:
      
      arm64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT #1 plus-RELENG_23_05_1-n256108-459fc493a87: Wed Jun 28 04:25:15 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_05_1-main/obj/aarch64/0P4W6joa/var/jenkins/workspace/pfSense-Plus-snapshots-23_05_1-main/source
      
      Crash report details:
      
      PHP Errors:
      [20-Aug-2023 10:19:34 America/Denver] PHP Fatal error:  Uncaught ValueError: date_create_from_format(): Argument #2 ($datetime) must not contain any null bytes in /usr/local/www/widgets/widgets/suricata_alerts.widget.php:183
      Stack trace:
      #0 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(183): date_create_from_format('m/d/Y-H:i:s.u', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...')
      #1 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(78): suricata_widget_get_alerts()
      #2 {main}
        thrown in /usr/local/www/widgets/widgets/suricata_alerts.widget.php on line 183
      
      
      
      No FreeBSD crash data found.
      

      Is there anything I need to do to correct this?

      R 1 Reply Last reply Reply Quote 0
      • R
        rcoleman-netgate Netgate @nasheayahu
        last edited by

        @nasheayahu said in Crash report details: PHP Errors:

        #0 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(183): date_create_from_format('m/d/Y-H:i:s.u', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...')
        #1 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(78): suricata_widget_get_alerts()

        Try uninstalling and reinstalling Suricata.

        This error is not a GUI-related issue but specific to the package.

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        1 Reply Last reply Reply Quote 1
        • R rcoleman-netgate moved this topic from webGUI on
        • bmeeksB
          bmeeks
          last edited by

          Something is wrong with the alerts.log file for that interface. There should never be a NULL value in that file. It is impossible to have an alert line generated in that file without a corresponding timestamp entry for that alert. The file has gotten corrupted.

          You will need to delete that corrupt file. A reinstall will not fix the issue unless you check the option to remove all logs when uninstalling/reinstalling.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.