[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Module Problem mit Mythweb





Le 26/12/2018 à 21:40, Klaus Becker a écrit :


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] =&gt; You are missing a php extension for mysql interaction. Please install php-mysqli or similar
     [1] =&gt; 256
)

     file:  /usr/share/mythtv/mythweb/includes/init.php
     line:  33
    class:
function:  require_once
     type:
     args:  Array
(
     [0] =&gt; /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] =&gt; /usr/share/mythtv/mythweb/includes/init.php
)


==========================================================================

$_SESSION: Array
(
     [language] =&gt; Catalan
)

==========================================================================

$_SERVER: Array
(
     [REDIRECT_STATUS] =&gt; 200
     [db_server] =&gt; localhost
     [db_name] =&gt; mythconverg
     [db_login] =&gt; mythtv
     [db_password] =&gt; germantv
     [HTTP_HOST] =&gt; localhost
     [HTTP_USER_AGENT] =&gt; NetSurf/3.6 (Linux)
     [HTTP_ACCEPT] =&gt; */*
     [HTTP_ACCEPT_ENCODING] =&gt; gzip
    [PATH] =&gt; /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin     [SERVER_SIGNATURE] =&gt; &lt;address&gt;Apache/2.4.37 (Debian) Server at localhost Port 80&lt;/address&gt;

     [SERVER_SOFTWARE] =&gt; Apache/2.4.37 (Debian)
     [SERVER_NAME] =&gt; localhost
     [SERVER_ADDR] =&gt; ::1
     [SERVER_PORT] =&gt; 80
     [REMOTE_ADDR] =&gt; ::1
     [DOCUMENT_ROOT] =&gt; /var/www/html
     [REQUEST_SCHEME] =&gt; http
     [CONTEXT_PREFIX] =&gt; /mythweb
     [CONTEXT_DOCUMENT_ROOT] =&gt; /usr/share/mythtv/mythweb
     [SERVER_ADMIN] =&gt; webmaster@localhost
     [SCRIPT_FILENAME] =&gt; /usr/share/mythtv/mythweb/mythweb.php
     [REMOTE_PORT] =&gt; 48252
     [REDIRECT_URL] =&gt; /mythweb/
     [GATEWAY_INTERFACE] =&gt; CGI/1.1
     [SERVER_PROTOCOL] =&gt; HTTP/1.1
     [REQUEST_METHOD] =&gt; GET
     [QUERY_STRING] =&gt;
     [REQUEST_URI] =&gt; /mythweb/
     [SCRIPT_NAME] =&gt; /mythweb/mythweb.php
     [PHP_SELF] =&gt; /mythweb/mythweb.php
     [REQUEST_TIME_FLOAT] =&gt; 1545855764.875
     [REQUEST_TIME] =&gt; 1545855764
     [STATUS] =&gt; 200
     [URL] =&gt; /mythweb/
)

==========================================================================

$constant_list[&quot;user&quot;]: Array
(
     [ERROR] =&gt; 512
     [E_ASSERT_ERROR] =&gt; 4096
     [FATAL] =&gt; 256
     [PHP_MIN_VERSION] =&gt; 5.3
     [WARNING] =&gt; 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



Reply to: