Fresh Install of osTicket v1.12.2 Community Edition using the unstallscript
Webserver: Apache with PHP 7.2 and mySQL 5.6.42
Install is not completed because of 2 DB Errors #1064 with SQL-syntax-error
- First Error:
[CREATE TABLE IF NOT EXISTSost_ticket__cdata
(PRIMARY KEY
(ticket_id)) DEFAULT CHARSET=utf8 AS SELECT entry.object_id
asticket_id
, FROM ost_form_entry entry
JOIN ost_form_entry_values ans ON ans.entry_id = entry.id
JOIN ost_form_field field ON field.id=ans.field_id
WHERE entry.object_type='T' GROUP BY entry.object_id]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM ost_form_entry entry
JOIN ost_form_entry_values ans ON ans.entr' at line 2<br />
<br />
---- Ablaufverfolgung ----<br />
#0 (root)/include/mysqli.php(199): osTicket->logDBError('DB Error #1064', '[CREATE TABLE I...')<br />
#1 (root)/include/class.dynamic_forms.php(297): db_query('CREATE TABLE IF...')<br />
#2 (root)/include/class.dynamic_forms.php(290): DynamicForm::buildDynamicDataView(Array)<br />
#3 (root)/include/staff/templates/queue-tickets.tmpl.php(17): DynamicForm::ensureDynamicDataView()<br />
#4 (root)/scp/tickets.php(526): require_once('/mnt/web123/e1/...')<br />
#5 (root)/scp/index.php(17): require('/mnt/web123/e1/...')<br />
#6 {main}
- and second Error:
[SELECT A1.topic_id
AStopic_id
, A3.topic
AStopic__topic
, A3.flags
AStopic__flags
, COUNT(CASE WHEN A1.event_id
= 1 THEN 1 END) ASOpened
, COUNT(CASE WHEN A1.event_id
= 4 THEN 1 END) ASAssigned
, COUNT(CASE WHEN A1.event_id
= 8 THEN 1 END) ASOverdue
, COUNT(CASE WHEN A1.event_id
= 2 THEN 1 END) ASClosed
, COUNT(CASE WHEN A1.event_id
= 3 THEN 1 END) ASReopened
, COUNT(CASE WHEN A1.event_id
= 14 THEN 1 END) ASDeleted
FROMost_thread_event
A1 JOINost_thread
A2 ON (A1.thread_id
= A2.id
) LEFT JOINost_help_topic
A3 ON (A1.topic_id
= A3.topic_id
) WHERE A1.annulled
= 0 AND A1.timestamp
BETWEEN FROM_UNIXTIME(1561904685) AND FROM_UNIXTIME(1564496685) AND A2.object_type
= 'T' AND A1.dept_id
IN (1, 3) AND A1.topic_id
> 0 AND A1.topic_id
IN () GROUP BY A1.topic_id
]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY A1.topic_id
' at line 1<br />
<br />
---- Ablaufverfolgung ----<br />
#0 (root)/include/mysqli.php(199): osTicket->logDBError('DB Error #1064', '[SELECT A1.top...')<br />
topi...', true, true)<br />
#1 (root)/include/class.orm.php(3455): db_query('SELECT A1.
#2 (root)/include/class.orm.php(3502): MySqlExecutor->execute()<br />
#3 (root)/include/class.orm.php(2085): MySqlExecutor->getArray()<br />
#4 (root)/include/class.orm.php(2035): HashArrayIterator->{closure}()<br />
#5 (root)/include/class.orm.php(2014): CallbackSimpleIterator->next()<br />
#6 (root)/include/class.orm.php(2023): CallbackSimpleIterator->rewind()<br />
#7 (root)/include/class.orm.php(1695): CallbackSimpleIterator->valid()<br />
#8 (root)/include/class.orm.php(1705): CachedResultSet->fillTo(2147483647)<br />
#9 (root)/include/class.orm.php(1721): CachedResultSet->asArray()<br />
#10 (root)/include/class.report.php(270): CachedResultSet->getIterator()<br />
#11 (root)/include/staff/dashboard.inc.php(100): OverviewReport->getTabularData('topic')<br />
#12 (root)/scp/dashboard.php(50): require_once('/mnt/web123/e1/...')<br />
#13 {main}
Is this a bug in the install.php?
Thanks
Lars