PDA

View Full Version : Mythweb error


xinix
October 23rd, 2009, 12:15 PM
I'm getting this error when I try to access mythweb. I have set the correct permissions.

Any ideas?

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

jwbrown77
October 23rd, 2009, 02:02 PM
I can't tell you specifically what it is or how to fix it, but I can tell you in PHP you can't call the header() function if any output has already been sent (even whitespace).

So if you had a file like:

<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
?>

It won't work.

xinix
October 24th, 2009, 10:06 AM
This is with a fresh install of myth and ubuntu 9.04. The only change I've made was to give the 'www-data' user rights write to the mythweb files.

jwbrown77
October 24th, 2009, 01:02 PM
Did you update all packages to current?

xinix
October 24th, 2009, 11:32 PM
Yes, everything is updated.

xinix
October 30th, 2009, 10:31 AM
So time has past and new updates have come.

Now I get this error:Warning: require(modules/_shared/tmpl/tmpl/header.php) [function.require]: failed to open stream: No such file or directory in /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php on line 23

Fatal error: require() [function.require]: Failed opening required 'modules/_shared/tmpl/tmpl/header.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/fatal.php on line 23

It just seems like something didn't install of configure properly. I have completely removed apache, php, and mythweb including their configs. After reinstalling, I still get the same thing.

Valen00
November 8th, 2009, 11:29 AM
take a look at
https://bugs.launchpad.net/mythbuntu/+bug/459893

worked for me

xinix
November 8th, 2009, 12:41 PM
I should mark this as resolved. There is another thread that pointed me in the right way to solving the issue.

joho500
November 9th, 2009, 07:44 AM
Please supply the link to that thread for future reference.
Thanks.

Cheers,
Joost

xinix
November 9th, 2009, 11:27 AM
Please supply the link to that thread for future reference.
Thanks.

http://ubuntuforums.org/showthread.php?t=1308585