Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB Error #1064 from clear installation #6322

Closed
ivanmankov opened this issue Oct 16, 2022 · 2 comments
Closed

DB Error #1064 from clear installation #6322

ivanmankov opened this issue Oct 16, 2022 · 2 comments

Comments

@ivanmankov
Copy link

Hello!

[SELECT H.name, DATE_FORMAT(timestamp, '%Y-%m-%d'), COUNT(DISTINCT E.id) FROM osthd_thread_event E LEFT JOIN osthd_event H ON (E.event_id = H.id) WHERE E.timestamp BETWEEN FROM_UNIXTIME(1663275044) AND FROM_UNIXTIME(1665867044) AND NOT annulled AND E.event_id IN () GROUP BY E.event_id, DATE_FORMAT(E.timestamp, '%Y-%m-%d') ORDER BY 2, 1] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') GROUP BY E.event_id, DATE_FORMAT(E.timestamp, '%Y-%m-%d') ORDER BY 2, 1' at line 2<br /> <br /> ---- Backtrace ----<br /> #0 (root)/include/mysqli.php(203): osTicket->logDBError()<br /> #1 (root)/include/class.report.php(103): db_query()<br /> #2 (root)/include/staff/dashboard.inc.php(182): OverviewReport->getPlotData()<br /> #3 (root)/scp/dashboard.php(50): require_once('...')<br /> #4 {main}

image

Ideas why and how to fix?

@JediKev
Copy link
Contributor

JediKev commented Oct 16, 2022

@ivanmankov

Event::getIds() is returning nothing so you need to check your ost_event table to see if you have any events there (which I doubt). If you don’t have any events then you’ll need to add them manually:

Seems like the installer failed at inserting these for you for whatever reason.

Cheers.

@ivanmankov
Copy link
Author

@ivanmankov

Event::getIds() is returning nothing so you need to check your ost_event table to see if you have any events there (which I doubt). If you don’t have any events then you’ll need to add them manually:

Seems like the installer failed at inserting these for you for whatever reason.

Cheers.

Fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants