php errors on pages in mythweb

Bug #445879 reported by ChrisLaw
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mythplugins (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu karmic (development branch)
Release: 9.10

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

When loading pages under mythweb, there's 2 php errors at the top of the screen. I suspect the second may also be causing problems with functionality, as hover-over text boxes no longer appear. nor do names of channels.

Warning at /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php, line 16:
Cannot modify header information - headers already sent by (output started at /usr/share/mythtv/mythweb/classes/MythBackend.php:114)

I don't really know a lot more about this problem.
Cheers,
Chris

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

Typical - it might actually be that fixing 445873 fixes this too. I hadn't realised that until after filing, sorry.

Revision history for this message
spaceman (spacedoubtman) wrote :

I get a similar error with karmic:but newer version

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php:49) in /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php on line 16
MythTV

I installed cleanly over the weekend - then shutdown myth and mysql and copied my mythconverg folder over from my old Jaunty installation. Every thing else (recording schedules, recorded programs, etc) seemed to recognise the old database schema and upgrade fine.

System details:
Linux i 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux
apache2.2-bin 2.2.12-1ubuntu2
mythweb 0.22.0+fixes22594-0ubuntu1
php5 5.2.10.dfsg.1-2ubuntu6.1

Revision history for this message
spaceman (spacedoubtman) wrote :

I've found other posts that say to try dpkg-reconfigure mythweb, or setting the hostname, but still not working. It looks like the script is working right up until the Modules::getModule call in the headers. No idea why.

Revision history for this message
Ted Cabeen (ted-cabeen) wrote :

sudo dpkg-reconfigure tzdata fixed this for me. (As suggested in https://bugs.launchpad.net/bugs/445873)

Revision history for this message
spaceman (spacedoubtman) wrote :

I found this:
http://www.gossamer-threads.com/lists/mythtv/users/409788#409788

Basically its because I coped the myth tables across and you can't do this for the mythweather tables.

affects: mythweb (Ubuntu) → mythplugins (Ubuntu)
Revision history for this message
Mikko Rönkkö (mikko-ronkko) wrote :

I have the same problem. When I copied over database from my previous installation that had MythWeather installed to a new installation that did not have MythWeather, the code fails because database indicates that MythWeather exists but it does not.

This was fixed with the following

cat << "EOF" | mysql -umythtv -p mythconverg
DELETE TABLE IF EXISTS weathersourcesettings;
DELETE TABLE IF EXISTS weatherscreens;
DELETE TABLE IF EXISTS weatherdatalayout;
DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
EOF

Apart from running this manually, I have no idea of what would be the proper fix for this bug.

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.