[mythtv-users] Mythweb fails after upgrade. (ubuntu 10.04 to 10.10)
R. G. Newbury
newbury at mandamus.org
Sun Oct 3 02:35:44 UTC 2010
On 10/02/2010 11:54 AM, Michael T. Dean wrote:
> On 10/02/2010 11:03 AM, Oz Dror wrote:
>>
>> I get the following error when Accessing mythweb
>> http://192.168.0.4/mythweb <http://localhost/mythweb>: ( MaterServerIP
>> =192.168.0.4)
>>
>> Fatal Error
>>
>> MasterServerIP or MasterServerPort not found! You mayneed to check
>> your settings.php file or re-run mythtv-setup
>>
>> If you choose to submit a bug report please make sure to include a
>> brief description of what you were doing, along with the following
>> backtrace as an attachment (please don\'t just paste the whole thing
>> into the ticket)
>>
>> The port and the Server are set correctl.
>>
>> In mythtv setup the MaterServerIP and Port are set correctly.
>>
>> If I remove the following lines from *MythBackend.php*. It seems to
>> work fine.
>>
>> if (!$host || !$port)
>> trigger_error("MasterServerIP or MasterServerPort not found! You may"
>> ."need to check your settings.php file or re-run mythtv-setup",
>> FATAL);
>>
>> There is clearly an issue with my MaterServerIP and MasterServerPort
>> Doe any one know how I can narrow the issue.
>> Mythfrontend and mythebackend are working fine. It is only a mythweb
>> issue.
>
> Run mythtv-setup and set the Master backend IP address (and verify the
> port). Also, verify that MythWeb is using the right database (i.e. set
> the database information in your apache mythweb configuration file).
>
> Mike
I remember running into this problem some time ago and should have filed
a bug.
Just prior to those lines is a call to a function 'get_backend_setting'
which does not exist.
// Looking for the master backend?
if (is_null($host)) {
$host = get_backend_setting('MasterServerIP');
$port = get_backend_setting('MasterServerPort');
if (!$host || !$port)
trigger_error("MasterServerIP or MasterServerPort not
found! You may"
."need to check your settings.php file or
re-run mythtv-setup",
FATAL);
'grep -R -H -n get_backend_setting *' from '/' (root) finds nothing.
And so $port is left as the default (null) and the test fails.
MythFrontend.php uses an entirely different set of testing methodology
and so avoids this error.
Geoff
R. Geoffrey Newbury
More information about the mythtv-users
mailing list