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

    PHP Crash Report

    Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
    12 Posts 5 Posters 1.6k 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.
    • A
      AnnabellaRenee87
      last edited by

      Updated to the Beta today, getting a lot of PHP errors over and over again, not sure if it's a broken config on my part or what. Anyone have any ideas?

      PHP_errors.txt

      1 Reply Last reply Reply Quote 0
      • A
        AnnabellaRenee87
        last edited by

        As an update to this, I reverted back to a backup.

        Don't know if those logs provided will help or not for future development but I hope they help in some way!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Those seem to be consistent with one thing we'd see when it runs out of disk space during the upgrade. We have some safety belts to prevent that but there are still some ways it can happen unexpectedly mid-upgrade if it's borderline before starting.

          If you have ZFS boot environments, make sure there aren't so many that it's filling up the disk. If you are regularly tracking snapshots it's easy for those to pile up. Go in and clean out all but the last few.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          S 1 Reply Last reply Reply Quote 0
          • S
            spyfly @jimp
            last edited by

            @jimp I'm getting the same errors after upgrading to 23.01, as seen here: PHP_errors.log.txt

            Space doesn't seem to be an issue thought, as I have ~400 GB of free space left on my disk.

            The errors stop appearing, when I disable the pfSense integration for home assistant that pulls the pfSense for statistics.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Then it's possible the code in that Home Assistant feature needs updated to reflect changes in pfSense Plus 23.01, the base OS (FreeBSD 14), or the new PHP version (8.1).

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 1
              • S
                skogs
                last edited by

                Upon bumping to beta from 22.05 I also got a php error. Most likely unimportant. Checking the package manager it showed an update available for pfblockerng.
                Including error for due diligence:

                Crash report begins.  Anonymous machine information:
                
                amd64
                14.0-CURRENT
                FreeBSD 14.0-CURRENT #0 plus-devel-main-n255998-693fad75fe3: Fri Jan  6 06:28:49 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/obj/amd64/0khU7V4C/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/sources/FreeBS
                
                Crash report details:
                
                PHP Errors:
                [25-Jan-2023 17:59:36 America/Denver] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473
                Stack trace:
                #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed()
                #1 /usr/local/www/index.php(430): include('/usr/local/www/...')
                #2 {main}
                  thrown in /usr/local/www/widgets/widgets/pfblockerng.widget.php on line 473
                [25-Jan-2023 18:00:48 America/Denver] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473
                Stack trace:
                #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed()
                #1 /usr/local/www/index.php(430): include('/usr/local/www/...')
                #2 {main}
                  thrown in /usr/local/www/widgets/widgets/pfblockerng.widget.php on line 473
                
                
                
                No FreeBSD crash data found.
                			
                
                S 1 Reply Last reply Reply Quote 0
                • S
                  skogs @skogs
                  last edited by skogs

                  Hehe...as the error is in the silly widget on the front dashboard...well things are a little difficult. Upon triggering that error, can't really click the bell for other alerts or any of the rest of the interface.
                  Ok I give up; how does one remove a borked widget from the dashboard via command line? With the php errors; the web interface is completely useless.

                  Update w/workaround:

                  /usr/local/www/widgets/include/   mv widget-pfblockerng.inc   widget-pfblockerng.inc.bakk
                  
                  /usr/local/www/widgets/widgets mv pfblockerng.widget.php pfblockerng.widget.php.bakk
                  

                  Interface now normal and can set about reinstalling things properly.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    There were known issues with pfBlockerNG on 23.01 which have been corrected in the repo but aren't in public builds yet. Once we publish RC builds you can upgrade and add that back.

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    S 1 Reply Last reply Reply Quote 2
                    • S
                      skogs @jimp
                      last edited by

                      @jimp rock on.

                      1 Reply Last reply Reply Quote 0
                      • yon 0Y
                        yon 0
                        last edited by yon 0

                        PHP_errors.txt

                        1 Reply Last reply Reply Quote 0
                        • yon 0Y
                          yon 0
                          last edited by

                          [26-Jan-2023 19:33:00 UTC] PHP Warning:  Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/20210902/opcache.so (/usr/local/lib/php/20210902/opcache.so: Undefined symbol "zend_inheritance_cache_get"), /usr/local/lib/php/20210902/opcache.so.so (Cannot open "/usr/local/lib/php/20210902/opcache.so.so")) in Unknown on line 0
                          [26-Jan-2023 19:33:00 UTC] PHP Warning:  PHP Startup: session: Unable to initialize module
                          Module compiled with module API=20210902
                          PHP    compiled with module API=20190902
                          These options need to match
                           in Unknown on line 0
                          [26-Jan-2023 19:33:00 UTC] PHP Warning:  PHP Startup: bcmath: Unable to initialize module
                          Module compiled with module API=20210902
                          PHP    compiled with module API=20190902
                          These options need to match
                           in Unknown on line 0
                          

                          PHP_errors.txt

                          1 Reply Last reply Reply Quote 0
                          • jimpJ jimp locked this topic on
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            This is not a catch-all topic for any errors people see. Please start your own threads for different error messages.

                            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

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