Opened 17 years ago

Closed 16 years ago

#2537 closed defect (fixed)

error in Call to a member function rec_override()

Reported by: anonymous Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: mythweb Version: 0.20
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Trying to override a recording from the Upcoming page I get the following error.

Fatal error: Call to a member function rec_override() on a non-object in /var/www/html/mythweb/modules/tv/upcoming.php on line 45

Attachments (3)

Upcoming_Recordings.png (230.2 KB) - added by nigel@… 16 years ago.
Upcoming recordings screenshot.
Recording_Schedules.png (181.1 KB) - added by nigel@… 16 years ago.
Recording Schedules screenshot.
TimeTeamSettings.png (160.6 KB) - added by nigel@… 16 years ago.
Time Team settings screen shot.

Download all attachments as: .zip

Change History (17)

comment:1 Changed 17 years ago by paul@…

I the lasted atrpms . 20.1-fixes I can't reproduce so either problem is fixed or the data I was using has changed.

comment:2 Changed 17 years ago by xris

Resolution: worksforme
Status: newclosed

Was talking to someone about this in irc the other day. Only thing I can think of is that it was a program table entry that is no longer present.

comment:3 Changed 16 years ago by nigel@…

Resolution: worksforme
Status: closedreopened

Reliably reproducable today with code from current Ubuntu Gutsy (2007-10-20 AEST). I'll happily examine the database if you give me a pointer as to what to look for.

comment:4 Changed 16 years ago by Rob Smith

Status: newinfoneeded_new

comment:5 Changed 16 years ago by Rob Smith

Resolution: worksforme
Status: infoneeded_newclosed

Given we're releasing 0.21 here shortly, can you verify with that version and reopen if you can still reproduce?

comment:6 Changed 16 years ago by anonymous

Resolution: worksforme
Status: closednew

Ok. Hardy is currently on revision 16174. I upgraded to that.

I think the comment above is correct: "Only thing I can think of is that it was a program table entry that is no longer present."

I can still reproduce it, by selecting a program that was regularly scheduled, but isn't currently scheduled. If I click on the program title link, I get the program listings page and a popup dialog saying "Warning:\nUnknown program." (Good).

If I click the "Activate" link, however, I get: The resulting page says "Fatal error: Call to a member function rec_override() on a non-object in /usr/share/mythtv/mythweb/modules/tv/upcoming.php on line 52".

If I click the "Don't Record" link, I get "Fatal error: Call to a member function rec_override() on a non-object in /usr/share/mythtv/mythweb/modules/tv/upcoming.php on line 48"

I would suggest that "Activate" and "Don't Record" buttons shouldn't be there in the first place. There should be a button allowing you do delete the schedule, though.

comment:7 Changed 16 years ago by nigel@…

Ah sorry. Previous comment was me again.

comment:8 Changed 16 years ago by xris

If it's not scheduled, how do you see it on the list of upcoming scheduled recordings?

comment:9 Changed 16 years ago by anonymous

I don't know, but I do. Would you like a screenshot or something? It's not a bookmarked page. I'm just visiting http://mythbox/mythweb/tv/list and then clicking on 'upcoming recordings' and there it is.

comment:10 Changed 16 years ago by xris

do you see it listed when you click on "recording schedules"? Also, is this 0.20 or svn trunk?

comment:11 Changed 16 years ago by anonymous

Yes, I see it in the "recording schedules" list:

Time Team 0 2 - ABC TV Victoria Default Autodetect Default Daily Default

I'm running the current Ubuntu Hardy version, which is 0.21.0~fixes16174-0ubuntu1 (ie svn revision 16174 from the 0.21 branch).

comment:12 Changed 16 years ago by xris

If it's in the "recording schedules" list, then it's definitely not "not scheduled". Perhaps you can attach a few screenshots so I can get a better idea what you're talking about.

Changed 16 years ago by nigel@…

Attachment: Upcoming_Recordings.png added

Upcoming recordings screenshot.

Changed 16 years ago by nigel@…

Attachment: Recording_Schedules.png added

Recording Schedules screenshot.

Changed 16 years ago by nigel@…

Attachment: TimeTeamSettings.png added

Time Team settings screen shot.

comment:13 Changed 16 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:14 Changed 16 years ago by Rob Smith

Resolution: fixed
Status: acceptedclosed

(In [17586]) Fixes #2537, this fixes the fatal error when a schedule is attempted to be activated without any programs to record.

Note: See TracTickets for help on using tickets.