Mailing List Archive

installing mythweb
Greetings,

I've got Myth 31 going. Thank you developers!

I am attempting to install and configure mythweb. I am hitting a roadblock.

After following the instructions:
https://www.mythtv.org/wiki/Build_from_Source#Install_MythWeb

and browse to the site:

http://zeus.z.net/mythweb/mythweb.php

I get the following results, which is not what I'm expecting.

*Warning* at /usr/local/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/local/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] => zeus
[http_host] => zeus.z.net [kb] => 1024 [mb] => 1048576 [module] =>
[modules_path] => /usr/local/share/mythtv/mythweb/modules [root] =>
/mythweb/ [root_auth_url] => http://zeus.z.net/mythweb/ [root_url] =>
http://zeus.z.net/mythweb/ [stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] =>
1024 [mb] => 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] =>
1024 [mb] => 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] => 1024 [mb]
=> 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] =>
1024 [mb] => 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] =>
1024 [mb] => 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] => 1024 [mb]
=> 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] => 1024 [mb]
=> 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus [http_host] => zeus.z.net [kb] => 1024 [mb]
=> 1048576 [module] => [modules_path] =>
/usr/local/share/mythtv/mythweb/modules [root] => /mythweb/ [root_auth_url]
=> http://zeus.z.net/mythweb/ [root_url] => http://zeus.z.net/mythweb/
[stream_url] => http://zeus.z.net: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] => zeus
[http_host] => zeus.z.net [kb] => 1024 [mb] => 1048576 [module] =>
[modules_path] => /usr/local/share/mythtv/mythweb/modules [root] =>
/mythweb/ [root_auth_url] => http://zeus.z.net/mythweb/ [root_url] =>
http://zeus.z.net/mythweb/ [stream_url] => http://zeus.z.net:80//mythweb/
[tb] => 1099511627776 ) -->
------------------------------
skin_urlimg/mythtv-logo.png" alt="MythTV" class="alpha_png">
<http://zeus.z.net/mythweb/>


Does anyone have any ideas on how to debug this further?

Thank you for the help!

-m
Re: installing mythweb [ In reply to ]
On 9/18/20 2:33 PM, Matt Zagrabelny wrote:
> Greetings,
>
> I've got Myth 31 going. Thank you developers!
>
> I am attempting to install and configure mythweb. I am hitting a
> roadblock.
>
> After following the instructions:
> https://www.mythtv.org/wiki/Build_from_Source#Install_MythWeb
>
> and browse to the site:
>
> http://zeus.z.net/mythweb/mythweb.php
>
> I get the following results, which is not what I'm expecting.
>
> *Warning* at /usr/local/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/local/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)!!
>

Perhaps it is not finding the bindings.

 mythweb.php includes the path to your php bindings. It expects to find
them in /usr/local/share/mythtv/bindings/php/ or
/usr/share/mythtv/bindings/php/. Failing that it looks for
"include_path". Check if the php files are in one of those directories.
If you have installed somewhere else you can update your
/etc/apache2/sites-available/mythweb.conf by uncommenting the "setenv
include_path" and putting in the correct path, for example:

setenv include_path
"/home/peter/proj/build/focal-amd64/mythtv/master/usr/share/mythtv/bindings/php"
Re: installing mythweb [ In reply to ]
Hey Peter,

On Fri, Sep 18, 2020 at 2:35 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> Perhaps it is not finding the bindings.
>
> mythweb.php includes the path to your php bindings. It expects to find
> them in /usr/local/share/mythtv/bindings/php/ or
> /usr/share/mythtv/bindings/php/. Failing that it looks for "include_path".
> Check if the php files are in one of those directories. If you have
> installed somewhere else you can update your
> /etc/apache2/sites-available/mythweb.conf by uncommenting the "setenv
> include_path" and putting in the correct path, for example:
>

They look to be there...

$ ls -lh /usr/local/share/mythtv/bindings/php/
total 56K
-rw-r--r-- 1 root root 10K Sep 8 14:20 MythBackend.php
-rw-r--r-- 1 root root 3.4K Sep 8 14:20 MythBase.php
-rw-r--r-- 1 root root 7.4K Sep 8 14:20 MythFrontend.php
-rw-r--r-- 1 root root 4.8K Sep 8 14:20 MythTVChannel.php
-rw-r--r-- 1 root root 12K Sep 8 14:20 MythTV.php
-rw-r--r-- 1 root root 2.8K Sep 8 14:20 MythTVProgram.php
-rw-r--r-- 1 root root 2.0K Sep 8 14:20 MythTVRecording.php
-rw-r--r-- 1 root root 125 Sep 8 14:20 MythTVStorageGroup.php

Thank you for the suggestion. Any other ideas? I don't do any PHP work and
am a bit out of my domain here.

-m
Re: installing mythweb [ In reply to ]
On Fri, 18 Sep 2020 14:48:00 -0500, you wrote:

>Hey Peter,
>
>On Fri, Sep 18, 2020 at 2:35 PM Peter Bennett <pb.mythtv@gmail.com> wrote:
>
>>
>> Perhaps it is not finding the bindings.
>>
>> mythweb.php includes the path to your php bindings. It expects to find
>> them in /usr/local/share/mythtv/bindings/php/ or
>> /usr/share/mythtv/bindings/php/. Failing that it looks for "include_path".
>> Check if the php files are in one of those directories. If you have
>> installed somewhere else you can update your
>> /etc/apache2/sites-available/mythweb.conf by uncommenting the "setenv
>> include_path" and putting in the correct path, for example:
>>
>
>They look to be there...
>
>$ ls -lh /usr/local/share/mythtv/bindings/php/
>total 56K
>-rw-r--r-- 1 root root 10K Sep 8 14:20 MythBackend.php
>-rw-r--r-- 1 root root 3.4K Sep 8 14:20 MythBase.php
>-rw-r--r-- 1 root root 7.4K Sep 8 14:20 MythFrontend.php
>-rw-r--r-- 1 root root 4.8K Sep 8 14:20 MythTVChannel.php
>-rw-r--r-- 1 root root 12K Sep 8 14:20 MythTV.php
>-rw-r--r-- 1 root root 2.8K Sep 8 14:20 MythTVProgram.php
>-rw-r--r-- 1 root root 2.0K Sep 8 14:20 MythTVRecording.php
>-rw-r--r-- 1 root root 125 Sep 8 14:20 MythTVStorageGroup.php
>
>Thank you for the suggestion. Any other ideas? I don't do any PHP work and
>am a bit out of my domain here.
>
>-m

I do not do PHP either, but I have been forced to learn little bits
along the way to fix things. From those error messages, I think you
might be having a problem with the PHP version you are running. I
think it is trying to report that you are running too early a version
of PHP, but you have not configured an email address in the Apache
config file, so it then has a problem trying to send a error email.

Try running this command from a prompt:

php -r 'echo PHP_MAJOR_VERSION, ".", PHP_MINOR_VERSION, "\n";'

to see what version of PHP is installed. On Ubuntu 18.04, I get
"7.2".
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: installing mythweb [ In reply to ]
Hi Stephen and others!



On Fri, Sep 18, 2020 at 11:17 PM Stephen Worthington <
stephen_agent@jsw.gen.nz> wrote:

> On Fri, 18 Sep 2020 14:48:00 -0500, you wrote:
>
> >Hey Peter,
> >
> >On Fri, Sep 18, 2020 at 2:35 PM Peter Bennett <pb.mythtv@gmail.com>
> wrote:
> >
> >>
> >> Perhaps it is not finding the bindings.
> >>
> >> mythweb.php includes the path to your php bindings. It expects to find
> >> them in /usr/local/share/mythtv/bindings/php/ or
> >> /usr/share/mythtv/bindings/php/. Failing that it looks for
> "include_path".
> >> Check if the php files are in one of those directories. If you have
> >> installed somewhere else you can update your
> >> /etc/apache2/sites-available/mythweb.conf by uncommenting the "setenv
> >> include_path" and putting in the correct path, for example:
> >>
> >
> >They look to be there...
> >
> >$ ls -lh /usr/local/share/mythtv/bindings/php/
> >total 56K
> >-rw-r--r-- 1 root root 10K Sep 8 14:20 MythBackend.php
> >-rw-r--r-- 1 root root 3.4K Sep 8 14:20 MythBase.php
> >-rw-r--r-- 1 root root 7.4K Sep 8 14:20 MythFrontend.php
> >-rw-r--r-- 1 root root 4.8K Sep 8 14:20 MythTVChannel.php
> >-rw-r--r-- 1 root root 12K Sep 8 14:20 MythTV.php
> >-rw-r--r-- 1 root root 2.8K Sep 8 14:20 MythTVProgram.php
> >-rw-r--r-- 1 root root 2.0K Sep 8 14:20 MythTVRecording.php
> >-rw-r--r-- 1 root root 125 Sep 8 14:20 MythTVStorageGroup.php
> >
> >Thank you for the suggestion. Any other ideas? I don't do any PHP work and
> >am a bit out of my domain here.


I believe I had some bits wrong in the mythweb.conf apache file. I've
corrected those and things seem to be working.

Huzzah!

Thanks for the replies, everyone!

-m