Re: Module Problem mit Mythweb
Le 25/12/2018 à 19:30, Klaus Becker a écrit :
Moin,
ich benutze Mythweb 29 auf 2 Rechnern, beide mit Debian unstable und XFCE4.
Auf einem Desktoprechner funktionniert Mythweb, auf einem Lappi bekomme
ich die Meldung
"Use of undefined constant modules_path - assumed 'modules_path'".
Mythweb ist natürlich installiert.
Auf dem Lappi habe ich nur das Nötigste installiert um Mythtv zu
benutzen, ich vermute daher, dass dort was fehlt.
lsmod | wc -l ergibt auf dem Desktoprechner 117 Module, auf dem Lappi
87. Hat es Sinn, die beiden Listen zu vergleichen, um herauszufinden,
was fehlt?
Oder liegt das Problem woanders?
Geruhsame Festtage
Klaus
Inzwischen bin ich ein Stück weitergekommen. Ich hatte nicht die ganze
Fehlermeldung gesehen, nur den Titel:
==============
Warning: Use of undefined constant modules_path - assumed 'modules_path'
(this will throw an Error in a future version of PHP) in
/usr/share/mythtv/mythweb/includes/class_autoload.php on line 19
[...]
Warning: Use of undefined constant error_email - assumed 'error_email'
(this will throw an Error in a future version of PHP) in
/usr/share/mythtv/mythweb/includes/errors.php on line 237
Fatal Error
!!NoTrans: You are missing a php extension for mysql interaction. Please
install php-mysqli or similar!!
If you choose to submit a bug report please make sure to include a
brief description of what you were doing, along with the following
backtrace as an attachment (please don\'t just paste the whole thing
into the ticket)
Warning: Use of undefined constant tmpl - assumed 'tmpl' (this will
throw an Error in a future version of PHP) in
/usr/share/mythtv/mythweb/includes/utils.php on line 334
Warning: Use of undefined constant tmpl - assumed 'tmpl' (this will
throw an Error in a future version of PHP) in
/usr/share/mythtv/mythweb/includes/utils.php on line 335
Fatal error: Uncaught Error: Call to undefined function t() in
/usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php:21
Stack trace: #0
/usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php(43):
require() #1 /usr/share/mythtv/mythweb/includes/errors.php(128):
require_once('/usr/share/myth...') #2 [internal function]:
error_handler(256, '!!NoTrans: You ...', '/usr/share/myth...', 20,
Array) #3 /usr/share/mythtv/mythweb/includes/php_version_check.php(20):
trigger_error('You are missing...', 256) #4
/usr/share/mythtv/mythweb/includes/init.php(33):
require_once('/usr/share/myth...') #5
/usr/share/mythtv/mythweb/mythweb.php(20):
require_once('/usr/share/myth...') #6 {main} thrown in
/usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php on line 21
==============
Das Wesentliche ist:
"Fatal Error
!!NoTrans: You are missing a php extension for mysql interaction. Please
install php-mysqli or similar!!"
Aber:
$ apt-cache search php-mysqli
php7.3-mysql - module MySQL pour PHP
Auf beiden Rechnern habe ich:
$ dpkg -l | grep php | grep mysql | grep ii
ii php-mysql 2:7.3+69 all MySQL module for PHP [default]
ii php7.3-mysql
Demnach müsste also alles Notwendige auch auf dem Lappi installiert sein.
Erstaunlicherweise beinhalten die Dateien
/usr/share/mythtv/mythweb/includes/php_version_check.php
auf beiden Rechnern das Gleiche:
====================
<?php
/**
* This file is part of MythWeb, a php-based interface for MythTV.
* See http://www.mythtv.org/ for details.
*
* @license GPL
*
* @package MythWeb
*
**/
define('PHP_MIN_VERSION', floatval(5.3));
// Make sure we're running a new enough version of php
if (floatval(substr(phpversion(), 0, 3)) < PHP_MIN_VERSION)
trigger_error('You must be running at least php
'.PHP_MIN_VERSION.' to use this program.', FATAL);
if ( !extension_loaded('mysql')
&& !extension_loaded('mysqli')
&& !extension_loaded('mysqlnd'))
trigger_error('You are missing a php extension for mysql
interaction. Please install php-mysqli or similar', FATAL);
====================
Mit "ps -ax | grep mysql..." stelle ich auch auf beiden Systemen fest,
dass mysql'd) läuft, mysqli und mysqlnd aber nicht).
Blickt da jemand durch? Ich jedenfalls nicht!
Gruß
Klaus
Reply to: