<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 7, 2022 at 3:44 AM James Linder <<a href="mailto:jam@tigger.ws">jam@tigger.ws</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 7 Apr 2022, at 8:59 am, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>> wrote:<br>
> <br>
> Hoi James,<br>
> <br>
> Thursday, April 7, 2022, 1:19:55 AM, you wrote:<br>
> <br>
>> Does this make sense to anyone ...<br>
> <br>
>> Fatal error: Uncaught Error: Call to a member function query_col()<br>
>> on null in /srv/www/htdocs/mythweb/modules/backend_log/init.php:15<br>
>> Stack trace: #0 /srv/www/htdocs/mythweb/classes/Modules.php(30):<br>
>> require_once() #1 /srv/www/htdocs/mythweb/classes/Modules.php(50):<br>
>> Modules::load() #2<br>
>> /srv/www/htdocs/mythweb/modules/_shared/tmpl/default/header.php(144):<br>
>> Modules::getModule() #3<br>
>> /srv/www/htdocs/mythweb/modules/_shared/tmpl/_errors/error.php(19):<br>
>> include('/srv/www/htdocs...') #4<br>
>> /srv/www/htdocs/mythweb/includes/errordisplay.php(198):<br>
>> require_once('/srv/www/htdocs...') #5<br>
>> /srv/www/htdocs/mythweb/includes/database.php(15): custom_error() #6<br>
>> /srv/www/htdocs/mythweb/includes/init.php(43):<br>
>> require_once('/srv/www/htdocs...') #7<br>
>> /srv/www/htdocs/mythweb/mythweb.php(20):<br>
>> require_once('/srv/www/htdocs...') #8 {main} thrown in<br>
>> /srv/www/htdocs/mythweb/modules/backend_log/init.php on line 15<br>
> <br>
>> James<br>
>> _______________________________________________<br>
> <br>
> I'm guessing you're missing some php modules. Check that line 15 on<br>
> the last line<br>
<br>
I’m not clever enough to dig deep enough <br>
php db access IS enabled<br>
<br>
<?php<br>
/**<br>
 * Initialization routines for the MythWeb Backend Logs module<br>
 *<br>
 * @license     GPL<br>
 *<br>
 * @package     MythWeb<br>
 * @subpackage  Logs<br>
 *<br>
 **/<br>
<br>
    global $db;<br>
<br>
// Check to see if database logging has been enabled<br>
    $enabled = $db->query_col('SELECT SUM(data) FROM settings WHERE value="LogEnabled"’); <<<<<<<<<<<<<<<<<<<<<<<<<br>
<br>
// The TV module is always enabled.<br>
    if ($enabled > 0)<br>
        $Modules['backend_log'] = array('path'        => 'backend_log',<br>
                                        'sort'        => 550,<br>
                                        'name'        => t('Logs'),<br>
                                       );<br>
~<br><br></blockquote><div><br></div><div>Check apache2/sites-available/mythweb.conf <br>for correct database credentials<br>and correct location of the <br>"setenv include_path" setting in case of installing<br>mythweb to a custom location.<br><br>A bit of search found these links:<br><a href="https://lists.archive.carbon60.com/mythtv/users/634241?search_string=installing%20mythweb;#634241">https://lists.archive.carbon60.com/mythtv/users/634241?search_string=installing%20mythweb;#634241</a><br><a href="https://forum.mythtv.org/viewtopic.php?f=26&t=2062&p=10311&hilit=apache2+mythweb.conf#p10311">https://forum.mythtv.org/viewtopic.php?f=26&t=2062&p=10311&hilit=apache2+mythweb.conf#p10311</a></div><div> <br></div></div></div>