PHP error when using API
-
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. -
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.
-
Looks like it's fixed in 2.6.0 GA