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

MySQL query error #446

Open
2 tasks done
FelipeBasilio1991 opened this issue Dec 11, 2024 · 6 comments
Open
2 tasks done

MySQL query error #446

FelipeBasilio1991 opened this issue Dec 11, 2024 · 6 comments

Comments

@FelipeBasilio1991
Copy link

FelipeBasilio1991 commented Dec 11, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

11

Plugin version

Last version

Bug description

When I try to upload the csv file it returns the following error in the sql logs
Capture

Relevant log output

glpisqllog.ERROR: DBmysql::doQuery() in /var/www/html/glpi/src/DBmysql.php line 399
  *** MySQL query error:
  SQL: SELECT * FROM `(SELECT `itemtype`
                 FROM `glpi_plugin_datainjection_models`
                 WHERE `id` = '1')
                UNION (SELECT DISTINCT `itemtype`
                       FROM `glpi_plugin_datainjection_mappings`
                       WHERE `models_id` = '1')
                UNION (SELECT DISTINCT `itemtype`
                       FROM `glpi_plugin_datainjection_infos`
                       WHERE `models_id` = '1')`
  Error: 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 `glpi_plugin_datainjection_models`
                 WHER' at line 1

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

@stonebuzz
Copy link
Contributor

Hi @FelipeBasilio1991
can you try this -> #445

@FelipeBasilio1991
Copy link
Author

I made the change as suggested but it still displays the same error

@stonebuzz
Copy link
Contributor

Which version of glpi are you using?
Which databases (name, version) do you use? (MariaDB / MySql)

@FelipeBasilio1991
Copy link
Author

GLPI Version 11.0 dev
Mysql

@trasher
Copy link
Contributor

trasher commented Dec 12, 2024

Currently, most of the plugins are not compatible with GLPI 11.

@stonebuzz
Copy link
Contributor

Please retry with latest offcial release GLPI 10.0.17

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

3 participants