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

Ismo Tanskanen ismot at telemail.fi
Mon Nov 29 15:37:49 UTC 2010


**** Terveisin ** Regards ********

Ismo Tanskanen
Laitalehdontie 43
82220 Niittylahti
P 0400-764124
ismo at karjalandatahuolto.fi
ismot at telemail.fi
www.karjalandatahuolto.fi 



Ismo Tanskanen kirjoitti:
>
> James Kaufman kirjoitti:
>   
>> On 11/26/2010 12:57 PM, Brock Haywood wrote:
>>     
>>> 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?
>>>
>>>       
>> Using the echo idea, I found that the module named db_update.php
>> checks the db schema and tries to update it if it is less than 2.
>>
>>                 setting('WebPrefer_Channum', null, 1);
>>                 setting('WebDBSchemaVer',    null, ++$db_vers);
>>
>> For whatever reason, it was not able to update the WebDBSchemaVer to 2
>> and that was the problem. I manually updated the db (don't shoot me)
>> and now MythWeb appears to be working.
>>
>>     
> Thanks, I tried that. But in my case it didn't help. I still get blank
> page and this error:
> [Sat Nov 27 10:52:54 2010] [error] [client 192.168.1.10] PHP Fatal
> error:  Failed to open translation file: 
> modules_path/_shared/lang/English.lang in
> /srv/www/htdocs/mythweb/classes/Translate.php on line 172, referer:
> http://192.168.1.98/
> [Sat Nov 27 10:52:55 2010] [error] [client 192.168.1.10] PHP Warning: 
> file_get_contents(modules_path/_shared/lang/English.lang): failed to
> open stream: Tiedostoa tai hakemistoa ei ole in
> /srv/www/htdocs/mythweb/classes/Translate.php on line 168, referer:
> http://192.168.1.98/
> [Sat Nov 27 10:52:55 2010] [error] [client 192.168.1.10] PHP Fatal
> error:  Failed to open translation file: 
> modules_path/_shared/lang/English.lang in
> /srv/www/htdocs/mythweb/classes/Translate.php on line 172, referer:
> http://192.168.1.98/
>
> Please, could you explain where to put those echo statements? And where
> it outputs?
>
> -Kane
> _______________________________________________
>
>
>   
Sorry about rushing, but could anyone help with this. I don't know how
to track this problem. Where I should put those "echo" statements?
I'm really not familiar with php.

- Kane


More information about the mythtv-users mailing list