Hey guys, its been awhile since I've posted here. Well I found myself feeling a bit froggy and deciding to upgrade my 1.6 install to 1.8.1 for some of the new features and lots of bug fixes. Well, long of the short, I've got quite a few DB errors I'm being spammed with and unable to complete the upgrade from the /support/scp page.Followed the instructions here.http://osticket.com/wiki/Upgrade_and_MigrationOnly line that I was unable to confirm was(For versions 1.6 RC1-RC2 OnlyOnce you've overwritten the files, rename to (config.php is found in root osTicket directory).)I'm not fully sure if I was on RC1-RC2 or if I was beyond that (not sure if there was an RC3 or what). The config.php does not exist in my root osTicket folder. In its place was a file named ost_config.php. However the above documentation says it should be named "ostconfig.php"?Anyhow, I receive these following errors17 x DB Error #10542 x DB Error #1146DB Error #1054
Unknown column 'key' in 'field list'<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(138): osTicket->logDBError('DB Error #1054', '[SELECT id, `ke...')<br />
#1 (root)/include/class.config.php(46): db_query('SELECT id, `key...')<br />
#2 (root)/include/class.staff.php(70): Config->Config('staff.3')<br />
#3 (root)/include/class.staff.php(39): Staff->load('Klaus')<br />
#4 (root)/include/class.usersession.php(165): Staff->Staff('Klaus')<br />
#5 (root)/include/class.auth.php(396): StaffSession->__construct('Klaus')<br />
#6 (root)/include/class.auth.php(369): StaffAuthenticationBackend->validate('Klaus')<br />
#7 (root)/scp/staff.inc.php(60): StaffAuthenticationBackend:()<br />
#8 (root)/scp/admin.inc.php(16): require('/home4/haemon/p...')<br />
#9 (root)/scp/system.php(18): require('/home4/haemon/p...')<br />
#10 {main}
DB Error #1146
Table 'haemon_ostt1.ost_group_dept_access' doesn't exist<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(138): osTicket->logDBError('DB Error #1146', '[SELECT DISTINC...')<br />
#1 (root)/include/class.staff.php(232): db_query('SELECT DISTINCT...')<br />
#2 (root)/include/class.staff.php(246): Staff->getDepartments()<br />
#3 (root)/include/class.ticket.php(2025): Staff->getDepts()<br />
#4 (root)/include/class.staff.php(425): Ticket->getStaffStats(Object(StaffSession))<br />
#5 (root)/include/class.staff.php(431): Staff->getTicketsStats()<br />
#6 (root)/include/class.nav.php(117): Staff->getNumAssignedTickets()<br />
#7 (root)/include/class.nav.php(31): StaffNav->getSubMenus()<br />
#8 (root)/scp/staff.inc.php(126): StaffNav->StaffNav(Object(StaffSession))<br />
#9 (root)/scp/admin.inc.php(16): require('/home4/haemon/p...')<br />
#10 (root)/scp/logs.php(16): require('/home4/haemon/p...')<br />
#11 {main}--------------------------------------------------------------------------------------------------------------------------------------Not sure if this is a config file issue, but looks like one of the config files and the MYSQL DB aren't jiving with each other. I did run a script that I found via some searching for this particular issue for OSTicket upgrades that was suppose to correct another issue I had before this apparently.<?php// your connectionmysql_connect("localhost","Username","Password");mysql_select_db("DatabaseName");// convert code$res = mysql_query("SHOW TABLES");while ($row = mysql_fetch_array($res)){ foreach ($row as $key => $table) { mysql_query("ALTER TABLE " . $table . " CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci"); echo $key . " => " . $table . " CONVERTED<br />"; }}?>I ran it is a cron job with full admin privs and received an email verifying that it ran. Content-type: text/html
0 => ost_api_key CONVERTED<br />Tables_in_haemon_ostt1
=> ost_api_key CONVERTED<br />0 =>
ost_canned_attachment CONVERTED<br />Tables_in_haemon_ostt1
=> ost_canned_attachment CONVERTED<br />0 =>
ost_canned_response CONVERTED<br />Tables_in_haemon_ostt1
=> ost_canned_response CONVERTED<br />0 =>
ost_config CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_config CONVERTED<br />0 => ost_department
CONVERTED<br />Tables_in_haemon_ostt1 => ost_department
CONVERTED<br />0 => ost_email CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_email CONVERTED<br />0
=> ost_email_filter CONVERTED<br />Tables_in_haemon_ostt1
=> ost_email_filter CONVERTED<br />0 =>
ost_email_filter_rule CONVERTED<br />Tables_in_haemon_ostt1
=> ost_email_filter_rule CONVERTED<br />0 =>
ost_email_template CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_email_template CONVERTED<br />0 => ost_faq
CONVERTED<br />Tables_in_haemon_ostt1 => ost_faq
CONVERTED<br />0 =>
ost_faq_attachment CONVERTED<br />Tables_in_haemon_ostt1
=> ost_faq_attachment CONVERTED<br />0 =>
ost_faq_category CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_faq_category CONVERTED<br />0 => ost_faq_topic
CONVERTED<br />Tables_in_haemon_ostt1 => ost_faq_topic
CONVERTED<br />0 => ost_file CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_file CONVERTED<br />0
=> ost_groups CONVERTED<br />Tables_in_haemon_ostt1
=> ost_groups CONVERTED<br />0 => ost_help_topic
CONVERTED<br />Tables_in_haemon_ostt1 => ost_help_topic
CONVERTED<br />0 => ost_session CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_session CONVERTED<br />0
=> ost_sla CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_sla CONVERTED<br />0 => ost_staff CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_staff CONVERTED<br />0
=> ost_syslog CONVERTED<br />Tables_in_haemon_ostt1
=> ost_syslog CONVERTED<br />0 => ost_team
CONVERTED<br />Tables_in_haemon_ostt1 => ost_team CONVE
RTED<br />0 => ost_team_member CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_team_member CONVERTED<br
/>0 => ost_ticket CONVERTED<br />Tables_in_haemon_ostt1
=> ost_ticket CONVERTED<br />0 =>
ost_ticket_attachment CONVERTED<br />Tables_in_haemon_ostt1
=> ost_ticket_attachment CONVERTED<br />0 =>
ost_ticket_email_info CONVERTED<br />Tables_in_haemon_ostt1
=> ost_ticket_email_info CONVERTED<br />0 =>
ost_ticket_event CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_ticket_event CONVERTED<br />0 => ost_ticket_lock
CONVERTED<br />Tables_in_haemon_ostt1 => ost_ticket_lock
CONVERTED<br />0 => ost_ticket_message CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_ticket_message CONVERTED<br
/>0 => ost_ticket_note CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_ticket_note CONVERTED<br
/>0 => ost_ticket_priority CONVERTED<br
/>Tables_in_haemon_ostt1 => ost_ticket_priority
CONVERTED<br />0 => ost_ticket_response CONVERTED<br
/>Tables_in_haemo
n_ostt1 => ost_ticket_response CONVERTED<br />0 =>
ost_ticket_thread CONVERTED<br />Tables_in_haemon_ostt1 =>
ost_ticket_thread CONVERTED<br />0 => ost_timezone
CONVERTED<br />Tables_in_haemon_ostt1 => ost_timezone
CONVERTED<br />