[mythtv-users] mythweb2 and 0.10 release?

Michael Greb mikegrb at yahoo.com
Fri Aug 1 17:21:37 EDT 2003


Alan Snyder said:
> If I just load <hostip>/mythweb/ or
> <hostip>/mythweb/recorded_programs.php or
> any other page, I get IE asking me if I want to
> download the php file.  If I
> cancel that and reload, I can get a semi-readable
> page.  Ctrl-reload, which in
> IE ignores the cache, seems to help, but clearing the
> cache does not.
>
> One clue:  If I view the source, it's clear that part
> of the html page is cut
> off.  The recorded programs page for example begins
> with
>
> rder_t menu_border_b"><table class="body" width="100%"
> border="0"
> cellspacing="2" cellpadding="2">
> 		<tr>
> 			<td><a id="category_legend_anchor"
> onmouseover="show('category_legend');return true;"
>
>
> Here are some errors embedded in the recorded programs
> page:
>
> HTTP/1.1 200 OK Date: Fri, 01 Aug 2003 19:45:04 GMT
> Server:
> Apache-AdvancedExtranetServer/2.0.45 (Mandrake
> Linux/4.3mdk) mod_perl/1.99_08
> Perl/v5.8.0 mod_ssl/2.0.45 OpenSSL/0.9.7a PHP/4.3.1
> Last-Modified: Fri, 01 Aug
> 2003 00:51:58 GMT ETag: "fc286-a3f-6d7f4780"
> Accept-Ranges: bytes
> Content-Length: 2623 Keep-Alive: timeout=15, max=99
> Connection: Keep-Alive
> Content-Type: application/x-httpd-php
> Warning: (null)() [ref.outcontrol]: Cannot change
> zlib.output_compression -
> headers already sent in Unknown on line 0
>
> --------------------------------------------------------------------------------
> Warning at
> /var/www/html/mythweb2/includes/mythbackend.php, line
> 16:
> shell_exec() [function.shell-exec]: Cannot execute
> using backquotes in Safe Mode
>
> --------------------------------------------------------------------------------
>
> --------------------------------------------------------------------------------
> Warning at
> /var/www/html/mythweb2/themes/Default/theme.php, line
> 14:
> Cannot modify header information - headers already
> sent by (output started at
> /var/www/html/mythweb2/includes/errors.php:68)
> --------------------------------------------------------------------------------
>
> Could there be a problem with mythweb2  in the
> directory mythweb2 rather than
> mythweb?
>
> Could Apache be confused by serving two sets of pages
> with many of the same file
> names (seems doubtful)?

Those error messages are caused by those pages trying to send headers,
probably cookies for php sessions when headers have already been sent. 
When the server returns a php page, it doesn't finish the headers off
until the first line of content is returned, this allows the php script to
add headers to be sent.  The problem you are running into is probably
comming from the php open tags.  PHP has several methods for starting off
the PHP in the file (<?php <? are the most common).  What most likely is
happening is you don't have short tags turned on meaning that only <?php
works.  When the PHP script engine sees the <? it assumes this is content,
the headers are finished off and the following text is sent to the
browser.  The reason your page is incomplete could be that some of the
page should have been generated by the script.  Something you could try
doing is setting the short tags option on in the PHP settings file.  Add
or set the following line in /etc/php.ini:
short_open_tag = On
see if that doesn't help you out.

I may be totaly off base but it is worth a shot.

Michael


More information about the mythtv-users mailing list