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

    PHP Errors on csrf-magic.php and diag_command.php files

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 489 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.
    • E
      Elrick75
      last edited by

      Hi,

      I have been using pfsense for more than 3 years...
      Package used are simple : Cron, ntopng, openvpn-client-export
      I have very very few rules

      I received notification emails from my firewall with the following errors...
      I specify that I did nothing in the interface before discovering the errors in question.
      How can I find the root cause of these error messages?

      Crash report begins.  Anonymous machine information:
      
      amd64
      12.3-STABLE
      FreeBSD 12.3-STABLE RELENG_2_6_0-XXXXXXXXXXXXXXXXXXXXXXXXXXX
      
      Crash report details:
      
      PHP Errors:
      [08-Feb-2023 16:06:02 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174
      [08-Feb-2023 16:06:02 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161
      [08-Feb-2023 16:07:19 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174
      [08-Feb-2023 16:07:19 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161
      [08-Feb-2023 16:07:23 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174
      [08-Feb-2023 16:07:23 Europe/Paris] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161
      
      No FreeBSD crash data found.
      
      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by stephenw10

        @elrick75 said in PHP Errors on csrf-magic.php and diag_command.php files:

        (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php

        It looks like something was run in the Diag > Command Prompt page that didn't have a limited runtime and ended up exhausting the PHP memory limit.
        Only ever run things there that complete immediately. So never run something like ping 8.8.8.8 there because it will just run continually in the background . If you need to set a count limit so it returns after that like ping -c 3 8.8.8.8.

        Steve

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