MythWeb only with warnings and errors

For discussion of topics specific to MythTV on linux
DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

MythWeb only with warnings and errors

Post by DaHorstl » Sat Feb 20, 2021 7:32 pm

Hi everyone!
MythTv is running so far and I also can stream TV to an android TV box.
Now I wanted to program the PVR via Web desktop, so through MythWeb. But unfortunately this does not work. I always only get warnings and warnings. :cry:

Calling http://192.168.1.10/mythweb/ with firefox the output always looks like this:

Code: Select all

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning at /usr/share/mythtv/mythweb/includes/utils.php, line 334:
!!NoTrans: Use of undefined constant tmpl - assumed 'tmpl' (this will throw an Error in a future version of PHP)!!
=============================================================================================================================
Warning at /usr/share/mythtv/mythweb/includes/utils.php, line 335:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!!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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
skin_url/style.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
skin_url/header.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
skin_url/menus.css"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
skin_url/programming.css">
512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => a-server [http_host] => 192.168.1.10 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /usr/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.1.10/mythweb/ [root_url] => http://192.168.1.10/mythweb/ [stream_url] => http://192.168.1.10:80//mythweb/ [tb] => 1099511627776 ) --> 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
skin_urlimg/mythtv-logo.png" alt="MythTV" class="alpha_png"> 
The webserver is Apache2.4.41 running on Ubuntu 20.04.2 LTS.
PHP-Version is 7.4.3

mythbackend --version writes:
MythTV Version : v31.0-v31.0
MythTV Branch : fixes/31
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.12.5

What is wrong?? :cry:
Thank you in advance! 8-)

User avatar
Steve Goodey
Moderator
Posts: 148
Joined: Fri Feb 07, 2014 6:30 pm
Location: Colchester, England
Great Britain

Re: MythWeb only with warnings and errors

Post by Steve Goodey » Sat Feb 20, 2021 10:11 pm

This of any use?

viewtopic.php?t=2704
Don't forget the Wiki.

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Sun Feb 21, 2021 8:37 pm

Hi Steve,
thank you very much for your reply. To sum up the outcome of the thread you postet says: Change the pin (and afterwards back)?
Well, I changed to 0000 and rebooted the machine.
Now the website of mythweb says:

Code: Select all

Fatal Error

!!NoTrans: Access denied for user ''@'localhost' (using password: NO) [#1045]

Backtrace
Array
(
[0] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
[line] => 65
[function] => error
[class] => Database
[object] => Database_mysqlicompat Object
(
[dbh] =>
[error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
[err] => Access denied for user ''@'localhost' (using password: NO)
[errno] => 1045
[last_sh] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 263
[function] => execute
[class] => Database_Query_mysqlicompat
[object] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
(
[dbh] =>
[error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
[err] => Access denied for user ''@'localhost' (using password: NO)
[errno] => 1045
[last_sh] => Database_Query_mysqlicompat Object
*RECURSION*
[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

)

[type] => ->
[args] => Array
(
[0] => Array
(
)

)

)

[2] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 124
[function] => query
[class] => Database
[object] => Database_mysqlicompat Object
(
[dbh] =>
[error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
[err] => Access denied for user ''@'localhost' (using password: NO)
[errno] => 1045
[last_sh] => Database_Query_mysqlicompat Object
(
[dbh] =>
[query] => Array
(
[0] => SET SESSION sql_mode = "";
)

[last_query] => SET SESSION sql_mode = "";
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysqlicompat Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
[0] => SET SESSION sql_mode = "";
)

)

[3] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/database.php
[line] => 65
[function] => connect
[class] => Database
[type] => ::
[args] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] => mysqlicompat
)

)

[4] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/init.php
[line] => 43
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/database.php
)

[function] => require_once
)

[5] => Array
(
[file] => /usr/share/mythtv/mythweb/index.php
[line] => 20
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/init.php
)

[function] => require_once
)

)
!!

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)
Underneath a scrollable box with following content:

Code: Select all

    datetime:  2021-02-21 21:26:21 (CET)
    errornum:  256
  error type:  User Error
error string:  !!NoTrans: Access denied for user ''@'localhost' (using password: NO) [#1045]

Backtrace
Array
(
    [0] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
            [line] => 65
            [function] => error
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                    [err] => Access denied for user ''@'localhost' (using password: NO)
                    [errno] => 1045
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array ( )
        )

    [1] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 263
            [function] => execute
            [class] => Database_Query_mysqlicompat
            [object] => Database_Query_mysqlicompat Object
                (
                    [dbh] => 
                    [query] => Array
                        (
                            [0] => SET SESSION sql_mode = "";
                        )

                    [last_query] => SET SESSION sql_mode = "";
                    [warnings] => Array ( )
                    [num_args_needed] => 0
                    [num_rows] => 
                    [affected_rows] => 
                    [insert_id] => 
                    [db] => Database_mysqlicompat Object
                        (
                            [dbh] => 
                            [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                            [err] => Access denied for user ''@'localhost' (using password: NO)
                            [errno] => 1045
                            [last_sh] => Database_Query_mysqlicompat Object
 *RECURSION*
                            [fatal_errors] => 1
                            [query_count] => 0
                            [query_time] => 0
                            [global_name] => 
                            [destruct_handlers] => Array ( )
                        )

                )

            [type] => ->
            [args] => Array
                (
                    [0] => Array ( )
                )

        )

    [2] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 124
            [function] => query
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                    [err] => Access denied for user ''@'localhost' (using password: NO)
                    [errno] => 1045
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SET SESSION sql_mode = "";
                )

        )

    [3] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/database.php
            [line] => 65
            [function] => connect
            [class] => Database
            [type] => ::
            [args] => Array
                (
                    [0] => 
                    [1] => 
                    [2] => 
                    [3] => 
                    [4] => 
                    [5] => mysqlicompat
                )

        )

    [4] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/init.php
            [line] => 43
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/database.php
                )

            [function] => require_once
        )

    [5] => Array
        (
            [file] => /usr/share/mythtv/mythweb/index.php
            [line] => 20
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/init.php
                )

            [function] => require_once
        )

)
!!
    filename:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
  error line:  66

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

Backtrace: 

    file:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
    line:  66
   class:  
function:  trigger_error
    type:  
    args:  Array
(
    [0] => Access denied for user ''@'localhost' (using password: NO) [#1045]

Backtrace
Array
(
    [0] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
            [line] => 65
            [function] => error
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                    [err] => Access denied for user ''@'localhost' (using password: NO)
                    [errno] => 1045
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array ( )
        )

    [1] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 263
            [function] => execute
            [class] => Database_Query_mysqlicompat
            [object] => Database_Query_mysqlicompat Object
                (
                    [dbh] => 
                    [query] => Array
                        (
                            [0] => SET SESSION sql_mode = "";
                        )

                    [last_query] => SET SESSION sql_mode = "";
                    [warnings] => Array ( )
                    [num_args_needed] => 0
                    [num_rows] => 
                    [affected_rows] => 
                    [insert_id] => 
                    [db] => Database_mysqlicompat Object
                        (
                            [dbh] => 
                            [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                            [err] => Access denied for user ''@'localhost' (using password: NO)
                            [errno] => 1045
                            [last_sh] => Database_Query_mysqlicompat Object
 *RECURSION*
                            [fatal_errors] => 1
                            [query_count] => 0
                            [query_time] => 0
                            [global_name] => 
                            [destruct_handlers] => Array ( )
                        )

                )

            [type] => ->
            [args] => Array
                (
                    [0] => Array ( )
                )

        )

    [2] => Array
        (
            [file] => /usr/share/mythtv/mythweb/classes/Database.php
            [line] => 124
            [function] => query
            [class] => Database
            [object] => Database_mysqlicompat Object
                (
                    [dbh] => 
                    [error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
                    [err] => Access denied for user ''@'localhost' (using password: NO)
                    [errno] => 1045
                    [last_sh] => Database_Query_mysqlicompat Object
                        (
                            [dbh] => 
                            [query] => Array
                                (
                                    [0] => SET SESSION sql_mode = "";
                                )

                            [last_query] => SET SESSION sql_mode = "";
                            [warnings] => Array ( )
                            [num_args_needed] => 0
                            [num_rows] => 
                            [affected_rows] => 
                            [insert_id] => 
                            [db] => Database_mysqlicompat Object
 *RECURSION*
                        )

                    [fatal_errors] => 1
                    [query_count] => 0
                    [query_time] => 0
                    [global_name] => 
                    [destruct_handlers] => Array ( )
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SET SESSION sql_mode = "";
                )

        )

    [3] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/database.php
            [line] => 65
            [function] => connect
            [class] => Database
            [type] => ::
            [args] => Array
                (
                    [0] => 
                    [1] => 
                    [2] => 
                    [3] => 
                    [4] => 
                    [5] => mysqlicompat
                )

        )

    [4] => Array
        (
            [file] => /usr/share/mythtv/mythweb/includes/init.php
            [line] => 43
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/database.php
                )

            [function] => require_once
        )

    [5] => Array
        (
            [file] => /usr/share/mythtv/mythweb/index.php
            [line] => 20
            [args] => Array
                (
                    [0] => /usr/share/mythtv/mythweb/includes/init.php
                )

            [function] => require_once
        )

)

    [1] => 256
)

    file:  /usr/share/mythtv/mythweb/classes/Database.php
    line:  263
   class:  Database_Query_mysqlicompat
function:  execute
    type:  ->
    args:  Array
(
    [0] => Array ( )
)

    file:  /usr/share/mythtv/mythweb/classes/Database.php
    line:  124
   class:  Database
function:  query
    type:  ->
    args:  Array
(
    [0] => SET SESSION sql_mode = "";
)

    file:  /usr/share/mythtv/mythweb/includes/database.php
    line:  65
   class:  Database
function:  connect
    type:  ::
    args:  Array
(
    [0] => 
    [1] => 
    [2] => 
    [3] => 
    [4] => 
    [5] => mysqlicompat
)

    file:  /usr/share/mythtv/mythweb/includes/init.php
    line:  43
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/includes/database.php
)

    file:  /usr/share/mythtv/mythweb/index.php
    line:  20
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/includes/init.php
)


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

$_SESSION: Array
(
    [upnp_db] => Array
        (
            [host] => 
            [port] => 
            [user] => 
            [pass] => 
            [name] => 
        )

    [language] => German
    [date_statusbar] => %e.%m.%Y, %H:%M
    [date_scheduled] => %e.%m.%Y (%H:%M)
    [date_scheduled_popup] => %e.%m.%Y
    [date_recorded] => %e.%m.%Y (%H:%M)
    [date_search] => %e.%m.%Y, %H:%M
    [date_listing_key] => %e.%m.%Y, %H:%M
    [date_listing_jump] => %e.%m.%Y
    [date_channel_jump] => %e.%m.%Y
    [date_job_status] => %e.%m.%Y, %H:%M
    [time_format] => %H:%M
)

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

$_SERVER: Array
(
    [HTTP_HOST] => 192.168.1.10
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => de,en-US;q=0.7,en;q=0.3
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_DNT] => 1
    [HTTP_CONNECTION] => keep-alive
    [HTTP_COOKIE] => nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache/2.4.41 (Ubuntu)
    [SERVER_NAME] => 192.168.1.10
    [SERVER_ADDR] => 192.168.1.10
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 192.168.1.101
    [DOCUMENT_ROOT] => /var/www/html
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => [no address given]
    [SCRIPT_FILENAME] => /var/www/html/mythweb/index.php
    [REMOTE_PORT] => 56184
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /
    [SCRIPT_NAME] => /mythweb/index.php
    [PHP_SELF] => /mythweb/index.php
    [REQUEST_TIME_FLOAT] => 1613939181.835
    [REQUEST_TIME] => 1613939181
    [HTTP_X_FORWARDED_PROTO] => 
    [HTTPS] => 
    [HTTP_PORT] => 80
)

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

$constant_list["user"]: Array
(
    [ERROR] => 512
    [E_ASSERT_ERROR] => 4096
    [FATAL] => 256
    [PHP_MIN_VERSION] => 5.3
    [WARNING] => 1024
    [error_email] => 
    [gb] => 1073741824
    [hostname] => a-server
    [http_host] => 192.168.1.10
    [kb] => 1024
    [mb] => 1048576
    [module] => 
    [modules_path] => /usr/share/mythtv/mythweb/modules
    [root] => /mythweb/
    [root_auth_url] => http://192.168.1.10/mythweb/
    [root_url] => http://192.168.1.10/mythweb/
    [stream_url] => http://192.168.1.10:80//mythweb/
    [tb] => 1099511627776
)

Sorry, I do not understand anything what is going wrong. :cry: :cry:
I hope anyone can help? 8-)
Regards,
Horst

User avatar
pgbennett
Developer
Posts: 380
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythWeb only with warnings and errors

Post by pgbennett » Sun Feb 21, 2021 8:52 pm

Something must have gone wrong with your installation. The install should set up php and apache so that it has access to everything needed.

I do not use the packages, but I have written up the steps needed to set up mythweb from scratch. These definitely work. I have it running now and I documented the steps I took, here
https://www.mythtv.org/wiki/Build_from_ ... ll_MythWeb

You could try uninstalling mythweb and install manually following those steps, or else look at the lines setenv db_server etc. as documented in that article and fix your setup accordingly. You could also try uninstalling and reinstalling mythweb.

mythweb works very well for looking at the program guide and looking at the upcoming recordings. I prefer not to use it to schedule recordings, as I have had some problems with that. If you schedule recordings with mythweb, I recommend you check the "upcoming recordings" to make sure it worked.

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Sun Feb 21, 2021 9:24 pm

Hi pgbennett,
thank you for your fast answer.
Could it come to any side effects or problems: I installed the mythTV backend using the Ubuntu packages via "sudo apt-get install mythtv-backend-master"
I will try to uninstall and reinstall after your suggestion tomorrow or so. It is already half past ten in the evening here. ;-)
Thank you!

User avatar
pgbennett
Developer
Posts: 380
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythWeb only with warnings and errors

Post by pgbennett » Mon Feb 22, 2021 2:18 pm

There are many mythtv packages. Mythweb is a separate package from mythtv-backend-master. Did you install mythweb? mythweb is only installed if you install it specifically or if you install mythplugins. This is illogical since mythplugins is a frontend package.

I suggest install mythweb, or uninstall and reinstall mythweb if you already installed it.

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Tue Feb 23, 2021 10:38 pm

Hi @all,

Now I deinstalled mythweb using sudo apt-get autoremove --purge mythweb and then reinstalled it like described here:
https://www.mythtv.org/wiki/Build_from_ ... ll_MythWeb

BUT I had to adapt the directories from /usr/local/share/mythtv/mythweb/ to /usr/share/mythtv/mythweb/ (without local) since mythTV was installed there because Ubuntu directory structure is designed like this.
I still get the same screen as above with the Fatal error.

I am sure something is missing or configured wrong...

/etc/apache2/sites-available/mythweb.conf looks like this:

Code: Select all

    <Directory "/var/www/html/data">
        # For Apache 2.2
        Options -All +FollowSymLinks +IncludesNoExec
        # For Apache 2.4+
        Options +FollowSymLinks +IncludesNoExec
    </Directory>


    <Directory "/var/www/html/mythweb/data">
        # For Apache 2.2
        Options -All +FollowSymLinks +IncludesNoExec
        # For Apache 2.4+
        Options +FollowSymLinks +IncludesNoExec
    </Directory>


    <Directory "/var/www/html/mythweb">
        # For Apache 2.2
        Options -All +FollowSymLinks +IncludesNoExec
        # For Apache 2.4+
        Options +FollowSymLinks +IncludesNoExec
    </Directory>

:
some remarks
:

        <Files mythweb.*>

        #
        # Use the following environment settings to tell MythWeb where you want it to
        # look to connect to the database, the name of the database to connect to, and
        # the authentication info to use to connect.  The defaults will usually work
        # fine unless you've changed mythtv's config.xml file, or are running MythWeb on
        # a different server from your main backend.  Make sure you have mod_env enabled.
        #
        # This is unneeded due to the upnp setup via the backend
        #
            setenv db_server        "localhost"
            setenv db_name          "mythconverg"
            setenv db_login         "mythtv"
            setenv db_password      "XXXXXXXXX"

        #
        # By default, MythWeb uses the hostname program to look up the hostname of the
        # machine it runs on.  If this reports incorrect data, or you run MythWeb on a
        # machine without the hostname program, set this to your current hostname.
        #
           setenv hostname         "my_mythbox"
        #

        # By default, php will always search the current directory for include files,
        # but if you wish to install these directories outside of the current path
        # (eg. for security reasons), set this variable to the directory that
        # contains the directories like languages and templates.  eg.
        #
           setenv include_path      "/usr/share/mythweb"

        # If you want MythWeb to email php/database errors (and a backtrace) to you,
        # uncomment and set the email address below.
        #
        #   setenv error_email       "mythweb_errors@example.com"
        #

        # If your local file system is something other than UTF-8, set this variable
        # so that the music and video portions of MythWeb can provide proper links
        # to your downloadable files.
        #
        #   setenv fs_encoding       "ISO-8859-1"

        </Files>

What do I have to write in the environments? How do I know the db name, login and password?


The error messages calling mythweb also says:

Code: Select all

[file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
[line] => 65
[function] => error
[class] => Database
[object] => Database_mysqlicompat Object
(
[dbh] =>
[error] => Access denied for user ''@'localhost' (using password: NO) [#1045]
[err] => Access denied for user ''@'localhost' (using password: NO)
[errno] => 1045
I think the problem is that I did not change the db name, login and password in mythweb.conf above to proper values?
Where do I find/get these values?

The only problem ist with MythWeb, The frontend (btw. a leelbox with Android and Kodi) can still stream TV from the MythTV server.

Thank you!
Horst

User avatar
pgbennett
Developer
Posts: 380
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythWeb only with warnings and errors

Post by pgbennett » Wed Feb 24, 2021 6:12 pm

The db name, login and password are in the $HOME/.mythtv/config.xml file on all frontends and backend, of the user that runs mythtv (perhaps mythtv user). So /home/mythtv/.mythtv/config.xml.

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Sat Feb 27, 2021 7:26 pm

Hi @pgbennett and all others,

damn... the password solution did not work. I still get the "Fatal error" page when I call the 192.../mythweb. :cry:

Or did I do something wrong in /etc/apache2/sites-available/mythweb.conf?
I entered below the values of ~/.mythtv/config.xml within the <...> and </...> brackets.
The password was changed to xxxxxx:

setenv db_server "localhost"
setenv db_name <DatabaseName>mythconverg</DatabaseName>
setenv db_login <UserName>mythtv</UserName>
setenv db_password <Password>xxxxxx</Password>

So, if this is correct, what could I do else?
Thank you very much!
Kind regards,
Horst

User avatar
bill6502
Developer
Posts: 1849
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythWeb only with warnings and errors

Post by bill6502 » Sat Feb 27, 2021 7:48 pm

The XML tags shouldn't be there.

Odd that the original failure had no user name (it was '') and was using password NO.

The above edit is under sites-available, which is OK. But does an entry in sites-enabled exist? It's just a link to the
file in sites-available.

See: man a2ensite.

User avatar
pgbennett
Developer
Posts: 380
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythWeb only with warnings and errors

Post by pgbennett » Sat Feb 27, 2021 8:27 pm

It should look like this

Code: Select all

        setenv db_server        "localhost"
        setenv db_name          "mythconverg"
        setenv db_login         "mythtv"
        setenv db_password      "xxxxxx"

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Sat Feb 27, 2021 9:16 pm

Hi pgbennett,
yes, that was what I meant. It ist exactly as you wrote, but the passwort is different. So, it is correct.
Sorry for the misunderstanding.

User avatar
bill6502
Developer
Posts: 1849
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythWeb only with warnings and errors

Post by bill6502 » Sat Feb 27, 2021 9:33 pm

Please answer the sites-enabled question above. Just to be sure.

DaHorstl
Junior
Posts: 22
Joined: Mon Dec 07, 2020 8:35 pm
Austria

Re: MythWeb only with warnings and errors

Post by DaHorstl » Sat Feb 27, 2021 10:09 pm

Hi @bill6502, sorry, I haven't seen it.

Yes, but /etc/apache2/sites-enabled/mythweb.conf is a link to /etc/apache2/sites-available/mythweb.conf
And 000-default-mythbuntu.conf is a link to ../sites-available/000-default-mythbuntu.conf

The content of 000-default-mythbuntu.conf is:

Code: Select all

<VirtualHost *:80>
        DirectoryIndex mythweb
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Thank you!

User avatar
bill6502
Developer
Posts: 1849
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythWeb only with warnings and errors

Post by bill6502 » Sat Feb 27, 2021 10:16 pm

I didn't see mention of restarting Apache: sudo systemctl restart apache2.service
after making changes.

Post Reply