Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Need help with mythweb from SVN

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


disturbed1976 at gmail

Aug 25, 2009, 7:08 PM

Post #1 of 8 (1997 views)
Permalink
Need help with mythweb from SVN

Can't seem to get mythweb to work.
I recently upgraded my backend, and reinstalled the full system.
Mythweb from an older SVN used to work.

Here's a snippet from the error log -

[Tue Aug 25 21:59:35 2009] [error] [client 192.168.1.109] PHP Fatal
error: Call to undefined function t() in
/var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
on line 17, referer: http://backend/mythweb/
[Tue Aug 25 21:59:41 2009] [error] [client 192.168.1.109] PHP Notice:
Undefined offset: 1 in /var/www/htdocs/mythweb/includes/defines.php
on line 90, referer: http://backend/mythweb/
[Tue Aug 25 21:59:41 2009] [error] [client 192.168.1.109] PHP Fatal
error: Call to undefined function t() in
/var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
on line 17, referer: http://backend/mythweb/
[Tue Aug 25 22:02:55 2009] [error] [client 192.168.1.112] PHP Notice:
Undefined offset: 1 in /var/www/htdocs/mythweb/includes/defines.php
on line 90, referer: http://192.168.1.111/mythweb/
[Tue Aug 25 22:02:55 2009] [error] [client 192.168.1.112] PHP Fatal
error: Call to undefined function t() in
/var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
on line 17, referer: http://192.168.1.111/mythweb/
[Tue Aug 25 22:03:41 2009] [error] [client 192.168.1.111] PHP Notice:
Undefined offset: 1 in /var/www/htdocs/mythweb/includes/defines.php
on line 90, referer: http://192.168.1.111/mythweb/
[Tue Aug 25 22:03:41 2009] [error] [client 192.168.1.111] PHP Fatal
error: Call to undefined function t() in
/var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
on line 17, referer: http://192.168.1.111/mythweb/
[Tue Aug 25 22:03:51 2009] [error] [client 127.0.0.1] PHP Notice:
Undefined offset: 1 in /var/www/htdocs/mythweb/includes/defines.php
on line 90, referer: http://localhost/mythweb/
[Tue Aug 25 22:03:51 2009] [error] [client 127.0.0.1] PHP Fatal error:
Call to undefined function t() in
/var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
on line 17, referer: http://localhost/mythweb/

I tried from 2 hosts, plus localhost, using IP and hostname. Google
only returns hits that elude to errors in mythweb's php code. Yet - I
did not find anyone reporting errors directly with mythweb.

The other hosts can connect to the backend from mythtvfrontend, and
browsing to backend:6544 IP:6544 all works.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Aug 25, 2009, 7:42 PM

Post #2 of 8 (1911 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

On 08/25/2009 10:08 PM, Keith Richie wrote:
> Can't seem to get mythweb to work.
> I recently upgraded my backend, and reinstalled the full system.
> Mythweb from an older SVN used to work.
>
> Here's a snippet from the error log -
>
> [Tue Aug 25 21:59:35 2009] [error] [client 192.168.1.109] PHP Fatal
> error: Call to undefined function t() in
> /var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php

t() is the function used to translate text and is defined in
mythweb/includes/translate.php .

> I tried from 2 hosts, plus localhost, using IP and hostname. Google
> only returns hits that elude to errors in mythweb's php code. Yet - I
> did not find anyone reporting errors directly with mythweb.

Which is why I'd guess that your MythWeb application directory is broken
and contains old garbage from before the upgrade.

I would recommend uninstalling the MythWeb package and then removing
/everything/ from and including /var/www/htdocs/mythweb and then
reinstalling the MythWeb package.

If you didn't install from a package, then if you "installed" by svn
up'ing the /var/www/htdocs/mythweb directory, use svn status to see all
the garbage and delete it. If you have your MythWeb SVN working copy
elsewhere, rm -r /var/www/htdocs/mythweb and then reinstall from your
MythWeb SVN working copy. (Might also want to verify your working copy
is in good working order with svn status, as mentioned before.)

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


disturbed1976 at gmail

Aug 25, 2009, 8:54 PM

Post #3 of 8 (1922 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

On Tue, Aug 25, 2009 at 10:42 PM, Michael T.
Dean<mtdean [at] thirdcontact> wrote:
> On 08/25/2009 10:08 PM, Keith Richie wrote:
>>
>> Can't seem to get mythweb to work.
>> I recently upgraded my backend, and reinstalled the full system.
>> Mythweb from an older SVN used to work.
>>
>> Here's a snippet from the error log -
>>
>> [Tue Aug 25 21:59:35 2009] [error] [client 192.168.1.109] PHP Fatal
>> error:  Call to undefined function t() in
>> /var/www/htdocs/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php
>
> t() is the function used to translate text and is defined in
> mythweb/includes/translate.php .
>
>> I tried from 2 hosts, plus localhost, using IP and hostname. Google
>> only returns hits that elude to errors in mythweb's php code. Yet - I
>> did not find anyone reporting errors directly with mythweb.
>
> Which is why I'd guess that your MythWeb application directory is broken and
> contains old garbage from before the upgrade.
>
> I would recommend uninstalling the MythWeb package and then removing
> /everything/ from and including /var/www/htdocs/mythweb and then
> reinstalling the MythWeb package.
>
> If you didn't install from a package, then if you "installed" by svn up'ing
> the /var/www/htdocs/mythweb directory, use svn status to see all the garbage
> and delete it.  If you have your MythWeb SVN working copy elsewhere, rm -r
> /var/www/htdocs/mythweb and then reinstall from your MythWeb SVN working
> copy.  (Might also want to verify your working copy is in good working order
> with svn status, as mentioned before.)
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


Thanks for the advise - I'm glad that I already tried everything you
listed :-) made me feel I was on the right track. It was a fresh OS
install, so the document root was empty. Didn't matter if I cp'd from
/usr/share/mythtv/mythweb, my svn directory, or did a direct svn co of
plugins/mythweb.

Turned out to be a mythweb.conf.apache issue.

I needed to add
Alias /mythweb /var/www/htdocs/mythweb

Can't believe it slipped my mind.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


sammo2828 at gmail

Sep 5, 2009, 4:40 AM

Post #4 of 8 (1847 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

On Wed, Aug 26, 2009 at 1:54 PM, Keith Richie <disturbed1976 [at] gmail>wrote:

> Thanks for the advise - I'm glad that I already tried everything you
> listed :-) made me feel I was on the right track. It was a fresh OS
> install, so the document root was empty. Didn't matter if I cp'd from
> /usr/share/mythtv/mythweb, my svn directory, or did a direct svn co of
> plugins/mythweb.
>
> Turned out to be a mythweb.conf.apache issue.
>
> I needed to add
> Alias /mythweb /var/www/htdocs/mythweb


I have a similar problem:

*Fatal error*: Call to undefined function t() in *
/var/www/mythweb/modules/_shared/tmpl/_errors/fatal.php* on line *17*

This is not a fresh install, and I previously had it working from Debian
packages, so I have rm -rf /var/www/mythweb, made sure that my svn working
copy is good, then reinstalled mythweb.

I have followed the steps from here:

http://www.mythtv.org/wiki/Installing_MythTV_SVN_on_Debian_Sid

I even tried Keith's solution of adding Alias to mythweb.conf.apache as
follows:

Alias /mythweb "/var/www/mythweb"
<Directory "/var/www/mythweb/data">
Options -All +FollowSymLinks +IncludesNoExec
</Directory>
<Directory "/var/www/mythweb" >

Still no success. Any ideas?

Thanks


mwood23 at gmail

Sep 12, 2009, 11:08 AM

Post #5 of 8 (1746 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

Hi all--

trying to join this post to a previous thread via the Subject:
line..not sure if it will work (thread:
http://www.gossamer-threads.com/lists/mythtv/users/395852 )

I too am having this issue on the latest mythweb SVN. I deleted the
entire mythweb directory under trunk/mythplugins, then ran svn update.
I copied the tree to my web docroot and made sure all the modules
were working. I'm not using a subdirectory right now so it's all
under /var/www (Debian) thus I don't think I'm having an Apache
rewrite or alias issue.

I turned on 'E_ALL' logging from php but I don't get anything more in
the log than what shows up on the browser:

[12-Sep-2009 00:55:18] PHP Fatal error: Call to undefined function
t() in /var/www/modules/_shared/tmpl/_errors/error.php on line 17


Unfortunately my PHP knowledge is practically non-existent so I don't
know where to even start with this. Any troubleshooting hints would
be greatly appreciated. thanks!

-Matt
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 12, 2009, 12:58 PM

Post #6 of 8 (1733 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

On 09/12/2009 02:08 PM, Matt W wrote:
> trying to join this post to a previous thread via the Subject:
> line..not sure if it will work (thread:
> http://www.gossamer-threads.com/lists/mythtv/users/395852 )
>
> I too am having this issue on the latest mythweb SVN. I deleted the
> entire mythweb directory under trunk/mythplugins, then ran svn update.
> I copied the tree to my web docroot and made sure all the modules
> were working. I'm not using a subdirectory right now so it's all
> under /var/www (Debian) thus I don't think I'm having an Apache
> rewrite or alias issue.
>
> I turned on 'E_ALL' logging from php but I don't get anything more in
> the log than what shows up on the browser:
>
> [12-Sep-2009 00:55:18] PHP Fatal error: Call to undefined function
> t() in /var/www/modules/_shared/tmpl/_errors/error.php on line 17
>
>
> Unfortunately my PHP knowledge is practically non-existent so I don't
> know where to even start with this. Any troubleshooting hints would
> be greatly appreciated. thanks!
>

Does the attached patch help?

Mike
Attachments: mythweb-translate_in_error.patch (0.37 KB)


lynchmv at gmail

Sep 12, 2009, 3:57 PM

Post #7 of 8 (1735 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

I had almost the exact same error with svn mythweb the other day.

My apache directory is:
/var/www

There is a symlink at:
/srv/httpd
pointing to /var/www

The httpd.conf file uses /srv/httpd/htdocs as the DocumentRoot and my
mythweb.conf was using /var/www/htdocs as the <Directory> definitions.
Mythweb didn't work and behaved like you stated, with an error, until
I changed mythweb.conf to use /srv/httpd/docs for the <Directory>
definitions.



On Sat, Sep 12, 2009 at 3:58 PM, Michael T. Dean
<mtdean [at] thirdcontact> wrote:
> On 09/12/2009 02:08 PM, Matt W wrote:
>>
>> trying to join this post to a previous thread via the Subject:
>> line..not sure if it will work (thread:
>> http://www.gossamer-threads.com/lists/mythtv/users/395852 )
>>
>> I too am having this issue on the latest mythweb SVN.  I deleted the
>> entire mythweb directory under trunk/mythplugins, then ran svn update.
>>  I copied the tree to my web docroot and made sure all the modules
>> were working.  I'm not using a subdirectory right now so it's all
>> under /var/www (Debian) thus I don't think I'm having an Apache
>> rewrite or alias issue.
>>
>> I turned on 'E_ALL' logging from php but I don't get anything more in
>> the log than what shows up on the browser:
>>
>> [12-Sep-2009 00:55:18] PHP Fatal error:  Call to undefined function
>> t() in /var/www/modules/_shared/tmpl/_errors/error.php on line 17
>>
>>
>> Unfortunately my PHP knowledge is practically non-existent so I don't
>> know where to even start with this.  Any troubleshooting hints would
>> be greatly appreciated.  thanks!
>>
>
> Does the attached patch help?
>
> Mike
>
> Index: modules/_shared/tmpl/_errors/error.php
> ===================================================================
> --- modules/_shared/tmpl/_errors/error.php      (revision 21781)
> +++ modules/_shared/tmpl/_errors/error.php      (working copy)
> @@ -13,6 +13,8 @@
>  *
>  /**/
>
> +include_once 'includes/translate.php';
> +
>  // Set the desired page title
>     $page_title = 'MythWeb - '.t('Error');
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mwood23 at gmail

Sep 12, 2009, 9:24 PM

Post #8 of 8 (1724 views)
Permalink
Re: Need help with mythweb from SVN [In reply to]

On Sat, Sep 12, 2009 at 12:58 PM, Michael T. Dean
<mtdean [at] thirdcontact> wrote:
> Does the attached patch help?
>
> Mike
>
> Index: modules/_shared/tmpl/_errors/error.php
> ===================================================================
> --- modules/_shared/tmpl/_errors/error.php      (revision 21781)
> +++ modules/_shared/tmpl/_errors/error.php      (working copy)
> @@ -13,6 +13,8 @@
>  *
>  /**/
>
> +include_once 'includes/translate.php';
> +
>  // Set the desired page title
>     $page_title = 'MythWeb - '.t('Error');

Hi Mike--

thanks for having a go at this. Unfortunately, no. My guess is
somewhere the php include_path is running afoul of Apache rewrite or
vice-versa. I tried moving things under .../mythweb like so many
others do, and updating my apache conf file (mythweb provided one) but
all I see to get are variations on this:

Warning at /var/www/mythweb/modules/_shared/tmpl/_errors/error.php, line 25:
require(modules/_shared/tmpl/tmpl/header.php) [function.require]:
failed to open stream: No such file or directory

Fatal error: require() [function.require]: Failed opening required
'modules/_shared/tmpl/tmpl/header.php'
(include_path='/www/var/mythweb/includes:.:/usr/share/php:/var/www/mythweb:/var/www/mythweb/includes')
in /var/www/mythweb/modules/_shared/tmpl/_errors/error.php on line 25

The longer include path is from my entries of all the include paths in
php.ini that I could think of. The part that says "/www/var/..." is
weird since I just checked to see if I did a typo and I did not. and
I have no idea where "tmpl/tmpl" comes from. Rewrite working its
mojo, I figure. Or things referencing each other in a bad way.

There must be some basic configuration error I have, or more exactly,
lack of configuration.

Re: what Michael posted, I have no /srv/httpd at all.
But I do appreciate the input, guys!
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.