chadopp / mythepisode

TV Series/Shows
2 stars 3 forks source link

Unable to load Recorded TV Shows. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click on Recorded TV Shows
2.
3.

What is the expected output?
Page loads with "Recorded TV Shows"

What do you see instead?
Page loads with this in the window:
query('DELETE FROM oldrecorded WHERE programid=?', $_GET['category'] ); // 
Parse the program list $result = mysql_query('SELECT 
title,subtitle,description,programid FROM oldrecorded GROUP BY programid'); 
$Total_Programs = 0; $All_Shows = array(); $Programs = array(); while (true) { 
$Program_Titles = array(); while ($record = mysql_fetch_row($result)) { // 
Create a new program object $show = new Program($record); // Assign a reference 
to this show to the various arrays $Total_Programs++; 
$Program_Titles[$record[0]]++; $Groups[$record[30]]++; if ($_GET['title'] && 
$_GET['title'] != $record[0]) continue; if ($_GET['recgroup'] && 
$_GET['recgroup'] != $record[30]) continue; // Make sure that everything we're 
dealing with is an array if (!is_array($Programs[$show->title])) 
$Programs[$show->title] = array(); $All_Shows[] = &$show; 
$Programs[$show->title][] = &$show; unset($show); // Make sure that everything 
we're dealing with is an array if (!is_array($Programs[$show->title])) 
$Programs[$show->title] = array(); } // Did we try to view a program that we 
don't have recorded? // Revert to showing all programs if ($_GET['title'] && 
!count($Programs)) { $Warnings[] = 'No matching programs found. Showing all 
programs.'; unset($_GET['title']); } else { break; } } // Sort the program 
titles ksort($Program_Titles); // Keep track of the program/title the user 
wants to view $_SESSION['previous_recorded_title'] = $_GET['title']; // Sort 
the programs if (count($All_Shows)) sort_programs($All_Shows, 
'previous_recorded_sortby'); // Load the class for this page require_once 
tmpl_dir.'previous_recordings.php'; // Exit exit; ?> 

What version of the product are you using?
Newest from 12 hours ago at this time.

On what operating system?
Gentoo Linux
MythTV Version   : 25596M
MythTV Branch    : trunk
Network Protocol : 58
Library API      : 0.23.20100807-1
QT Version       : 4.6.2
Options compiled in:
 linux debug using_alsa using_oss using_backend using_dvb using_frontend using_hdpvr using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_mythtranscode using_opengl using_ffmpeg_threads using_mheg

Please provide any additional information below.

Original issue reported on code.google.com by Myr...@gmail.com on 16 Aug 2010 at 4:51

GoogleCodeExporter commented 9 years ago
I believe I have fixed this issue.  A new download is available.

Original comment by chadopp@gmail.com on 19 Aug 2010 at 4:57

GoogleCodeExporter commented 9 years ago
Changed the way in which previous recordings are displayed which I believe will 
resolve this issue.

Original comment by chadopp@gmail.com on 19 Aug 2010 at 5:00

GoogleCodeExporter commented 9 years ago
Not fixed.
Now I get the HTTP 500 error when I click on View/Delete Recorded Episodes 
under any show, including the ones that I have nothing recorded.

Apache error log shows 
[Thu Aug 19 08:44:59 2010] [error] [client 192.168.1.1] PHP Parse error:  
syntax error, unexpected $end in 
/var/www/localhost/htdocs/mythweb/modules/episode/tmpl/default/previous_recordin
gs.php on line 96, referer: http://myth.aokcc.org/mythweb/episode/episodes

Checking the logs from the inital error report the error is on line 150 in the 
original version of previous_recordings.php
[Mon Aug 16 22:19:29 2010] [error] [client 192.168.1.1] PHP Parse error:  
syntax error, unexpected $end in 
/var/www/localhost/htdocs/mythweb/modules/episode/tmpl/default/previous_recordin
gs.php on line 150

Original comment by Myr...@gmail.com on 19 Aug 2010 at 12:49

GoogleCodeExporter commented 9 years ago

Original comment by chadopp@gmail.com on 19 Aug 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Used php fix provided by MarcT

Original comment by chadopp@gmail.com on 20 Aug 2010 at 3:26