Problems in MythBackend.php for mythweb

Bug #445873 reported by ChrisLaw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mythplugins (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi there.
As per the guidelines -
I'm using
Description: Ubuntu karmic (development branch)
Release: 9.10
the package is
apt-cache policy mythweb
mythweb:
  Installed: 0.22.0~trunk22242-0ubuntu1
  Candidate: 0.22.0~trunk22242-0ubuntu1
  Version table:
 *** 0.22.0~trunk22242-0ubuntu1 0
        500 http://archive.ubuntu.com karmic/multiverse Packages
        100 /var/lib/dpkg/status

I didn't think that I'd be able to gather this information properly using apport.

The problem is shown when I load the first page from mythweb on my backend system -

ie http://myhost/mythweb/tv/list

The page starts with 2 errors. The first is

User Notice at /usr/share/mythtv/mythweb/classes/MythBackend.php, line 124:
Failed to set php timezone to BST Response from backend was Array ( [0] => BST [1] => 3600 [2] => 2009-10-07T23:48:41 )

As far as I can make out, the problem is with

if (!@date_default_timezone_set($_SESSION['backend']['timezone']['value']))
from the MythBackend.php file. The value it is trying to set is BST (the first element in the array above) but that is failing, for reasons unknown. I put in a line forcing it to use "Europe/London" instead, and the error went away. This could be a problem in php rather than mythweb I guess.

Thanks,
Chris

Revision history for this message
ChrisLaw (megs-law) wrote :

I'll raise the second php error as another bug, as I don't think it's related.

Revision history for this message
ChrisLaw (megs-law) wrote :

I tracked down the problem. When I tried to connect with a seperate frontend, it was dying complaining that the server timezone was different - BST instead of Europe/London. So I checked, and /etc/localtime was different on the 2 machines. The server has been ubuntu since about version 6.04, whereas the client is a fresh install. So I'm assuming that at some point in the past, /etc/localtime was set up to use BST. I changed it to a symlink to /usr/share/zoneinfo/Europe/London, that fixed the frontend connection problem. I then undid the change I'd made to MythBackend.php, and that now works with the new timezone value too. Whether this just moves the bug or clears it I don't know.

Revision history for this message
Jeff (jeff.v) wrote :

I experienced the same issue -- existing box, upgraded to Karmic, suddenly saw timezone warnings from php in MythWeb. The following fixed it:

sudo dpkg-reconfigure tzdata

affects: mythweb (Ubuntu) → mythplugins (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.