Opened 7 years ago

Closed 7 years ago

#12935 closed Bug Report - Crash (Duplicate)

mythweb - http://localhost/mythweb/tv/list (similar to Ticket #12934)

Reported by: mythtv@… Owned by: Stuart Auchterlonie
Priority: critical Milestone: 0.28.1
Component: Plugin - MythWeb Version: 0.28.0
Severity: high Keywords: mythweb tv list
Cc: Ticket locked: no

Description

datetime: 2016-11-23 12:54:12 (CET) errornum: 256

error type: User Error

error string: !NoTrans: SQL Error: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mythconverg.program.endtime' 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 #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mythconverg.program.endtime' 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='1002' AND (program.endtime > FROM_UNIXTIME('1479901500') AND program.starttime < FROM_UNIXTIME('1479912300') AND program.starttime != program.endtime)

GROUP BY channel.callsign, program.chanid, program.starttime ORDER BY program.starttime )

file: /usr/share/mythtv/mythweb/modules/tv/classes/Channel.php line: 154

class:

function: load_all_program_data

type: args: Array

(

[0] => 1479901500 [1] => 1479912300 [2] => 1002

)

file: /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list_data.php line: 102

class: Channel

function: display_programs

type: -> args: Array

(

[0] => 1479901500 [1] => 1479912300

)

file: /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list.php line: 78

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list_data.php

)

file: /usr/share/mythtv/mythweb/modules/tv/list.php line: 45

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list.php

)

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/list.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] => &#9733; [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

(

[192.168.51.5] => Array

(

[proto_version] => Array

(

[last_check_version] => 88 [last_check_time] => 1479902023

)

)

[timezone] => Array

(

[value] => Europe/Prague? [last_check_time] => 1479847406

)

)

[language] => Czech [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] => list

)

)

[scheduled_recordings] => Array

(

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

)

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

(

[0] => Array

(

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

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[schedules_sortby] => Array

(

[0] => Array

(

[field] => airdate [reverse] =>

)

[1] => Array

(

[field] => title [reverse] =>

)

)

[list_time] => 1479901500

)

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

$_SERVER: Array (

[REDIRECT_STATUS] => 200 [HTTP_HOST] => localhost [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-GB,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_REFERER] => http://localhost/mythweb/tv/list [HTTP_COOKIE] => stay_login=1; mythweb_id=igieskikti4a2kfjat6ar6jbi2; id=EwLawEfGvGk4AC2K3N01050 [HTTP_DNT] => 1 [HTTP_CONNECTION] => keep-alive [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at localhost Port 80</address>

[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu) [SERVER_NAME] => localhost [SERVER_ADDR] => 192.168.51.5 [SERVER_PORT] => 80 [REMOTE_ADDR] => 213.175.37.10 [DOCUMENT_ROOT] => /var/www/html [REQUEST_SCHEME] => http [CONTEXT_PREFIX] => [CONTEXT_DOCUMENT_ROOT] => /var/www/html [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/html/mythweb/mythweb.php [REMOTE_PORT] => 24943 [REMOTE_USER] => scaleo [AUTH_TYPE] => Digest [REDIRECT_URL] => /mythweb/tv [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /tv [SCRIPT_NAME] => /mythweb/mythweb.php [PATH_INFO] => /tv [PATH_TRANSLATED] => /var/www/html/tv [PHP_SELF] => /mythweb/mythweb.php/tv [PHP_AUTH_USER] => scaleo [PHP_AUTH_DIGEST] => username="scaleo", realm="MythTV", nonce="djy3ifZBBQA=4fb324b9aad3a45b26c431f9ece26be99025dc3e", uri="/mythweb/tv", algorithm=MD5, response="48310d9e305a36071bb2e6a0c31030d7", qop=auth, nc=00000090, cnonce="a4cb1ac152578e5b" [REQUEST_TIME_FLOAT] => 1479902052,173 [REQUEST_TIME] => 1479902052 [STATUS] => 200 [URL] => /mythweb/tv [HTTP_X_FORWARDED_PROTO] => [HTTPS] => [HTTP_PORT] => 80

)

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

$constant_listuser?: 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] => scaleomce [http_host] => localhost [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://localhost/mythweb/ [root_url] => http://localhost/mythweb/ [searchtype_keyword] => 3 [searchtype_manual] => 5 [searchtype_people] => 4 [searchtype_power] => 1 [searchtype_title] => 2 [skin] => default [skin_img_url] => http://localhost/mythweb/skins/default/img/ [skin_url] => http://localhost/mythweb/skins/default/ [star_character] => &#9733; [stream_url] => http://localhost:80//mythweb/ [tb] => 1099511627776 [timeslot_blocks] => 3 [timeslot_size] => 300 [timeslotbar_skip] => 20 [tmpl] => default [tmpl_dir] => modules/tv/tmpl/default/

)

Change History (2)

comment:1 Changed 7 years ago by stuartm

Component: MythTV - Web FrontendPlugin - MythWeb
Owner: changed from stuartm to Stuart Auchterlonie

Please set the component to "Plugins - Mythweb" for future mythweb tickets. The WebFrontend? is not the same thing (it's the replacement for mythweb).

comment:2 Changed 7 years ago by Stuart Auchterlonie

Milestone: unknown0.28.1
Resolution: Duplicate
Status: newclosed

This was resolved by #12811, please update your packages.

Note: See TracTickets for help on using tickets.