Opened 13 years ago

Closed 13 years ago

#2172 closed defect (fixed)

error when deleting a record with 2 clients watching

Reported by: t3st0n3l@… Owned by: xris
Priority: minor Milestone: 0.21
Component: mythweb Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Details:

datetime: 2006-08-14 18:45:24 (UTC) errornum: 1024

error type: User Notice

error string: Unexpected response to MYTH_PROTO_VERSION 'MYTH_PROTO_VERSION 26':

filename: /usr/share/mythtv/mythweb/includes/mythbackend.php

error line: 162

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

Backtrace:

file: /usr/share/mythtv/mythweb/includes/mythbackend.php line: 162

class:

function: trigger_error

type: args: Array

(

[0] => Unexpected response to MYTH_PROTO_VERSION 'MYTH_PROTO_VERSION 26':

)

file: /usr/share/mythtv/mythweb/includes/mythbackend.php line: 107

class:

function: check_proto_version

type: args: Array

(

[0] => 192.168.0.38 [1] => 6543

)

file: /usr/share/mythtv/mythweb/includes/mythbackend.php line: 89

class:

function: backend_command2

type: args: Array

(

[0] => ANN Monitor mythtv 0 [1] => Resource id #38 [2] => 192.168.0.38 [3] => 6543

)

file: /usr/share/mythtv/mythweb/includes/mythbackend.php line: 34

class:

function: backend_command

type: args: Array

(

[0] => ANN Monitor mythtv 0

)

file: /usr/share/mythtv/mythweb/includes/init.php line: 214

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/includes/mythbackend.php

)

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

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/includes/init.php

)

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

$_SESSION: Array (

[language] => English [Theme] => default [Skin] => default [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<br />(%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 [time_format] => %I:%M %p [list_time] => 1155580200 [scheduled_recordings] => Array

(

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

)

[] => Array ( ) [recorded_title] => Unknown [recorded_recgroup] => LiveTV [recorded_sortby] => Array

(

[0] => Array

(

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

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[siunits] => NO

)

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

$_SERVER: Array (

[DOCUMENT_ROOT] => /var/www [HTTP_ACCEPT] => application/x-shockwave-flash, */* [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => en-us [HTTP_CONNECTION] => Keep-Alive [HTTP_COOKIE] => CGISESSID=eb2dd309e7605ca1eb9cd671562ac121; mythweb_id=4e9378dd3ec236a25c8078cb9e010626 [HTTP_HOST] => 192.168.0.38 [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) [PATH] => /bin:/usr/bin:/usr/local/bin [REDIRECT_db_login] => mythtv [REDIRECT_db_name] => mythconverg [REDIRECT_db_password] => mythtv [REDIRECT_db_server] => localhost [REDIRECT_REDIRECT_STATUS] => 200 [REDIRECT_STATUS] => 200 [REDIRECT_URL] => /mythweb/mythweb.php [REMOTE_ADDR] => 192.168.0.61 [REMOTE_PORT] => 1719 [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php [SERVER_ADDR] => 192.168.0.38 [SERVER_ADMIN] => webmaster@… [SERVER_NAME] => 192.168.0.38 [SERVER_PORT] => 80 [SERVER_SIGNATURE] => <ADDRESS>Apache/1.3.33 Server at 192.168.0.38 Port 80</ADDRESS>

[SERVER_SOFTWARE] => Apache/1.3.33 (Debian GNU/Linux) mod_auth_pam/1.1.1 mod_gzip/1.3.26.1a PHP/4.3.4 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /mythweb/ [SCRIPT_NAME] => /mythweb/mythweb.php [PATH_TRANSLATED] => /var/www/mythweb/mythweb.php [PHP_SELF] => /mythweb/mythweb.php [argv] => Array ( ) [argc] => 0 [STATUS] => 200 [URL] => /mythweb/mythweb.php

)

Change History (3)

comment:1 Changed 13 years ago by Isaac Richards

Priority: criticalminor

comment:2 Changed 13 years ago by cpinkham

Component: mythtvmythweb
Owner: changed from Isaac Richards to xris

I can't parse the debug info provided, but I can say that we should be checking to see if the recording is in use before allowing the user to delete it using mythweb. The regular frontend does this in programs/mythfrontend/playbackbox.cpp with the REC_CAN_BE_DELETED macro. Punting to xris so he can take a look at adding an 'if' around the code that prints the delete link/button/whatever for a recording.

comment:3 Changed 13 years ago by xris

Resolution: fixed
Status: newclosed

(In [12873]) Check to see if something can be deleted before showing the 'delete' commands. Technically, this closes #2172, although I don't think the original submitter of the bug ran into this specific problem (e.g. mythproto error).

Note: See TracTickets for help on using tickets.