﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
12930	Deleting unused TV channels - SQL problems generally	packhamc@…		"Reinstalled mysql database twice, still having problems, this is just one of the symptoms.

    datetime:  2016-11-21 01:33:22 (AEDT)
    errornum:  256
  error type:  User Error
error string:  !!NoTrans: SQL Error: Incorrect integer value: '' for column 'finetune' at row 1 [#1366]!!
    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: Incorrect integer value: '' for column 'finetune' at row 1 [#1366]
    [1] => 256
)

    file:  /usr/share/mythtv/mythweb/classes/Database.php
    line:  261
   class:  Database_Query_mysqlicompat
function:  execute
    type:  ->
    args:  Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [0] => 
                    [1] => 11
                    [2] => 
                    [3] => 
                    [4] => 32768
                    [5] => 32768
                    [6] => 32768
                    [7] => 32768
                    [8] => 0
                    [9] => -1
                    [10] => 0
                    [11] => 1
                    [12] => 10
                    [13] => TEN Digital
                    [14] => TEN Digital
                )

            [1] => 1010
        )

)

    file:  /usr/share/mythtv/mythweb/modules/tv/set_channels.php
    line:  59
   class:  Database
function:  query
    type:  ->
    args:  Array
(
    [0] => UPDATE channel SET xmltvid       = ?,
                                             freqid        = ?,
                                             finetune      = ?,
                                             videofilters  = ?,
                                             brightness    = ?,
                                             contrast      = ?,
                                             colour        = ?,
                                             hue           = ?,
                                             recpriority   = ?,
                                             commmethod    = ?,
                                             useonairguide = ?,
                                             visible       = ?,channum=?,callsign=?,name=? WHERE chanid=?
    [1] => Array
        (
            [0] => 
            [1] => 11
            [2] => 
            [3] => 
            [4] => 32768
            [5] => 32768
            [6] => 32768
            [7] => 32768
            [8] => 0
            [9] => -1
            [10] => 0
            [11] => 1
            [12] => 10
            [13] => TEN Digital
            [14] => TEN Digital
        )

    [2] => 1010
)

    file:  /usr/share/mythtv/mythweb/modules/settings/handler.php
    line:  54
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/modules/tv/set_channels.php
)

    file:  /usr/share/mythtv/mythweb/mythweb.php
    line:  35
   class:  
function:  require_once
    type:  
    args:  Array
(
    [0] => /usr/share/mythtv/mythweb/modules/settings/handler.php
)


==========================================================================

$_POST: Array
(
    [channel] => Array
        (
            [1001] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 1
                    [callsign] => ONE
                    [name] => ONE
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

            [1009] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 9
                    [callsign] => Channel 9 Melbourne
                    [name] => Channel 9 Melbourne
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

            [1010] => Array
                (
                    [xmltvid] => 
                    [channum] => 10
                    [callsign] => TEN Digital
                    [name] => TEN Digital
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1011] => Array
                (
                    [xmltvid] => 
                    [channum] => 11
                    [callsign] => ELEVEN
                    [name] => ELEVEN
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1012] => Array
                (
                    [xmltvid] => 
                    [channum] => 12
                    [callsign] => ONE
                    [name] => ONE
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1013] => Array
                (
                    [xmltvid] => 
                    [channum] => 13
                    [callsign] => TEN HD
                    [name] => TEN HD
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1014] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 14
                    [callsign] => TVSN
                    [name] => TVSN
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

            [1015] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 15
                    [callsign] => SpreeTV
                    [name] => SpreeTV
                    [freqid] => 11
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

            [1021] => Array
                (
                    [xmltvid] => 
                    [channum] => 21
                    [callsign] => ABC
                    [name] => ABC
                    [freqid] => 12
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1022] => Array
                (
                    [xmltvid] => 
                    [channum] => 22
                    [callsign] => ABC2/KIDS
                    [name] => ABC2/KIDS
                    [freqid] => 12
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1023] => Array
                (
                    [xmltvid] => 
                    [channum] => 23
                    [callsign] => ABC ME
                    [name] => ABC ME
                    [freqid] => 12
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1024] => Array
                (
                    [xmltvid] => 
                    [channum] => 24
                    [callsign] => ABC News 24
                    [name] => ABC News 24
                    [freqid] => 12
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1030] => Array
                (
                    [xmltvid] => 
                    [channum] => 30
                    [callsign] => SBS HD
                    [name] => SBS HD
                    [freqid] => 6
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1032] => Array
                (
                    [xmltvid] => 
                    [channum] => 32
                    [callsign] => SBS VICELAND
                    [name] => SBS VICELAND
                    [freqid] => 6
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1033] => Array
                (
                    [xmltvid] => 
                    [channum] => 33
                    [callsign] => Food Network
                    [name] => Food Network
                    [freqid] => 6
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1034] => Array
                (
                    [xmltvid] => 
                    [channum] => 34
                    [callsign] => NITV
                    [name] => NITV
                    [freqid] => 6
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1044] => Array
                (
                    [xmltvid] => 
                    [channum] => 44
                    [callsign] => C31
                    [name] => C31
                    [freqid] => 32
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1070] => Array
                (
                    [xmltvid] => 
                    [channum] => 70
                    [callsign] => 7HD Melbourne
                    [name] => 7HD Melbourne
                    [freqid] => 5
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1071] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 71
                    [callsign] => 7 Melbourne
                    [name] => 7 Melbourne
                    [freqid] => 5
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1072] => Array
                (
                    [xmltvid] => 
                    [channum] => 72
                    [callsign] => 7TWO Melbourne
                    [name] => 7TWO Melbourne
                    [freqid] => 5
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1073] => Array
                (
                    [xmltvid] => 
                    [channum] => 73
                    [callsign] => 7mate Melbourne
                    [name] => 7mate Melbourne
                    [freqid] => 5
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                    [useonairguide] => 1
                )

            [1076] => Array
                (
                    [xmltvid] => 
                    [channum] => 76
                    [callsign] => 7flix Melbourne
                    [name] => 7flix Melbourne
                    [freqid] => 5
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1090] => Array
                (
                    [xmltvid] => 
                    [channum] => 90
                    [callsign] => 9HD Melbourne
                    [name] => 9HD Melbourne
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1091] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 91
                    [callsign] => Channel 9 Melbourne
                    [name] => Channel 9 Melbourne
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1092] => Array
                (
                    [xmltvid] => 
                    [channum] => 92
                    [callsign] => 9Gem
                    [name] => 9Gem
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1093] => Array
                (
                    [xmltvid] => 
                    [channum] => 93
                    [callsign] => 9Go!
                    [name] => 9Go!
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1094] => Array
                (
                    [xmltvid] => 
                    [channum] => 94
                    [callsign] => 9Life
                    [name] => 9Life
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                    [visible] => 1
                )

            [1095] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 95
                    [callsign] => Extra
                    [name] => Extra
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

            [1099] => Array
                (
                    [delete] => true
                    [xmltvid] => 
                    [channum] => 99
                    [callsign] => 9Go!
                    [name] => 9Go!
                    [freqid] => 7
                    [finetune] => 
                    [videofilters] => 
                    [brightness] => 32768
                    [contrast] => 32768
                    [colour] => 32768
                    [hue] => 32768
                    [recpriority] => 0
                )

        )

    [save] => Save
)

==========================================================================

$_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
                                )

                        )

                )

            [last] => Array
                (
                    [0] => tv
                    [1] => channels
                )

            [host] => 
        )

    [backend] => Array
        (
            [timezone] => Array
                (
                    [value] => Australia/Melbourne
                    [last_check_time] => 1479652133
                )

            [192.168.0.52] => Array
                (
                    [proto_version] => Array
                        (
                            [last_check_version] => 88
                            [last_check_time] => 1479652222
                        )

                )

        )

    [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] => recorded
                )

        )

    [list_time] => 1479652200
    [schedules_sortby] => Array
        (
            [0] => Array
                (
                    [field] => airdate
                    [reverse] => 
                )

            [1] => Array
                (
                    [field] => title
                    [reverse] => 
                )

        )

    [scheduled_recordings] => Array
        (
            [disp_scheduled] => 1
            [disp_duplicates] => 
            [disp_deactivated] => 
            [disp_conflicts] => 1
        )

    [] => Array ( )
    [recorded_sortby] => Array
        (
            [0] => Array
                (
                    [field] => airdate
                    [reverse] => 1
                )

            [1] => Array
                (
                    [field] => title
                    [reverse] => 
                )

        )

)

==========================================================================

$_SERVER: Array
(
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => 192.168.0.52
    [HTTP_CONNECTION] => keep-alive
    [CONTENT_LENGTH] => 13609
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_ORIGIN] => http://192.168.0.52
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_DNT] => 1
    [HTTP_REFERER] => http://192.168.0.52/mythweb/settings/tv/channels
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8
    [HTTP_COOKIE] => mythweb_id=tnr14p521vt2m7kurcb9lat6h2
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at 192.168.0.52 Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
    [SERVER_NAME] => 192.168.0.52
    [SERVER_ADDR] => 192.168.0.52
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 192.168.0.32
    [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] => 61022
    [REDIRECT_URL] => /mythweb/settings/tv/channels
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => POST
    [QUERY_STRING] => 
    [REQUEST_URI] => /settings/tv/channels
    [SCRIPT_NAME] => /mythweb/mythweb.php
    [PATH_INFO] => /settings/tv/channels
    [PATH_TRANSLATED] => /var/www/html/settings/tv/channels
    [PHP_SELF] => /mythweb/mythweb.php/settings/tv/channels
    [REQUEST_TIME_FLOAT] => 1479652402.693
    [REQUEST_TIME] => 1479652402
    [STATUS] => 200
    [URL] => /mythweb/settings/tv/channels
    [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
    [error_email] => 
    [form_action] => http://192.168.0.52/mythweb/settings/tv/channels
    [gb] => 1073741824
    [hostname] => ubuntu
    [http_host] => 192.168.0.52
    [kb] => 1024
    [max_stars] => 4
    [mb] => 1048576
    [module] => settings
    [modules_path] => /usr/share/mythtv/mythweb/modules
    [num_time_slots] => 36
    [prefer_channum] => 1
    [root] => /mythweb/
    [root_auth_url] => http://192.168.0.52/mythweb/
    [root_url] => http://192.168.0.52/mythweb/
    [skin] => default
    [skin_img_url] => http://192.168.0.52/mythweb/skins/default/img/
    [skin_url] => http://192.168.0.52/mythweb/skins/default/
    [star_character] => &#9733;
    [stream_url] => http://192.168.0.52:80//mythweb/
    [tb] => 1099511627776
    [timeslot_blocks] => 3
    [timeslot_size] => 300
    [timeslotbar_skip] => 20
    [tmpl] => default
    [tmpl_dir] => modules/settings/tmpl/default/
)


"	Bug Report - General	closed	major	0.28.1	MythTV - General	0.28.0	high	Duplicate	SQL problems		0
