From d51831b32d5ac349dfa8ffd63652a8564a8a5577 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 4 Aug 2015 14:21:46 +0000 Subject: [PATCH] (legacy) fix PHP Fatal error: Call to undefined function create_gateway_quality_rrd() in /usr/local/etc/inc/gwlb.inc on line 330 setup_gateways_monitor needs rrd.inc --- src/etc/inc/xmlrpc/legacy.inc | 1 + src/etc/rc.filter_configure_xmlrpc | 1 + src/www/system_gateway_groups.php | 1 + src/www/system_gateways.php | 1 + src/www/system_routes.php | 1 + 5 files changed, 5 insertions(+) diff --git a/src/etc/inc/xmlrpc/legacy.inc b/src/etc/inc/xmlrpc/legacy.inc index 94d0611e0..1009622c7 100644 --- a/src/etc/inc/xmlrpc/legacy.inc +++ b/src/etc/inc/xmlrpc/legacy.inc @@ -196,6 +196,7 @@ function filter_configure_xmlrpc() require_once("vslb.inc"); require_once("openvpn.inc"); require_once("services.inc"); + require_once("rrd.inc"); filter_configure(); system_routing_configure(); diff --git a/src/etc/rc.filter_configure_xmlrpc b/src/etc/rc.filter_configure_xmlrpc index 378695610..023440fa5 100755 --- a/src/etc/rc.filter_configure_xmlrpc +++ b/src/etc/rc.filter_configure_xmlrpc @@ -42,6 +42,7 @@ require_once("vslb.inc"); require_once("system.inc"); require_once("pfsense-utils.inc"); require_once("services.inc"); +require_once("rrd.inc"); system_routing_configure(); setup_gateways_monitor(); diff --git a/src/www/system_gateway_groups.php b/src/www/system_gateway_groups.php index f2b381a63..e82a11dc5 100644 --- a/src/www/system_gateway_groups.php +++ b/src/www/system_gateway_groups.php @@ -32,6 +32,7 @@ require_once("interfaces.inc"); require_once("openvpn.inc"); require_once("system.inc"); require_once("pfsense-utils.inc"); +require_once("rrd.inc"); // Resync and restart all VPNs using a gateway group. function openvpn_resync_gwgroup($gwgroupname = "") { diff --git a/src/www/system_gateways.php b/src/www/system_gateways.php index 09d49e48f..47408cf3f 100644 --- a/src/www/system_gateways.php +++ b/src/www/system_gateways.php @@ -33,6 +33,7 @@ require_once("filter.inc"); require_once("services.inc"); require_once("system.inc"); require_once("pfsense-utils.inc"); +require_once("rrd.inc"); $a_gateways = return_gateways_array(true, false, true); $a_gateways_arr = array(); diff --git a/src/www/system_routes.php b/src/www/system_routes.php index 61a1ee97e..5bca616ee 100644 --- a/src/www/system_routes.php +++ b/src/www/system_routes.php @@ -32,6 +32,7 @@ require_once("interfaces.inc"); require_once("filter.inc"); require_once("system.inc"); require_once("pfsense-utils.inc"); +require_once("rrd.inc"); if (!is_array($config['staticroutes'])) { $config['staticroutes'] = array();