[mythtv-users] mythweb setup on 0.24-fixes

Brock Haywood BHaywood at BCLC.com
Mon Nov 8 16:05:23 UTC 2010


-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Chris Petersen
Sent: November 6, 2010 1:26 PM
To: Discussion about MythTV
Subject: Re: [mythtv-users] mythweb setup on 0.24-fixes

>On 11/5/10 4:04 PM, Brock Haywood wrote:
>> Fri Nov 05 15:57:47 2010] [error] [client x.x.x.x] PHP Warning:
>> file_get_contents(modules_path/_shared/lang/English.lang): failed to 
>> open stream: No such file or directory in 
>> /var/www/html/classes/Translate.php on line 168 [Fri Nov 05 15:57:47 
>> 2010] [error] [client x.x.x.x] PHP Fatal error:
>> Failed to open translation file:  
>> modules_path/_shared/lang/English.lang
>> in /var/www/html/classes/Translate.php on line 172
>> 
>> Perhaps someone has some ideas?

>modules_path is supposed to be a constant containing the value of the
path to the modules directory.  For backwards >compatibility with old
versions, undefined constants degrade to strings of the same name.

>Somehow your setup isn't defining the constant properly, which means
something else is wrong with the setup.  Check your >apache log for more
detailed errors -- there should be something else going on, probably in
defines.php.

>-Chris

I don't see anything in the apache log. Here is the access, error, and
other_vhosts for a given request to mythweb:

==> /var/log/apache2/error.log <==
[Mon Nov 08 07:58:09 2010] [error] [client x.x.x.x] PHP Warning:
file_get_contents(modules_path/_shared/lang/English.lang): failed to
open stream: No such file or directory in
/var/www/html/classes/Translate.php on line 168
[Mon Nov 08 07:58:09 2010] [error] [client x.x.x.x] PHP Fatal error:
Failed to open translation file:  modules_path/_shared/lang/English.lang
in /var/www/html/classes/Translate.php on line 172

==> /var/log/apache2/access.log <==
x.x.x.x - - [08/Nov/2010:07:58:09 -0800] "GET /html/ HTTP/1.1" 500 265
"-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7
(KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7"

==> /var/log/apache2/error.log <==
[Mon Nov 08 07:58:09 2010] [error] [client x.x.x.x] File does not exist:
/var/www/favicon.ico

==> /var/log/apache2/access.log <==
x.x.x.x - - [08/Nov/2010:07:58:09 -0800] "GET /favicon.ico HTTP/1.1" 404
504 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7"

It also looks like the modules_path should be set in defines.php but I
don't see any error.

bh




More information about the mythtv-users mailing list