Opened 11 years ago

Closed 11 years ago

#6777 closed defect (fixed)

Traceback in mythweb when no channels defined.

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

Description

Fatal Error at /usr/share/mythweb/modules/tv/includes/channels.php, line 65: No channels were detected. Are you sure that MythTV is properly configured?

Backtrace:

error serial:  881157.4835
    datetime:  2009-07-29 11:25:57 (EDT)
    errornum:  256
  error type:  User Error
error string:  No channels were detected.  Are you sure that MythTV is properly configured?
    filename:  /usr/share/mythweb/modules/tv/includes/channels.php
  error line:  61

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

Backtrace: 

    file:  /usr/share/mythweb/modules/tv/includes/channels.php
    line:  61
   class:  
function:  trigger_error
    type:  
    args:  Array
(
    [0] => No channels were detected.  Are you sure that MythTV is properly configured?
    [1] => 256
)

    file:  /usr/share/mythweb/modules/tv/list.php
    line:  46
   class:  
function:  load_all_channels
    type:  
    args:  Array ( )
    file:  /usr/share/mythweb/modules/tv/handler.php
    line:  87
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythweb/modules/tv/list.php
)

    file:  /usr/share/mythweb/mythweb.php
    line:  35
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythweb/modules/tv/handler.php
)


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

$_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
    [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
    [settings] => Array
        (
            [last] => Array
                (
                    [0] => tv
                    [1] => session
                )

            [screens] => Array
                (
                    [tv] => Array
                        (
                            [upcoming recordings] => Array
                                (
                                    [title] => on
                                    [channel] => on
                                    [record date] => on
                                    [length] => on
                                )

                        )

                )

        )

    [tv] => Array
        (
            [last] => Array
                (
                    [0] => list
                )

        )

    [list_time] => 1248880500
    [recorded_paging] => 
    [backend] => Array
        (
            [timezone] => Array
                (
                    [value] => America/New_York
                    [last_check_time] => 1248881120
                )

        )

)

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

$_SERVER: Array
(
    [REDIRECT_STATUS] => 200
    [include_path] => /usr/share/mythweb
    [HTTP_HOST] => dhcp-198
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090717 Fedora/3.5.1-1.fc11 Firefox/3.5.1
    [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://dhcp-198/mythweb/status
    [HTTP_COOKIE] => mythweb_tmpl=default; mythweb_skin=default; mythweb_id=9rg0l8dqbrs63qlrkhqra9qvp2
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [SERVER_SIGNATURE] => <address>Apache/2.2.11 (Fedora) Server at dhcp-198 Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.2.11 (Fedora)
    [SERVER_NAME] => dhcp-198
    [SERVER_ADDR] => 192.168.10.198
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 192.168.10.176
    [DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => root@localhost
    [SCRIPT_FILENAME] => /usr/share/mythweb/mythweb.php
    [REMOTE_PORT] => 55672
    [REDIRECT_URL] => /mythweb/tv/list
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /mythweb/tv/list
    [SCRIPT_NAME] => /mythweb/mythweb.php
    [PATH_INFO] => /tv/list
    [PATH_TRANSLATED] => /var/www/html/tv/list
    [PHP_SELF] => /mythweb/mythweb.php/tv/list
    [REQUEST_TIME] => 1248881157
    [STATUS] => 200
    [URL] => /mythweb/tv/list
)

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

$constant_list["user"]: Array
(
    [ERROR] => 512
    [E_ASSERT_ERROR] => 4096
    [FATAL] => 256
    [PHP_MIN_VERSION] => 5.1
    [WARNING] => 1024
    [WebDBSchemaVer] => 2
    [dupsin_all] => 15
    [dupsin_ex_generic] => 64
    [dupsin_ex_repeats] => 32
    [dupsin_newepisodes] => 16
    [dupsin_oldrecorded] => 2
    [dupsin_recorded] => 1
    [error_email] => 
    [gb] => 1073741824
    [hostname] => dhcp-198.j2sol
    [http_host] => dhcp-198
    [kb] => 1024
    [max_stars] => 4
    [mb] => 1048576
    [module] => tv
    [modules_path] => /usr/share/mythweb/modules
    [num_time_slots] => 36
    [prefer_channum] => 1
    [rectype_always] => 4
    [rectype_channel] => 3
    [rectype_daily] => 2
    [rectype_dontrec] => 8
    [rectype_finddaily] => 9
    [rectype_findone] => 6
    [rectype_findweekly] => 10
    [rectype_once] => 1
    [rectype_override] => 7
    [rectype_weekly] => 5
    [root] => /mythweb/
    [root_url] => http://dhcp-198:80/mythweb/
    [searchtype_keyword] => 3
    [searchtype_manual] => 5
    [searchtype_people] => 4
    [searchtype_power] => 1
    [searchtype_title] => 2
    [skin] => default
    [skin_dir] => skins/default
    [skin_img_url] => /mythweb/skins/default/img/
    [skin_url] => /mythweb/skins/default/
    [star_character] => &diams;
    [tb] => 1099511627776
    [timeslot_blocks] => 3
    [timeslot_size] => 300
    [timeslotbar_skip] => 20
    [tmpl] => default
    [tmpl_dir] => modules/tv/tmpl/default/
)

This is with mythweb-0.22-0.2.svn.r20668.fc11.x86_64

Change History (2)

comment:1 Changed 11 years ago by anonymous

I'm sure it's not. :)

comment:2 Changed 11 years ago by xris

Resolution: fixed
Status: newclosed

(In [21058]) prettier error/backtrace page, and an informative message when MythWeb is run without any TV info having been configured. Closes #6777

Note: See TracTickets for help on using tickets.