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

    Zabbix agent broken on 2.4.4? PHP error

    Scheduled Pinned Locked Moved pfSense Packages
    32 Posts 5 Posters 3.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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Install the System Patches package and make a new entry for b77f0bf1311b617793dc40ea779512eb24805727 and then fetch/apply.

      After that you should be able to install packages.

      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 0
      • J
        jarlel
        last edited by

        Thanks, but kind of biting my own tail here:

        Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/inc/pkg-utils.inc:790
        Stack trace:
        #0 /etc/rc.packages(74): install_package_xml('System_Patches')
        #1 {main}
        thrown in /etc/inc/pkg-utils.inc on line 790
        PHP ERROR: Type: 1, File: /etc/inc/pkg-utils.inc, Line: 790, Message: Uncaught Error: Cannot use string offset as an array in /etc/inc/pkg-utils.inc:790
        Stack trace:
        #0 /etc/rc.packages(74): install_package_xml('System_Patches')
        #1 {main}
        thrownpkg-static: POST-INSTALL script failed

        Cleaning up cache... done.

        Any alternatives to get the patch installed?

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

          Ah, yeah, catch-22 there. Duh. Clearly my coffee hasn't kicked in yet.

          Try this from an ssh shell or the Diagnostics > Command page in the shell exec box:

          curl https://github.com/pfsense/pfsense/commit/b77f0bf1311b617793dc40ea779512eb24805727.diff | patch --directory=/ -p2 --ignore-whitespace
          

          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 0
          • J
            jarlel
            last edited by

            @jimp said in Zabbix agent broken on 2.4.4? PHP error:

            curl https://github.com/pfsense/pfsense/commit/b77f0bf1311b617793dc40ea779512eb24805727.diff | patch --directory=/ -p2 --ignore-whitespace

            Yes, that worked :-) Zabbix 3.2 installed! Thanks!

            Will this also work on 2.4.3?

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

              It's not necessary on 2.4.3, the bug that patch is fixing is only on 2.4.4.

              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 0
              • J
                jarlel
                last edited by

                Hm, ok. I have an issue that is related to PHP major versions - I am not allowed to install Zabbix on 2.4.3 as it raises some kind of "PHP Major version" issue. Says I need to upgrade first?

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

                  Yes, that's not related to this. As the message says, you need to upgrade to 2.4.4 before you can install or upgrade packages.

                  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!

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jarlel @jimp
                    last edited by

                    @jimp said in Zabbix agent broken on 2.4.4? PHP error:

                    Yes, that's not related to this. As the message says, you need to upgrade to 2.4.4 before you can install or upgrade packages.

                    Ok, so package install doesn't work on 2.4.3? Or is it just related to some specific packages?

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

                      As has been covered in numerous threads all over the forum, you can't install new packages on 2.4.3 because it will break the system as it's trying to pull things in from the 2.4.4 upgrade repo.

                      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!

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jarlel @jimp
                        last edited by

                        @jimp said in Zabbix agent broken on 2.4.4? PHP error:

                        As has been covered in numerous threads all over the forum, you can't install new packages on 2.4.3 because it will break the system as it's trying to pull things in from the 2.4.4 upgrade repo.

                        Ok, noted. Thanks.

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