Le 25/12/2018 à 22:01, Christian Knoke a écrit :
Hallo Klaus,
ich bin nicht der Durchblicker, aber
Klaus Becker schrieb am 25. Dez um 21:10 Uhr:
Le 25/12/2018 à 19:30, Klaus Becker a écrit :
"Use of undefined constant modules_path - assumed 'modules_path'".
Mythweb ist natürlich installiert.
Inzwischen bin ich ein Stück weitergekommen. Ich hatte nicht die ganze
Fehlermeldung gesehen, nur den Titel:
Warnungen sind vermutlich unerheblich.
!!NoTrans: You are missing a php extension for mysql interaction. Please
install php-mysqli or similar!!
Stable:
~# aptitude search "php mysql"
p php-mdb2-driver-mysql - mysql MDB2 driver
p php-mysql - MySQL module for PHP
[default]
v php-mysqli -
v php-mysqlnd -
v php-pdo-mysql -
p php7.0-mysql - MySQL module for PHP
v php7.0-mysqli -
v php7.0-mysqlnd -
v php7.0-pdo-mysql -
Dies scheint wesentlich (dequoted):
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)
Gibt es die Meldung irgendwo im Volltext?
Ja (als Quellcode, da sonst kopieren der Meldung nur schwer geht):
>> ======================================= <<
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/class_autoload.php</b> on line
<b>19</b><br />
<br />
<b>Warning</b>: Use of undefined constant module - assumed 'module'
(this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/class_autoload.php</b> on line
<b>19</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/class_autoload.php</b> on line
<b>21</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/class_autoload.php</b> on line
<b>23</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>161</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>164</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>167</b><br />
<br />
<b>Warning</b>: Use of undefined constant module - assumed 'module'
(this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>167</b><br />
<br />
<b>Warning</b>: Use of undefined constant modules_path - assumed
'modules_path' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>169</b><br />
<br />
<b>Warning</b>: Use of undefined constant module - assumed 'module'
(this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>169</b><br />
<br />
<b>Warning</b>: Failed to open translation file:
modules_path/_shared/lang/English.lang in
<b>/usr/share/mythtv/mythweb/classes/Translate.php</b> on line
<b>176</b><br />
<br />
<b>Warning</b>: Use of undefined constant error_email - assumed
'error_email' (this will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/errors.php</b> on line
<b>237</b><br />
<div id="message">
<h2>Fatal Error</h2>
<p class="err">
!!NoTrans: You are missing a php extension for mysql interaction.
Please install php-mysqli or similar!!</p>
<div id="backtrace">
<p>
If you choose to <b><u><a
href="http://svn.mythtv.org/trac/newticket" target="_blank"> submit a
bug report </a></u></b>
please make sure to include a brief description of what you
were doing,
along with the following backtrace as an attachment <i>(please
don\'t just paste the whole thing into the ticket)</i>
</p>
<textarea cols=100 rows=100> datetime: 2018-12-26 21:22:44 (CET)
errornum: 256
error type: User Error
error string: !!NoTrans: You are missing a php extension for mysql
interaction. Please install php-mysqli or similar!!
filename: /usr/share/mythtv/mythweb/includes/php_version_check.php
error line: 20
==========================================================================
Backtrace:
file: /usr/share/mythtv/mythweb/includes/php_version_check.php
line: 20
class:
function: trigger_error
type:
args: Array
(
[0] => You are missing a php extension for mysql interaction.
Please install php-mysqli or similar
[1] => 256
)
file: /usr/share/mythtv/mythweb/includes/init.php
line: 33
class:
function: require_once
type:
args: Array
(
[0] => /usr/share/mythtv/mythweb/includes/php_version_check.php
)
file: /usr/share/mythtv/mythweb/mythweb.php
line: 20
class:
function: require_once
type:
args: Array
(
[0] => /usr/share/mythtv/mythweb/includes/init.php
)
==========================================================================
$_SESSION: Array
(
[language] => Catalan
)
==========================================================================
$_SERVER: Array
(
[REDIRECT_STATUS] => 200
[db_server] => localhost
[db_name] => mythconverg
[db_login] => mythtv
[db_password] => germantv
[HTTP_HOST] => localhost
[HTTP_USER_AGENT] => NetSurf/3.6 (Linux)
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip
[PATH] =>
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] => <address>Apache/2.4.37 (Debian)
Server at localhost Port 80</address>
[SERVER_SOFTWARE] => Apache/2.4.37 (Debian)
[SERVER_NAME] => localhost
[SERVER_ADDR] => ::1
[SERVER_PORT] => 80
[REMOTE_ADDR] => ::1
[DOCUMENT_ROOT] => /var/www/html
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] => /mythweb
[CONTEXT_DOCUMENT_ROOT] => /usr/share/mythtv/mythweb
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /usr/share/mythtv/mythweb/mythweb.php
[REMOTE_PORT] => 48252
[REDIRECT_URL] => /mythweb/
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /mythweb/
[SCRIPT_NAME] => /mythweb/mythweb.php
[PHP_SELF] => /mythweb/mythweb.php
[REQUEST_TIME_FLOAT] => 1545855764.875
[REQUEST_TIME] => 1545855764
[STATUS] => 200
[URL] => /mythweb/
)
==========================================================================
$constant_list["user"]: Array
(
[ERROR] => 512
[E_ASSERT_ERROR] => 4096
[FATAL] => 256
[PHP_MIN_VERSION] => 5.3
[WARNING] => 1024
)
</textarea>
</div>
</div>
<br />
<b>Warning</b>: Use of undefined constant tmpl - assumed 'tmpl' (this
will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/utils.php</b> on line
<b>334</b><br />
<br />
<b>Warning</b>: Use of undefined constant tmpl - assumed 'tmpl' (this
will throw an Error in a future version of PHP) in
<b>/usr/share/mythtv/mythweb/includes/utils.php</b> on line
<b>335</b><br />
<div id="ajax_working" class="hidden">
<br />
<b>Fatal error</b>: 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
<b>/usr/share/mythtv/mythweb/modules/_shared/tmpl/default/footer.php</b>
on line <b>21</b><br />
>> ======================================= <<
#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
Was steht denn da in footer.php Zeile 21?
>> ======================= <<
<?php
/**
* This footer file is shared by all MythWeb modules.
*
* @license GPL
*
* @package MythWeb
*
**/
// Display footnotes
global $Footnotes;
if (is_array($Footnotes)) {
foreach ($Footnotes as $note) {
echo $note;
}
}
?>
<div id="ajax_working" class="hidden">
(Zeile 21) <?php echo t('$1 requests pending.', '<span
id="ajax_num_requests">0</span>'); ?>
</div> (Ende Zeile 21)
</body>
</html>
<?php
flush();
>> ======================= <<
...
Nicht der Inhalt. Kannst du php_version_check.php ausführen?
Current PHP version: 7.3.0-2
Gruß
Klaus