[mythtv-users] white page in mythbrowser

Jonatan mythtv at comhem.se
Fri Jul 30 17:20:05 UTC 2010


On 07/30/2010 06:04 PM, Warpme wrote:
> Hi *
>
> I have question about mythbrowser:
>
> Following code (generated by my server side maintenance script):
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd
>
> <html>
> <form method="LINK" action="index.html">
> <input type="submit" value="Return">
> </form>
> <Title> Request was:</Title>
> <hr />
> <strong>Daemon :</strong> mythtv/mythbackend<br>
> <strong>Command:</strong> Clear<br>
> <Title> Command output is:</Title>
> <hr />
> <strong>Commandline:</strong>
> cat /dev/null > /var/log/mythtv/mythbackend.log 2>&1 2>/dev/null |<br>
> <strong>Output:</strong>
>
> <hr />
> <form method="LINK" action="index.html">
> <input type="submit" value="Return">
> </form>
> </html>
>
> Is fully visible in Safari/Firefox/IE but in mythbrowser gives white page.
>
> Maybe somebody knows what is wrong with abve HTML code ?
>
It's missing the head+title and body tags so it's not really strict HTML 
:)  It's however visible for me in rev 25328 of mythplugins on the 
0.23-fixes branch.

You might want to look at HTML Tidy [1] and the W3C Markup Validator 
Service [2] to get your code validated.

Something like this passes the validation:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd
>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<form method="post" action="index.html">
<input type="submit" value="Return">
</form>
<h1>Request was:</h1>
<hr>
<strong>Daemon :</strong> mythtv/mythbackend<br>
<strong>Command:</strong> Clear<br>
<h1>Command output is:</h1>
<hr>
<strong>Commandline:</strong> cat /dev/null > 
/var/log/mythtv/mythbackend.log 2>&1 2>/dev/null |<br>
<strong>Output:</strong>
<hr>
<form method="post" action="index.html">
<input type="submit" value="Return">
</form>
</body>
</html>

[1] http://tidy.sourceforge.net/
[2] http://validator.w3.org/
--
Jonatan



More information about the mythtv-users mailing list