diff --git a/env.example b/env.example index 64fd185fa11c..5ab4e02f9899 100644 --- a/env.example +++ b/env.example @@ -15,6 +15,8 @@ HTTPS_PORT=443 NGINX_RTMP_PORT=1935 NGINX_HTTP_PORT=8080 NGINX_HTTPS_PORT=8443 +PHPMYADMIN_PORT=8081 +PHPMYADMIN_ENCODER_PORT=8082 # Database configuration DB_MYSQL_HOST=database diff --git a/plugin/Live/Live.php b/plugin/Live/Live.php index dc046875d9ab..79af4784dfd3 100644 --- a/plugin/Live/Live.php +++ b/plugin/Live/Live.php @@ -1570,13 +1570,18 @@ public function getStatsObject($live_servers_id = 0, $force_recreate = false, $t public function createCacheStatsObject($live_servers_id = 0, $requestStatsTimout = 15) { if (!function_exists('simplexml_load_file')) { - _error_log("Live::getStatsObject: You need to install the simplexml_load_file function to be able to see the Live stats", AVideoLog::$ERROR); + _error_log("Live::createCacheStatsObject: You need to install the simplexml_load_file function to be able to see the Live stats", AVideoLog::$ERROR); return false; } global $global; if (!isset($global['isStatsAccessible'])) { $global['isStatsAccessible'] = array(); } + + if(!AVideoPlugin::isEnabled('Live')){ + _error_log("Live::createCacheStatsObject: live plugin is disabled", AVideoLog::$DEBUG); + return false; + } $name = "live_servers_id_{$live_servers_id}_getStatsObject"; $cacheHandler = new LiveCacheHandler(); $cacheHandler->setSuffix($name);