We have recently upgraded to 1.17.2 and since then have been getting some DB Error #1146. I have pasted an extract from the logs below -
The actual full errors are as follows -
NUMBER ONE
[SELECT A1.* FROM osti_note
A1 WHERE A1.ext_id
= 'U37370' ORDER BY A1.sort
ASC, A1.created
ASC]
Table 'fireplac_osti1.osti_note' doesn't exist<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(207): osTicket->logDBError('DB Error #1146', '[SELECT A1.* FR...')<br />
#1 (root)/include/class.orm.php(3482): db_query('SELECT A1.* FRO...', true, true)<br />
#2 (root)/include/class.orm.php(3529): MySqlExecutor->execute()<br />
#3 (root)/include/class.orm.php(2010): MySqlExecutor->getArray()<br />
#4 (root)/include/class.orm.php(2054): ModelInstanceManager->{closure}()<br />
#5 (root)/include/class.orm.php(2033): CallbackSimpleIterator->next()<br />
#6 (root)/include/class.orm.php(2042): CallbackSimpleIterator->rewind()<br />
#7 (root)/include/class.orm.php(1713): CallbackSimpleIterator->valid()<br />
#8 (root)/include/class.orm.php(1723): CachedResultSet->fillTo(9223372036854775807)<br />
#9 (root)/include/class.orm.php(1337): CachedResultSet->asArray()<br />
#10 (root)/include/staff/templates/user.tmpl.php(47): QuerySet->all()<br />
#11 (root)/include/ajax.tickets.php(316): include('/home/fireplac/...')<br />
#12 (root)/include/class.dispatcher.php(153): TicketsAjaxAPI->viewUser('102463')<br />
#13 (root)/include/class.dispatcher.php(40): UrlMatcher->dispatch('102463/user', Array)<br />
#14 (root)/include/class.dispatcher.php(122): Dispatcher->resolve('102463/user', Array)<br />
#15 (root)/include/class.dispatcher.php(40): UrlMatcher->dispatch('/tickets/102463...', NULL)<br />
#16 (root)/scp/ajax.php(326): Dispatcher->resolve('/tickets/102463...')<br />
#17 {main}
NUMBER TWO
[SELECT A1.* FROM osti_note
A1 WHERE A1.ext_id
= 'U39742' ORDER BY A1.sort
ASC, A1.created
ASC]
Table 'fireplac_osti1.osti_note' doesn't exist<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(207): osTicket->logDBError('DB Error #1146', '[SELECT A1.* FR...')<br />
#1 (root)/include/class.orm.php(3482): db_query('SELECT A1.* FRO...', true, true)<br />
#2 (root)/include/class.orm.php(3529): MySqlExecutor->execute()<br />
#3 (root)/include/class.orm.php(2010): MySqlExecutor->getArray()<br />
#4 (root)/include/class.orm.php(2054): ModelInstanceManager->{closure}()<br />
#5 (root)/include/class.orm.php(2033): CallbackSimpleIterator->next()<br />
#6 (root)/include/class.orm.php(2042): CallbackSimpleIterator->rewind()<br />
#7 (root)/include/class.orm.php(1713): CallbackSimpleIterator->valid()<br />
#8 (root)/include/class.orm.php(1723): CachedResultSet->fillTo(9223372036854775807)<br />
#9 (root)/include/class.orm.php(1337): CachedResultSet->asArray()<br />
#10 (root)/include/staff/templates/user.tmpl.php(47): QuerySet->all()<br />
#11 (root)/include/ajax.tickets.php(316): include('/home/fireplac/...')<br />
#12 (root)/include/class.dispatcher.php(153): TicketsAjaxAPI->viewUser('102473')<br />
#13 (root)/include/class.dispatcher.php(40): UrlMatcher->dispatch('102473/user', Array)<br />
#14 (root)/include/class.dispatcher.php(122): Dispatcher->resolve('102473/user', Array)<br />
#15 (root)/include/class.dispatcher.php(40): UrlMatcher->dispatch('/tickets/102473...', NULL)<br />
#16 (root)/scp/ajax.php(326): Dispatcher->resolve('/tickets/102473...')<br />
#17 {main}
I am certainly no expert, but from my little knowledge it looks like the osti_table doesn't exist? Is this something that can be re-created etc? If so, would you be kind enough to provide step by step instructions as I am useless with PHPMyAdmin
Thank you