Ticket #13097: mythsqlissue.txt

File mythsqlissue.txt, 10.0 KB (added by ctd.mh3@…, 2 years ago)

SQL Error When Selecting view Listings

Line 
1errornum:  256
2  error type:  User Error
3error 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]!!
4    filename:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
5  error line:  98
6
7==========================================================================
8
9Backtrace:
10
11    file:  /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
12    line:  98
13   class: 
14function:  trigger_error
15    type: 
16    args:  Array
17(
18    [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]
19    [1] => 256
20)
21
22    file:  /usr/share/mythtv/mythweb/classes/Database.php
23    line:  261
24   class:  Database_Query_mysqlicompat
25function:  execute
26    type:  ->
27    args:  Array
28(
29    [0] => Array ( )
30)
31
32    file:  /usr/share/mythtv/mythweb/modules/tv/includes/programs.php
33    line:  140
34   class:  Database
35function:  query
36    type:  ->
37    args:  Array
38(
39    [0] => SELECT program.*,
40                         UNIX_TIMESTAMP(program.starttime) AS starttime_unix,
41                         UNIX_TIMESTAMP(program.endtime) AS endtime_unix,
42                         IFNULL(programrating.system, "") AS rater,
43                         IFNULL(programrating.rating, "") AS rating,
44                         channel.callsign,
45                         channel.channum
46                  FROM program USE INDEX (id_start_end)
47                       LEFT JOIN programrating USING (chanid, starttime)
48                       LEFT JOIN channel ON program.chanid = channel.chanid
49                       LEFT JOIN credits ON (program.chanid = credits.chanid AND program.starttime = credits.starttime)
50                       LEFT JOIN people ON (credits.person = people.person)
51                 WHERE program.chanid='1002' AND (program.endtime > FROM_UNIXTIME('1502410500') AND program.starttime < FROM_UNIXTIME('1502421300') AND program.starttime != program.endtime)
52GROUP BY channel.callsign, program.chanid, program.starttime ORDER BY program.starttime
53)
54
55    file:  /usr/share/mythtv/mythweb/modules/tv/classes/Channel.php
56    line:  154
57   class: 
58function:  load_all_program_data
59    type: 
60    args:  Array
61(
62    [0] => 1502410500
63    [1] => 1502421300
64    [2] => 1002
65)
66
67    file:  /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list_data.php
68    line:  102
69   class:  Channel
70function:  display_programs
71    type:  ->
72    args:  Array
73(
74    [0] => 1502410500
75    [1] => 1502421300
76)
77
78    file:  /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list.php
79    line:  78
80   class: 
81function:  require_once
82    type: 
83    args:  Array
84(
85    [0] => /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list_data.php
86)
87
88    file:  /usr/share/mythtv/mythweb/modules/tv/list.php
89    line:  45
90   class: 
91function:  require_once
92    type: 
93    args:  Array
94(
95    [0] => /usr/share/mythtv/mythweb/modules/tv/tmpl/default/list.php
96)
97
98    file:  /usr/share/mythtv/mythweb/modules/tv/handler.php
99    line:  82
100   class: 
101function:  require_once
102    type: 
103    args:  Array
104(
105    [0] => /usr/share/mythtv/mythweb/modules/tv/list.php
106)
107
108    file:  /usr/share/mythtv/mythweb/mythweb.php
109    line:  35
110   class: 
111function:  require_once
112    type: 
113    args:  Array
114(
115    [0] => /usr/share/mythtv/mythweb/modules/tv/handler.php
116)
117
118
119==========================================================================
120
121$_SESSION: Array
122(
123    [cache_engine] => Cache_Null
124    [stream] => Array
125        (
126            [include_user_and_password] =>
127        )
128
129    [prefer_channum] => 1
130    [recorded_pixmaps] => 1
131    [guide_favonly] =>
132    [timeslot_size] => 300
133    [num_time_slots] => 36
134    [timeslot_blocks] => 3
135    [timeslotbar_skip] => 20
136    [max_stars] => 4
137    [star_character] => &#9733;
138    [show_popup_info] => 1
139    [show_channel_icons] => 1
140    [sortby_channum] => 1
141    [recorded_paging] =>
142    [genre_colors] => 1
143    [show_video_covers] => 1
144    [settings] => Array
145        (
146            [screens] => Array
147                (
148                    [tv] => Array
149                        (
150                            [upcoming recordings] => Array
151                                (
152                                    [title] => on
153                                    [channel] => on
154                                    [record date] => on
155                                    [length] => on
156                                )
157
158                        )
159
160                )
161
162        )
163
164    [backend] => Array
165        (
166            [127.0.0.1] => Array
167                (
168                    [proto_version] => Array
169                        (
170                            [last_check_version] => 88
171                            [last_check_time] => 1502406153
172                        )
173
174                )
175
176            [timezone] => Array
177                (
178                    [value] => America/Chicago
179                    [last_check_time] => 1502406153
180                )
181
182        )
183
184    [language] => English
185    [date_statusbar] => %a %b %e, %Y, %I:%M %p
186    [date_scheduled] => %a %b %e, %Y (%I:%M %p)
187    [date_scheduled_popup] => %a %b %e, %Y
188    [date_recorded] => %a %b %e, %Y (%I:%M %p)
189    [date_search] => %a %b %e, %Y, %I:%M %p
190    [date_listing_key] => %a %b %e, %Y, %I:%M %p
191    [date_listing_jump] => %a %b %e, %Y
192    [date_channel_jump] => %a %b %e, %Y
193    [date_job_status] => %a %b %e, %Y, %I:%M %p
194    [time_format] => %I:%M %p
195    [tv] => Array
196        (
197            [last] => Array
198                (
199                    [0] => list
200                )
201
202        )
203
204    [recorded_title] =>
205    [recorded_recgroup] =>
206    [recorded_sortby] => Array
207        (
208            [0] => Array
209                (
210                    [field] => airdate
211                    [reverse] => 1
212                )
213
214            [1] => Array
215                (
216                    [field] => title
217                    [reverse] =>
218                )
219
220        )
221
222    [list_time] => 1502410500
223    [scheduled_recordings] => Array
224        (
225            [disp_scheduled] => 1
226            [disp_duplicates] =>
227            [disp_deactivated] =>
228            [disp_conflicts] => 1
229        )
230
231    [scheduled_sortby] => Array
232        (
233            [0] => Array
234                (
235                    [field] => airdate
236                    [reverse] =>
237                )
238
239            [1] => Array
240                (
241                    [field] => title
242                    [reverse] =>
243                )
244
245        )
246
247)
248
249==========================================================================
250
251$_SERVER: Array
252(
253    [REDIRECT_STATUS] => 200
254    [HTTP_HOST] => 192.168.1.200
255    [HTTP_COOKIE] => mythweb_id=jgk5ceeltsaes8g7tm2tr5sgg6
256    [HTTP_CONNECTION] => keep-alive
257    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
258    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
259    [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
260    [HTTP_REFERER] => http://192.168.1.200/mythweb/
261    [HTTP_ACCEPT_LANGUAGE] => en-us
262    [HTTP_ACCEPT_ENCODING] => gzip, deflate
263    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
264    [SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at 192.168.1.200 Port 80</address>
265
266    [SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
267    [SERVER_NAME] => 192.168.1.200
268    [SERVER_ADDR] => 192.168.1.200
269    [SERVER_PORT] => 80
270    [REMOTE_ADDR] => 192.168.1.45
271    [DOCUMENT_ROOT] => /var/www/html
272    [REQUEST_SCHEME] => http
273    [CONTEXT_PREFIX] =>
274    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
275    [SERVER_ADMIN] => webmaster@localhost
276    [SCRIPT_FILENAME] => /var/www/html/mythweb/mythweb.php
277    [REMOTE_PORT] => 58474
278    [REDIRECT_URL] => /mythweb/tv/list
279    [GATEWAY_INTERFACE] => CGI/1.1
280    [SERVER_PROTOCOL] => HTTP/1.1
281    [REQUEST_METHOD] => GET
282    [QUERY_STRING] =>
283    [REQUEST_URI] => /tv/list
284    [SCRIPT_NAME] => /mythweb/mythweb.php
285    [PATH_INFO] => /tv/list
286    [PATH_TRANSLATED] => /var/www/html/tv/list
287    [PHP_SELF] => /mythweb/mythweb.php/tv/list
288    [REQUEST_TIME_FLOAT] => 1502410630.351
289    [REQUEST_TIME] => 1502410630
290    [STATUS] => 200
291    [URL] => /mythweb/tv/list
292    [HTTP_X_FORWARDED_PROTO] =>
293    [HTTPS] =>
294    [HTTP_PORT] => 80
295)
296
297==========================================================================
298
299$constant_list["user"]: Array
300(
301    [ERROR] => 512
302    [E_ASSERT_ERROR] => 4096
303    [FATAL] => 256
304    [PHP_MIN_VERSION] => 5.3
305    [WARNING] => 1024
306    [WebDBSchemaVer] => 4
307    [dupsin_all] => 15
308    [dupsin_newepisodes] => 16
309    [dupsin_oldrecorded] => 2
310    [dupsin_recorded] => 1
311    [error_email] =>
312    [gb] => 1073741824
313    [hostname] => asusMythTV
314    [http_host] => 192.168.1.200
315    [kb] => 1024
316    [max_stars] => 4
317    [mb] => 1048576
318    [module] => tv
319    [modules_path] => /usr/share/mythtv/mythweb/modules
320    [num_time_slots] => 36
321    [prefer_channum] => 1
322    [rectype_always] => 4
323    [rectype_daily] => 2
324    [rectype_dontrec] => 8
325    [rectype_findone] => 6
326    [rectype_once] => 1
327    [rectype_override] => 7
328    [rectype_template] => 11
329    [rectype_weekly] => 5
330    [root] => /mythweb/
331    [root_auth_url] => http://192.168.1.200/mythweb/
332    [root_url] => http://192.168.1.200/mythweb/
333    [searchtype_keyword] => 3
334    [searchtype_manual] => 5
335    [searchtype_people] => 4
336    [searchtype_power] => 1
337    [searchtype_title] => 2
338    [skin] => default
339    [skin_img_url] => http://192.168.1.200/mythweb/skins/default/img/
340    [skin_url] => http://192.168.1.200/mythweb/skins/default/
341    [star_character] => &#9733;
342    [stream_url] => http://192.168.1.200:80//mythweb/
343    [tb] => 1099511627776
344    [timeslot_blocks] => 3
345    [timeslot_size] => 300
346    [timeslotbar_skip] => 20
347    [tmpl] => default
348    [tmpl_dir] => modules/tv/tmpl/default/
349)