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

[BUG] Database error after installing Audit plugin #5719

Closed
antiuser opened this issue Nov 30, 2020 · 2 comments
Closed

[BUG] Database error after installing Audit plugin #5719

antiuser opened this issue Nov 30, 2020 · 2 comments

Comments

@antiuser
Copy link
Contributor

Prerequisites

  • [NO] Can you reproduce the problem in a fresh installation of the "develop" branch?
  • [NO] Do you have any errors in the PHP error log, or javascript console?
  • [YES] Did you check the osTicket forums?
  • [YES] Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report

Description

After installing Audit plugin i have a DB error in info panel
DB Error #1062
[INSERT INTO _event VALUES ("", "login", ""), ("", "logout", ""), ("", "message", ""), ("", "note", "")] Duplicate entry 'login' for key 'name'

---- Трассировка ----
#0 (корень)/include/mysqli.php(201): osTicket->logDBError()
#1 phar://(корень)/include/plugins/audit.phar/class.audit.php(810): db_query()
#2 phar://(корень)/include/plugins/audit.phar/audit.php(162): AuditEntry::autoCreateTable()
#3 (корень)/scp/plugins.php(26): AuditPlugin->enable()
#4 {main}

Steps to Reproduce

  1. get plugin from osticket.com
  2. place phar plugin file in include/plugins
  3. install plugin over web interface
  4. see an error in info panel

Expected behavior: [What you expected to happen]
install plugin without errors
Actual behavior: [What actually happened]
install plugin with error

Versions

Admin panel -> Dashboard -> Information which also additionally gives you information about your server.
Снимок экрана_2020-11-30_14-47-47

Also, please include the OS and what version of the OS you're running. As well as your browser and browser version.
Debian x64

@aydreeihn
Copy link
Contributor

The issue has now been addressed within the plugin, and the download is fixed on the website.

@antiuser
Copy link
Contributor Author

antiuser commented Dec 1, 2020

@aydreeihn thank you, Adriane! :) This is fix problem

@antiuser antiuser closed this as completed Dec 1, 2020
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