Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10552 closed Bug Report - General (Fixed)

Setup Wizard video test is broken

Reported by: JYA Owned by: Raymond Wagner
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When trying to download either the SD or HD video sample; we get:

<?
Header( "HTTP/1.1 302 Moved Temporarily" );

$agent = $_SERVER['HTTP_USER_AGENT'];
$file = "";

if (preg_match('/Torc/i', $agent)) {
	Header( "Location: http://www.torcdvr.com/" );
}
else
{
	if (preg_match('/mythdownloadmanager/i', $agent) && isset($_GET['sample'])) {
		if ($_GET['sample'] == "HD") {
			$file = "mythtv_video_test_HD_19000Kbps_H264.mkv";
		} else {
			$file = "mythtv_video_test_SD_6000Kbps_H264.mkv";
		}

		Header( "Location: ftp://ftp.osuosl.org/pub/mythtv/samples/videos/$file");
	}
	else
	{
		Header( "Location: http://www.mythtv.org/" );
	}
}

?>

looks like a broken php header, shouldn't it start with <?php

Change History (4)

comment:1 Changed 12 years ago by JYA

Forgot to add that this is obviously an invalid video file, that just isn't going to play

comment:2 Changed 12 years ago by Raymond Wagner

Resolution: Fixed
Status: newclosed

comment:3 Changed 12 years ago by Raymond Wagner

Owner: set to Raymond Wagner

comment:4 Changed 12 years ago by beirdo

Changed the setting in /etc/php.ini to:

short_open_tag = On

in case there are others like that elsewhere.

Note: See TracTickets for help on using tickets.