[mythtv-users] mythweb not working .. modules_path ?]

Brock Haywood BHaywood at BCLC.com
Fri Nov 26 18:57:09 UTC 2010


It should be done in mythweb/includes/defines.php.  

The problem that I had was that php was throwing an error before it gets
defined. In my case, it was permissions. I have also seen it when there
is a php dependency problem.  I figured it out by putting in trace
statements starting from where modules_path is defined and working
backwards like such:
	echo("here");
	exit(0);

And then once that statement is actually executed (the page doesn't
die), I was able to determine what the error was.  If you use a quasi
binary search to find out where it is able to run, it shouldn't take too
long. Not pretty, but it ultimately worked.

bh

-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of James Kaufman
Sent: November 26, 2010 10:26 AM
To: mythtv-users at mythtv.org
Subject: Re: [mythtv-users] mythweb not working .. modules_path ?]

On 11/26/2010 11:02 AM, Brock Haywood wrote:
>> -----Original Message-----
>> From: mythtv-users-bounces at mythtv.org
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Ismo Tanskanen
>> Sent: November 26, 2010 8:20 AM
>> To: Discussion about MythTV
>> Subject: Re: [mythtv-users] mythweb not working .. modules_path ?]
>>
>>
>>
>> Brock Haywood kirjoitti:
>>> That error also shows up if there are some missing dependencies in
> PHP
>>> as well as when the permissions are not set correctly on the
>>> mythweb/data/ folder. It's probably showing up because it's trying
to
>>> log an error before the logging code is "initialized."
>>>
>>> bh
>>>
>>>
>>>
>> What perl depedencies should I have installed? I have checked datd
>> folder permissions.
>>
>> -Kane
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
> If I had to guess, I would say you are actually missing some PHP
> dependencies.  They are listed in the INSTALL file in the mythweb
folder
> (session, MySQL, pcre, posix and json).
>
> bh
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

I have the exact same problem. All php dependencies as listed in the 
INSTALL file are active in my version of PHP. (Checked using
phpinfo.php)


[Thu Nov 25 21:19:01 2010] [error] [client 192.168.1.2] PHP Warning: 
file_get_contents(modules_path/_shared/lang/English.lang): failed to 
open stream: No such file or directory in 
/usr/share/mythtv/mythweb/classes/Translate.php on line 168
[Thu Nov 25 21:19:01 2010] [error] [client 192.168.1.2] PHP Fatal error:

  Failed to open translation file: 
modules_path/_shared/lang/English.lang in 
/usr/share/mythtv/mythweb/classes/Translate.php on line 172

The file is where it should be. The question where does 'modules_path' 
get defined?

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


More information about the mythtv-users mailing list