MythWeb not rendering due to errors

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
bmfesta2009
Newcomer
Posts: 5
Joined: Fri Oct 08, 2021 7:47 pm
United States of America

MythWeb not rendering due to errors

Post by bmfesta2009 »

For several months now (probably since July) I haven't been able to use MythWeb and it's finally frustrated me enough to ask for support.

I have attempted to going through mathbackend setup several times, reset the pin, reset ip addresses, set file permissions, set database permissions, and have uninstalled and reinstalled php and mythweb several times.

When attempting to browse to MythWeb I get this:

Code: Select all

Warning at /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php, line 19:
!!NoTrans: Use of undefined constant tmpl - assumed 'tmpl' (this will throw an Error in a future version of PHP)!!

512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_urlimg/favicon.ico" type="image/x-icon"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_urlimg/favicon.ico" type="image/x-icon"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_urlimg/apple-touch-icon.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_urlimg/apple-touch-icon-72x72.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_urlimg/apple-touch-icon-114x114.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_url/style.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_url/header.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_url/menus.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => HTPC-BE [http_host] => 10.61.1.60 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://10.61.1.60/mythweb/ [root_url] => http://10.61.1.60/mythweb/ [stream_url] => http://10.61.1.60:80//mythweb/ [tb] => 1099511627776 [tmpl] => default ) -->
skin_url/programming.css">
and I don't see a mythweb log but my apache log shows this:

Code: Select all

[Fri Oct 08 15:40:14.183768 2021] [php7:error] [pid 1461] [client 10.61.1.215:48124] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21
[Fri Oct 08 15:40:14.265210 2021] [php7:error] [pid 1461] [client 10.61.1.215:48124] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:14.272616 2021] [php7:error] [pid 1463] [client 10.61.1.215:48128] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:14.276547 2021] [php7:error] [pid 1464] [client 10.61.1.215:48130] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:14.276547 2021] [php7:error] [pid 1462] [client 10.61.1.215:48122] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:20.756646 2021] [php7:error] [pid 1465] [client 10.61.1.215:48136] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21
[Fri Oct 08 15:40:20.819400 2021] [php7:error] [pid 1465] [client 10.61.1.215:48136] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:20.823775 2021] [php7:error] [pid 1836] [client 10.61.1.215:48138] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:20.824292 2021] [php7:error] [pid 1834] [client 10.61.1.215:48132] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
[Fri Oct 08 15:40:20.825969 2021] [php7:error] [pid 1835] [client 10.61.1.215:48140] PHP Fatal error:  Uncaught Error: Call to undefined function t() in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21\nStack trace:\n#0 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43): require()\n#1 /usr/share/mythtv/mythweb/includes/errors.php(128): require_once('/usr/share/myth...')\n#2 [internal function]: error_handler()\n#3 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php(98): trigger_error()\n#4 /usr/share/mythtv/mythweb/classes/Database.php(263): Database_Query_mysqlicompat->execute()\n#5 /usr/share/mythtv/mythweb/classes/Database.php(326): Database->query()\n#6 /usr/share/mythtv/mythweb/includes/utils.php(61): Database->query_col()\n#7 /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(95): setting()\n#8 /usr/share/mythtv/mythweb/modules/_shared/tmpl/tmpl/header.php(16): require('/usr/share/myth...')\n#9 /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/site_down.php(19): require('/usr/share/myth...')\n#10 /usr/share/mythtv/mythweb/includes/errordisplay.p in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21, referer: http://10.61.1.60/mythweb/
Looking for any help that can be provided.
bmfesta2009
Newcomer
Posts: 5
Joined: Fri Oct 08, 2021 7:47 pm
United States of America

Re: MythWeb not rendering due to errors

Post by bmfesta2009 »

Since I haven't had a reply yet let me see if adding some more context helps.

The source from footer.php line 21 is

Code: Select all

<div id="ajax_working" class="hidden">
 <?php echo t('$1 requests pending.', '<span id="ajax_num_requests">0</span>'); ?>
</div>
The header for mysqlicompat.php states:

Code: Select all

/**
 * This file was originally written by Chris Petersen for several different open
 * source projects.  It is distrubuted under the GNU General Public License.
 * I (Chris Petersen) have also granted a special LGPL license for this code to
 * several companies I do work for on the condition that these companies will
 * release any changes to this back to me and the open source community as GPL,
 * thus continuing to improve the open source version of the library.  If you
 * would like to inquire about the status of this arrangement, please contact
 * me personally.
 *
 * ---
 *
 * Query handler for the "compatible" version of the improved MySQL engine.
 * This is also the parent class for the full/expanded mysqli query object,
 * since many of the routines are shared between them.
 *
 * @copyright   Silicon Mechanics
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Database
 *
 * @uses        Database.php
 * @uses        Database_mysqlicompat.php
 * @uses        Database_Query.php
 *
 **/
The line from Database.php at 263 is

Code: Select all

/**
 *  Perform a database query and return a handle.  Usage:
 *
 *  <pre>
 *      $sh =& $db->query('SELECT * FROM foo WHERE x=? AND y=? AND z="bar\\?"',
 *                        $x_value, $y_value);
 *  </pre>
 *
 *  @param string $query    The query string
 *  @param mixed  $arg      Query arguments to escape and insert at ? placeholders in $query
 *  @param mixed  ...       Additional arguments
 *
 *  @return mixed           Statement handle for the current type of database connection
 **/
    function &query($query) {
    // Hack to get query_row and query_assoc working correctly
        $args = array_slice(func_get_args(), 1);
    // Create and return a database query
        $start_time = microtime(true);
        $this->last_sh =& $this->prepare($query);
        $this->last_sh->execute($args);
        $this->query_time += microtime(true) - $start_time;
        $this->query_count++;
    // PHP 5 doesn't like us returning NULL by reference
        if (!$this->last_sh->sh)
            $this->last_sh = NULL;
        return $this->last_sh;
    }
and line 326

Code: Select all

/**
 *  Returns a single column from the database and frees the result.
 *
 *  @param string $query    The query string
 *  @param mixed  $arg      Query arguments to escape and insert at ? placeholders in $query
 *  @param mixed  ...       Additional arguments
 *
 *  @return mixed
 **/
    function query_col($query) {
    // Query and return
        $args  = array_slice(func_get_args(), 1);
        $sh    = $this->query($query, $args);
        if ($sh) {
            list($return) = $sh->fetch_row();
            $sh->finish();
            return $return;
        }
        return null;
    }
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythWeb not rendering due to errors

Post by bill6502 »

Hi,

For the short term, you may find WebFrontend a reasonable workaround: yourBackend:6544

You should mention your distribution, but on my Ubuntu 202.04 host:

Code: Select all

$ dpkg -l "*mysql*" | grep -i php | grep "^ii"
ii  php-mysql                   2:7.4+75                all          MySQL module for PHP [default]
ii  php7.3-mysql                7.3.11-0ubuntu0.19.10.4 amd64        MySQL module for PHP
ii  php7.4-mysql                7.4.3-4ubuntu2.6        amd64        MySQL module for PHP
$ php --version
PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )
...
Looking to see if the PHP MySQL package is installed for PHP version 7.4. Total guess
based on the initial stack trace above.
bmfesta2009
Newcomer
Posts: 5
Joined: Fri Oct 08, 2021 7:47 pm
United States of America

Re: MythWeb not rendering due to errors

Post by bmfesta2009 »

Bill,

Thank you for the reply. It originated as a Mythbuntu install so, consider it Ubuntu 20.04 LTS (Focal)

To support your request:

Code: Select all

$ dpkg -l "*mysql*" | grep -i php | grep "^ii"
ii  php-mysql                 2:7.4+75                all          MySQL module for PHP [default]
ii  php7.4-mysql              7.4.3-4ubuntu2.6        amd64        MySQL module for PHP
$ php --version
PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
glenb
Junior
Posts: 29
Joined: Sun Nov 17, 2019 7:48 am
United States of America

Re: MythWeb not rendering due to errors

Post by glenb »

I still have mythweb working but i am on Arch linux. I did have some small problems very recently with other php based modules like phpmyadmin and had to make some changes to the php.ini
You may want to have a look at the arch wiki for mythweb and adjust for ubunutu where necessary and double check your php.ini settings maybe you get lucky. https://wiki.archlinux.org/title/MythWeb#PHP
bmfesta2009
Newcomer
Posts: 5
Joined: Fri Oct 08, 2021 7:47 pm
United States of America

Re: MythWeb not rendering due to errors

Post by bmfesta2009 »

Thank you glenb, unfortunately it did not net any change of results for me.
glenb
Junior
Posts: 29
Joined: Sun Nov 17, 2019 7:48 am
United States of America

Re: MythWeb not rendering due to errors

Post by glenb »

looking above at your packages, have you tried making the php7.4-mysql the default. it indicates the other is the default. or maybe just to test remove the default package php-mysql and see if that changes anything. what is activated for mysql in your php.ini, and are you looking at the correct php.ini, there may be more that one. it seems like you have some php issue, so i would look to clean up your php install. i don't know the steps for ubuntu. in mine, i have uncommented extension=mysqli and extension=pdo_mysql also i have the modules themselves in /usr/lib/php7/modules. you should find that directory where php is getting the modules and make sure the module for mysql is matching out to the extension in php.ini
halucigenia
Senior
Posts: 122
Joined: Tue Nov 11, 2014 11:03 am
Great Britain

Re: MythWeb not rendering due to errors

Post by halucigenia »

I recently upgraded to Kubuntu 21.10 and lost access to mythweb as php8.0 was installed and php7.4 was removed.
I tried using WebFrontend but found it did not work for searching for movies, I would only get a day or 2 down the page before it crashed. I also missed the channel editor page which I always use after a new channel scan to catch new or renamed channels after ruining a script to re-name/re-populate my channels. I also use mythweb to adjust my transcoding script parameters when I need to.
Anyway, I found info on being able to run both php8.0 and php7.4
Here https://codefaq.org/php/how-to-install- ... nd-ubuntu/
Missing out the bits on NGINX.

I found that I had to instal mythweb, php7.4-mysql and libapache2-mod-php7.4 and now I am back using mythweb.
bmfesta2009
Newcomer
Posts: 5
Joined: Fri Oct 08, 2021 7:47 pm
United States of America

Re: MythWeb not rendering due to errors

Post by bmfesta2009 »

Unfortunately I have all of those packages installed as well, but still no luck.
glenb
Junior
Posts: 29
Joined: Sun Nov 17, 2019 7:48 am
United States of America

Re: MythWeb not rendering due to errors

Post by glenb »

i would suggest you remove everything you have for php apache-php and php-mysql. then once certain they are gone reinstall the ones used sucessfully above in halucigenia's post.

i'm going to make a run at setting up running two php versions with php-fpm only because i want to continue using mythweb, but all of my other configs for other webapps will all have to change. i found a few different tutorials. i'm on arch and using apache.
howdyhey
Junior
Posts: 37
Joined: Tue Jan 26, 2016 4:51 pm
United States of America

Re: MythWeb not rendering due to errors

Post by howdyhey »

... sigh ...

looks like i'm staying on 20.04 for the long haul to keep mythweb working. At least the extended maintenence from canonical is free for personal use.

Hopefully, one day, the developers will make the 6544 interface not suck and actually be useful.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: MythWeb not rendering due to errors

Post by paulh »

thezencowsaysmu wrote:
Thu Nov 18, 2021 2:20 pm
... sigh ...

looks like i'm staying on 20.04 for the long haul to keep mythweb working. At least the extended maintenence from canonical is free for personal use.

Hopefully, one day, the developers will make the 6544 interface not suck and actually be useful.
Let me ask you this. If you was a developer and you read this would you be inspired to spend all your free time for free to improve things or would you say no forget it I'll do something else instead? :evil:
User avatar
Steve Goodey
Moderator
Posts: 219
Joined: Fri Feb 07, 2014 6:30 pm
Location: Colchester, England
Great Britain

Re: MythWeb not rendering due to errors

Post by Steve Goodey »

thezencowsaysmu wrote:
Thu Nov 18, 2021 2:20 pm
... sigh ...

looks like i'm staying on 20.04 for the long haul to keep mythweb working. At least the extended maintenence from canonical is free for personal use.

Hopefully, one day, the developers will make the 6544 interface not suck and actually be useful.

At the risk of piling on 8-) you could always ask for your money back. :D
Don't forget the Wiki.
howdyhey
Junior
Posts: 37
Joined: Tue Jan 26, 2016 4:51 pm
United States of America

Re: MythWeb not rendering due to errors

Post by howdyhey »

paulh wrote:
Thu Nov 18, 2021 2:34 pm
thezencowsaysmu wrote:
Thu Nov 18, 2021 2:20 pm
... sigh ...

looks like i'm staying on 20.04 for the long haul to keep mythweb working. At least the extended maintenence from canonical is free for personal use.

Hopefully, one day, the developers will make the 6544 interface not suck and actually be useful.
Let me ask you this. If you was a developer and you read this would you be inspired to spend all your free time for free to improve things or would you say no forget it I'll do something else instead? :evil:
well, i can't contribute code, so you want some constructive criticism for user interface improvement from an actual user? Great!
  • The teeny tiny "slide out" menu on the side is not very helpful user interface, and is completely impossible to use on a mobile device.
  • Unlike mythweb, the 6544 guide listing is very large and shows a lot less information in the grid
  • Unlike mythweb, the 6544 recordings listings show a lot less information (including episode summary)
  • Ditto for the upcoming recordings listing
  • The main entry screen on 6544 shows giant "hero images" that don't provide any relevant or useful information, and just take up the majority of screen space with a random screenshot from recently recorded shows
Mythweb works quite well. It's great that the 6544 interface is attempting to add some useful features like some of the admin tools available only in mythtv-setup, but the user interface is not very usable. It's unfortunate that development for mythweb has ceased (especially as php8 is standard for current fedora, ubuntu, etc. distribution releases)-- perhaps mythweb can be more of a "style guide" for the 6544 interface development, because the current iteration of 6544 is very difficult to use.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: MythWeb not rendering due to errors

Post by paulh »

The current WebFrontend was a first stab at trying to replace MythWeb that requires zero setup to get working. The two developers that did most of the original work have since left the project so work on it stalled. I think the only developer left who wants to work on it is Stuart A and he has stated he wants to rewrite it and use another framework so you may get your wish but I wouldn't hold your breath.

On thing I do know is I don't have any interest in either MythWeb or WebFrontend so I most definitely wont be working on either ;) I do want the Services API to be a success which is a precursor to the new WebFrontend setup so may start looking at that again but to be honest comments like yours don't fill me with enthusiasm to get started on it :roll:
Post Reply