Adam,

All is well in r5189! Thanks for the prompt response/fix!


Regards,

SG

On 4/1/2014 7:07 PM, Adam Armstrong wrote:
Hi Spencer,

Try in the latest, I just added html/includes/functions.inc.php to the api.php

adam.

On 2014-04-01 17:03, Spencer Gaw wrote:
Hey guys,

After upgrading my test Observium server to revision 5188, all API
calls return a blank page. Going through the Apache error logs, I
found:

_[Tue Apr 01 16:37:13 2014] [error] [client __REDACTED__] PHP Fatal
error: Call to undefined function get_vars() in
/opt/observium/html/api.php on line 26_

Comparing this section of api.php to my production Observium server
running revision 5167, there are some differences:

R5188 API.PHP
_$vars = get_vars('GET');_
$vars['module'] = (!empty($vars['module']) ? $vars['module'] : "demo");

r5167 api.php
_foreach ($_GET as $key=>$get_var) {_
_ if (!empty($get_var)) {_
_ $vars[$key] = filter_var($get_var, FILTER_SANITIZE_STRING);_
_ }_
_}_

Any ideas where to start on this one? Admittedly, PHP is Greek to me
but hopefully this means something to you folks over in Dev Land. If
there's any additional info you'd like, please feel free to ask.

Regards,

SG


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium