Opened 11 years ago

Closed 11 years ago

#5904 closed defect (invalid)

Imdb script gives error message

Reported by: wstewart@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythvideo Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Running the imdb script from trunk gives the following error:

Global symbol "$uri" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 147. Global symbol "$opt_d" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 149. Global symbol "$opt_d" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 151. Global symbol "$opt_r" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 152. Global symbol "$movieid" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 154. Global symbol "$opt_d" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 155. Global symbol "$uri" requires explicit package name at /usr/share/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm line 156. Compilation failed in require at /usr/share/mythtv/mythvideo/scripts/imdb.pl line 35. BEGIN failed--compilation aborted at /usr/share/mythtv/mythvideo/scripts/imdb.pl line 35.

Either the line "use strict;" in MythVideoCommon?.pm needs to be commented out or the following needs to be added: our ($uri, $opt_d, $opt_r, $movieid);

I've tested both and they seem to work.

Thanks to "rob at mossko" in the users list for suggesting the fix.

Change History (2)

comment:1 Changed 11 years ago by wstewart@…

my bad, forgot I had added something that was causing the error.

Please close the ticket. Sorry for raising this.

comment:2 Changed 11 years ago by danielk

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.