Hi
I’m out of my depth, maybe Stuart can comment:
[web page]
…
skin_urlimg/mythtv-logo.png" alt="MythTV" class="alpha_png">
------------------
Fatal error: Uncaught Error: Call to a member function query_col() on null in /srv/www/htdocs/mythweb/modules/backend_log/init.php:15 Stack trace: #0 /srv/www/htdocs/mythweb/classes/Modules.php(30): require_once() #1 /srv/www/htdocs/mythweb/classes/Modules.php(50): Modules::load() #2 /srv/www/htdocs/mythweb/modules/_shared/tmpl/default/header.php(144): Modules::getModule() #3 /srv/www/htdocs/mythweb/modules/_shared/tmpl/_errors/error.php(19): include('/srv/www/htdocs...') #4 /srv/www/htdocs/mythweb/includes/errordisplay.php(198): require_once('/srv/www/htdocs...') #5 /srv/www/htdocs/mythweb/includes/database.php(15): custom_error() #6 /srv/www/htdocs/mythweb/includes/init.php(43): require_once('/srv/www/htdocs...') #7 /srv/www/htdocs/mythweb/mythweb.php(20): require_once('/srv/www/htdocs...') #8 {main} thrown in /srv/www/htdocs/mythweb/modules/backend_log/init.php on line 15
[sandypit] /home/jam [1004]% cat /srv/www/htdocs/mythweb/modules/backend_log/init.php
<?php
/**
* Initialization routines for the MythWeb Backend Logs module
*
* @license GPL
*
* @package MythWeb
* @subpackage Logs
*
**/
global $db;
echo "------------------ $db";
// Check to see if database logging has been enabled
$enabled = $db->query_col('SELECT SUM(data) FROM settings WHERE value="LogEnabled"');
// The TV module is always enabled.
if ($enabled > 0)
$Modules['backend_log'] = array('path' => 'backend_log',
'sort' => 550,
'name' => t('Logs'),
);
So it looks like $db is NULL
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
I’m out of my depth, maybe Stuart can comment:
[web page]
…
skin_urlimg/mythtv-logo.png" alt="MythTV" class="alpha_png">
------------------
Fatal error: Uncaught Error: Call to a member function query_col() on null in /srv/www/htdocs/mythweb/modules/backend_log/init.php:15 Stack trace: #0 /srv/www/htdocs/mythweb/classes/Modules.php(30): require_once() #1 /srv/www/htdocs/mythweb/classes/Modules.php(50): Modules::load() #2 /srv/www/htdocs/mythweb/modules/_shared/tmpl/default/header.php(144): Modules::getModule() #3 /srv/www/htdocs/mythweb/modules/_shared/tmpl/_errors/error.php(19): include('/srv/www/htdocs...') #4 /srv/www/htdocs/mythweb/includes/errordisplay.php(198): require_once('/srv/www/htdocs...') #5 /srv/www/htdocs/mythweb/includes/database.php(15): custom_error() #6 /srv/www/htdocs/mythweb/includes/init.php(43): require_once('/srv/www/htdocs...') #7 /srv/www/htdocs/mythweb/mythweb.php(20): require_once('/srv/www/htdocs...') #8 {main} thrown in /srv/www/htdocs/mythweb/modules/backend_log/init.php on line 15
[sandypit] /home/jam [1004]% cat /srv/www/htdocs/mythweb/modules/backend_log/init.php
<?php
/**
* Initialization routines for the MythWeb Backend Logs module
*
* @license GPL
*
* @package MythWeb
* @subpackage Logs
*
**/
global $db;
echo "------------------ $db";
// Check to see if database logging has been enabled
$enabled = $db->query_col('SELECT SUM(data) FROM settings WHERE value="LogEnabled"');
// The TV module is always enabled.
if ($enabled > 0)
$Modules['backend_log'] = array('path' => 'backend_log',
'sort' => 550,
'name' => t('Logs'),
);
So it looks like $db is NULL
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org