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

PHP error when using API

Scheduled Pinned Locked Moved CE 2.6.0 Development Snapshots (Retired)
3 Posts 2 Posters 2.0k 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
    Josef
    last edited by Jan 31, 2022, 2:05 PM

    I keep getting the 'pfSense has detected a crash report or programming bug. Click here for more information.' error on the home page whenever I use the API.
    When I go into the details, I see the error 'PHP Warning: Invalid argument supplied for foreach() in /usr/local/www/xmlrpc.php(147) : eval()'d code on line 8'

    This is the only error I get, and I get an additional instance of the error each time the API is called.

    I am using the Pfsense integration on home Assistant, so I am not quite sure how its using the API.
    I got this on the 2.6 beta, and now still getting it on the 2.6 RC.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 31, 2022, 7:12 PM

      Sounds like a syntax error in whatever query it's sending to the API. Something they need to fix in their integration, not a bug in the base.

      There isn't any way for pfSense to fix code in that XMLRPC call as it's running the code it's given by the client calling the API.

      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
      • J
        Josef
        last edited by Feb 19, 2022, 10:08 AM

        Looks like it's fixed in 2.6.0 GA

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received