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

    PHP Error

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 503 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.
    • J
      joncwhite
      last edited by

      Hello,
      I am a bit of a novice user but have been using Pfsense for several years on a very basic setup. I recently changed hardware and after a few days I have been getting the error below every minute or so. Any advice?

      [11-Sep-2023 07:29:05 America/Phoenix] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/xmlrpc.php(147) : eval()'d code:14
      Stack trace:
      #0 /usr/local/www/xmlrpc.php(147): eval()
      #1 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): pfsense_xmlrpc_server->exec_php('\nini_set('displ...')
      #2 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array)
      #3 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse()
      #4 /usr/local/www/xmlrpc.php(987): XML_RPC2_Backend_Php_Server->handleCall()
      #5 {main}
      thrown in /usr/local/www/xmlrpc.php(147) : eval()'d code on line 14

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

        You have something trying to run code on your firewall via XMLRPC and it's sending outdated/incorrect code.

        The most common thing we've seen that happen from is an outdated Home Assistant integration. Updating the integration (or disabling it) should get rid of the error.

        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 1
        • J
          joncwhite @jimp
          last edited by

          @jimp Thank-you so much. I do use a Home Assistant integration. I will look into it.

          Again Thank You!

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

            @jimp I have disabled and deleted the Home Assistant Pfsense integration but I still constantly get the error 24 hours later. I have been looking at your other posts related to this problem. Could you give me more details on:

            "try installing the System Patches package and then create an entry for 053f60e56d09ba711af245c7f0ce6a06673ccc89 to apply the fix"

            Thanks again for your help.

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

              That patch wouldn't be related to what you are seeing.

              It has to be something hitting the XMLRPC service and sending its own code.

              You can look at Status > System Logs, on the System tab and GUI Service sub-tab for the GUI web server logs. Look through them and see what is accessing xmlrpc.php

              That should get you the IP address of whatever is sending the command triggering the errors. You can then match that up with other info (e.g. DHCP leases) to figure out where it's coming from.

              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
                joncwhite @jimp
                last edited by

                It's defiantly Home Assistant. I assume deleting the integration didn't completely get rid of everything. I'll have to do some poking around and see if I can find out how to disable whatever is left.

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