Opened 15 years ago

Closed 15 years ago

#6233 closed defect (fixed)

Delete a scheduled recording when the channel has been removed from the db causes sql error

Reported by: SNaef Owned by: xris
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Tried to manually cancel a previously scheduled recording from the upcoming recordings list after I deleted the channel from the DB. This caused a sql error. Using Mythweb.

Backtrace:

Fatal Error at /usr/share/mythtv/mythweb/modules/tv/includes/objects/Program.php, line 817: Unknown schedule for this program's recordid:

Backtrace:

datetime: 2009-02-05 01:55:32 (EST) errornum: 256

error type: User Error

error string: Unknown schedule for this program's recordid:

filename: /usr/share/mythtv/mythweb/modules/tv/includes/objects/Program.php

error line: 817

==========================================================================

Backtrace:

file: /usr/share/mythtv/mythweb/modules/tv/includes/objects/Program.php line: 817

class:

function: trigger_error

type: args: Array

(

[0] => Unknown schedule for this program's recordid: [1] => 256

)

file: /usr/share/mythtv/mythweb/modules/tv/upcoming.php line: 48

class: Program

function: rec_override

type: -> args: Array

(

[0] => 8

)

file: /usr/share/mythtv/mythweb/modules/tv/handler.php line: 85

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/upcoming.php

)

file: /usr/share/mythtv/mythweb/mythweb.php line: 28

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/handler.php

)

==========================================================================

$_GET: Array (

[dontrec] => yes [chanid] => 2563 [starttime] => 1233867600 [manualid] => 0

)

==========================================================================

$_SESSION: Array (

[language] => English [tmpl] => default [skin] => default [prefer_channum] => 1 [date_statusbar] => %a %b %e, %Y, %I:%M %p [date_scheduled] => %a %b %e, %Y (%I:%M %p) [date_scheduled_popup] => %a %b %e, %Y [date_recorded] => %a %b %e, %Y (%I:%M %p) [date_search] => %a %b %e, %Y, %I:%M %p [date_listing_key] => %a %b %e, %Y, %I:%M %p [date_listing_jump] => %a %b %e, %Y [date_channel_jump] => %a %b %e, %Y [date_job_status] => %a %b %e, %Y, %I:%M %p [time_format] => %I:%M %p [recorded_pixmaps] => 1 [guide_favonly] => [timeslot_size] => 300 [num_time_slots] => 36 [timeslot_blocks] => 3 [timeslotbar_skip] => 20 [max_stars] => 4 [star_character] => ♦ [show_popup_info] => 1 [show_channel_icons] => 1 [sortby_channum] => 1 [show_video_covers] => 1 [tv] => Array

(

[last] => Array

(

[0] => upcoming [1] => 2563 [2] => 1233867600

)

[show_advanced_schedule] => 1

)

[list_time] => 1234328400 [recorded_title] => [recorded_recgroup] => [recorded_sortby] => Array

(

[0] => Array

(

[field] => airdate [reverse] => 1

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[] => Array ( ) [search] => Array

(

[type] => q [s] => doll house [ctype] => Array

(

[0] => movie [1] => series [2] => sports [3] => tvshow

)

[stars_gt] => 0 [stars_lt] => 1 [starttime] => now [endtime] => + 2 weeks [as] => Array

(

[0] => house

)

[af] => Array

(

[0] => Array

(

[0] => title

)

)

[aj] => Array

(

[0] => AND

)

[hd] => [commfree] => [airdate_start] => [airdate_end] =>

)

[search_sortby] => Array

(

[0] => Array

(

[field] => airdate [reverse] =>

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[scheduled_recordings] => Array

(

[disp_scheduled] => 1 [disp_duplicates] => [disp_deactivated] => [disp_conflicts] => 1

)

[scheduled_sortby] => Array

(

[0] => Array

(

[field] => airdate [reverse] =>

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[recording_details] => Array

(

[show_Conflict] => 1 [show_PreviousRecording] => 1 [show_EarlierShowing] => 1 [show_CurrentRecording] => 1 [show_WillRecord] => 1

)

[schedules_sortby] => Array

(

[0] => Array

(

[field] => recpriority [reverse] =>

)

[1] => Array

(

[field] => airdate [reverse] =>

)

[2] => Array

(

[field] => title [reverse] =>

)

)

[settings] => Array

(

[last] => Array

(

[0] => tv [1] => channels

)

)

)

==========================================================================

$_SERVER: Array (

[REDIRECT_STATUS] => 200 [HTTP_HOST] => 192.168.254.2 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729) [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip,deflate [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 [HTTP_KEEP_ALIVE] => 300 [HTTP_CONNECTION] => keep-alive [HTTP_REFERER] => http://192.168.254.2/mythweb/tv/upcoming [HTTP_COOKIE] => mythweb_id=c58588cc7ab47734765ca16fdb792c70 [PATH] => /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] => <address>Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at 192.168.254.2 Port 80</address>

[SERVER_SOFTWARE] => Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch [SERVER_NAME] => 192.168.254.2 [SERVER_ADDR] => 192.168.254.2 [SERVER_PORT] => 80 [REMOTE_ADDR] => 192.168.254.3 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php [REMOTE_PORT] => 50337 [REDIRECT_QUERY_STRING] => dontrec=yes [REDIRECT_URL] => /mythweb/tv/upcoming/2563/1233867600 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => dontrec=yes [REQUEST_URI] => /mythweb/tv/upcoming/2563/1233867600?dontrec=yes [SCRIPT_NAME] => /mythweb/mythweb.php [PATH_INFO] => /tv/upcoming/2563/1233867600 [PATH_TRANSLATED] => /var/www/tv/upcoming/2563/1233867600 [PHP_SELF] => /mythweb/mythweb.php/tv/upcoming/2563/1233867600 [PHP_AUTH_DIGEST] => username="mythtv", realm="MythTV", nonce="BKQh6yFiBAA=30d1f4f8a52fcad501fdbd015eac63e720981877", uri="/mythweb/tv/upcoming/2563/1233867600?dontrec=yes", algorithm=MD5, response="af646962cb1cb51ffa94106076591f40", qop=auth, nc=00000138, cnonce="77e8e8c0c5735c80" [REQUEST_TIME] => 1233816931 [argv] => Array

(

[0] => dontrec=yes

)

[argc] => 1 [STATUS] => 200 [URL] => /mythweb/tv/upcoming/2563/1233867600

)

Change History (1)

comment:1 Changed 15 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [21798]) Fixes #6233, this forces a scheduler run after channels have been edited. This prevents the user from attemtping to edit a non-valid schedule

Note: See TracTickets for help on using tickets.