[mythtv-commits] Ticket #12834: Fatal error when attempting any search

MythTV noreply at mythtv.org
Thu Jul 28 02:25:40 UTC 2016


#12834: Fatal error when attempting any search
--------------------------------------+-------------------------
     Reporter:  matt_lapine@…         |      Owner:
         Type:  Bug Report - General  |     Status:  new
     Priority:  minor                 |  Milestone:  unknown
    Component:  MythTV - General      |    Version:  Unspecified
     Severity:  medium                |   Keywords:
Ticket locked:  0                     |
--------------------------------------+-------------------------
 datetime:  2016-07-27 19:24:11 (PDT)
     errornum:  256
   error type:  User Error
 error string:  !!NoTrans: SQL Error: Expression #39 of SELECT list is not
 in GROUP BY clause and contains nonaggregated column
 'mythconverg.programrating.system' which is not functionally dependent on
 columns in GROUP BY clause; this is incompatible with
 sql_mode=only_full_group_by [#1055]!!
     filename:
 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
   error line:  98

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

 Backtrace:

     file:
 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
     line:  98
    class:
 function:  trigger_error
     type:
     args:  Array
 (
     [0] => SQL Error: Expression #39 of SELECT list is not in GROUP BY
 clause and contains nonaggregated column
 'mythconverg.programrating.system' which is not functionally dependent on
 columns in GROUP BY clause; this is incompatible with
 sql_mode=only_full_group_by [#1055]
     [1] => 256
 )

     file:  /usr/share/mythtv/mythweb/classes/Database.php
     line:  261
    class:  Database_Query_mysqlicompat
 function:  execute
     type:  ->
     args:  Array
 (
     [0] => Array ( )
 )

     file:  /usr/share/mythtv/mythweb/modules/tv/includes/programs.php
     line:  140
    class:  Database
 function:  query
     type:  ->
     args:  Array
 (
     [0] => SELECT program.*,
                          UNIX_TIMESTAMP(program.starttime) AS
 starttime_unix,
                          UNIX_TIMESTAMP(program.endtime) AS endtime_unix,
                          IFNULL(programrating.system, "") AS rater,
                          IFNULL(programrating.rating, "") AS rating,
                          channel.callsign,
                          channel.channum
                   FROM program USE INDEX (id_start_end)
                        LEFT JOIN programrating USING (chanid, starttime)
                        LEFT JOIN channel ON program.chanid =
 channel.chanid
                        LEFT JOIN credits ON (program.chanid =
 credits.chanid AND program.starttime = credits.starttime)
                        LEFT JOIN people ON (credits.person =
 people.person)
                  WHERE program.chanid IN
 (1041,1042,1043,1051,1052,1071,1072,1073,1091,1093,1111,1112,1141,1142,1143,1161,1131,1221,1222,1223,1281,1282,1283,1284,1331,1332,1333,1334,1335,1336,1337,1441,1442,1443,1444,1445,1446,1511,1512,1421)
 AND (program.endtime > FROM_UNIXTIME('1469672651') AND program.starttime <
 FROM_UNIXTIME('1472351051') AND program.starttime != program.endtime) AND
 (program.manualid = 0 AND (   (program.previouslyshown = 0     AND
 (program.category = "Special"       OR program.programid LIKE "EP%0001"
 OR (program.category_type = "series"         AND program.subtitle =
 "Pilot"))     AND DAYOFYEAR(program.originalairdate) =
 DAYOFYEAR(program.starttime))   OR (program.category_type="movie"     AND
 program.stars > 0.5     AND program.airdate >= YEAR(NOW()) - 3) ))
 GROUP BY channel.callsign, program.chanid, program.starttime ORDER BY
 program.starttime
 )

     file:  /usr/share/mythtv/mythweb/modules/tv/search.php
     line:  333
    class:
 function:  load_all_program_data
     type:
     args:  Array
 (
     [0] => 1469672651
     [1] => 1472351051
     [2] =>
     [3] =>
     [4] => (program.manualid = 0 AND (   (program.previouslyshown = 0
 AND (program.category = "Special"       OR program.programid LIKE
 "EP%0001"       OR (program.category_type = "series"         AND
 program.subtitle = "Pilot"))     AND DAYOFYEAR(program.originalairdate) =
 DAYOFYEAR(program.starttime))   OR (program.category_type="movie"     AND
 program.stars > 0.5     AND program.airdate >= YEAR(NOW()) - 3) ))
     [5] =>
 )

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

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


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

 $_SESSION: Array
 (
     [cache_engine] => Cache_Null
     [stream] => Array
         (
             [include_user_and_password] =>
         )

     [prefer_channum] => 1
     [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
     [recorded_paging] =>
     [genre_colors] => 1
     [show_video_covers] => 1
     [settings] => Array
         (
             [screens] => Array
                 (
                     [tv] => Array
                         (
                             [upcoming recordings] => Array
                                 (
                                     [title] => on
                                     [channel] => on
                                     [record date] => on
                                     [length] => on
                                 )

                         )

                 )

         )

     [backend] => Array
         (
             [10.56.58.127] => Array
                 (
                     [proto_version] => Array
                         (
                             [last_check_version] => 88
                             [last_check_time] => 1469672611
                         )

                 )

             [timezone] => Array
                 (
                     [value] => America/Los_Angeles
                     [last_check_time] => 1469672611
                 )

         )

     [language] => English
     [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
     [tv] => Array
         (
             [last] => Array
                 (
                     [0] => search
                     [1] => canned:New Titles, Premieres
                 )

         )

     [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] =>
                 )

         )

     [search] => Array
         (
             [type] => q
             [s] => canned:New Titles, Premieres
             [ctype] => Array
                 (
                     [0] => movie
                     [1] => series
                     [2] => sports
                     [3] => tvshow
                 )

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

             [af] => Array
                 (
                     [0] => Array
                         (
                             [0] => title
                         )

                 )

             [aj] => Array
                 (
                     [0] => AND
                 )

         )

 )

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

 $_SERVER: Array
 (
     [REDIRECT_STATUS] => 200
     [HTTP_HOST] => 10.56.58.127
     [HTTP_CONNECTION] => keep-alive
     [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
     [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; WOW64)
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
     [HTTP_ACCEPT] =>
 text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
     [HTTP_REFERER] => http://10.56.58.127/mythweb/tv/searches
     [HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch
     [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8
     [HTTP_COOKIE] => mythweb_id=o6v5oci312ucgana3tkbq6p9l2
     [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
     [SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at
 10.56.58.127 Port 80</address>

     [SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
     [SERVER_NAME] => 10.56.58.127
     [SERVER_ADDR] => 10.56.58.127
     [SERVER_PORT] => 80
     [REMOTE_ADDR] => 10.56.58.169
     [DOCUMENT_ROOT] => /var/www/html
     [REQUEST_SCHEME] => http
     [CONTEXT_PREFIX] =>
     [CONTEXT_DOCUMENT_ROOT] => /var/www/html
     [SERVER_ADMIN] => webmaster at localhost
     [SCRIPT_FILENAME] => /var/www/html/mythweb/mythweb.php
     [REMOTE_PORT] => 52604
     [REDIRECT_URL] => /mythweb/tv/search/canned:New Titles, Premieres
     [GATEWAY_INTERFACE] => CGI/1.1
     [SERVER_PROTOCOL] => HTTP/1.1
     [REQUEST_METHOD] => GET
     [QUERY_STRING] =>
     [REQUEST_URI] => /tv/search/canned%3ANew%20Titles%2C%20Premieres
     [SCRIPT_NAME] => /mythweb/mythweb.php
     [PATH_INFO] => /tv/search/canned:New Titles, Premieres
     [PATH_TRANSLATED] => /var/www/html/tv/search/canned:New Titles,
 Premieres
     [PHP_SELF] => /mythweb/mythweb.php/tv/search/canned:New Titles,
 Premieres
     [REQUEST_TIME_FLOAT] => 1469672650.763
     [REQUEST_TIME] => 1469672650
     [STATUS] => 200
     [URL] => /mythweb/tv/search/canned:New Titles, Premieres
     [HTTP_X_FORWARDED_PROTO] =>
     [HTTPS] =>
     [HTTP_PORT] => 80
 )

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

 $constant_list["user"]: Array
 (
     [ERROR] => 512
     [E_ASSERT_ERROR] => 4096
     [FATAL] => 256
     [PHP_MIN_VERSION] => 5.3
     [WARNING] => 1024
     [WebDBSchemaVer] => 4
     [dupsin_all] => 15
     [dupsin_newepisodes] => 16
     [dupsin_oldrecorded] => 2
     [dupsin_recorded] => 1
     [error_email] =>
     [gb] => 1073741824
     [hostname] => vcmedia
     [http_host] => 10.56.58.127
     [kb] => 1024
     [max_stars] => 4
     [mb] => 1048576
     [module] => tv
     [modules_path] => /usr/share/mythtv/mythweb/modules
     [num_time_slots] => 36
     [prefer_channum] => 1
     [rectype_always] => 4
     [rectype_daily] => 2
     [rectype_dontrec] => 8
     [rectype_findone] => 6
     [rectype_once] => 1
     [rectype_override] => 7
     [rectype_template] => 11
     [rectype_weekly] => 5
     [root] => /mythweb/
     [root_auth_url] => http://10.56.58.127/mythweb/
     [root_url] => http://10.56.58.127/mythweb/
     [searchtype_keyword] => 3
     [searchtype_manual] => 5
     [searchtype_people] => 4
     [searchtype_power] => 1
     [searchtype_title] => 2
     [skin] => default
     [skin_img_url] => http://10.56.58.127/mythweb/skins/default/img/
     [skin_url] => http://10.56.58.127/mythweb/skins/default/
     [star_character] => ★
     [stream_url] => http://10.56.58.127:80//mythweb/
     [tb] => 1099511627776
     [timeslot_blocks] => 3
     [timeslot_size] => 300
     [timeslotbar_skip] => 20
     [tmpl] => default
     [tmpl_dir] => modules/tv/tmpl/default/
 )

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12834>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list