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

DBCALL ERROR: SQL Assoc Failed!, Error: You have an error in your SQL syntax 1.1.9 #794

Closed
cciethor opened this issue Jun 5, 2017 · 2 comments

Comments

@cciethor
Copy link

cciethor commented Jun 5, 2017

Hi

Version 1.1.9 whenever i want to create legacy graph and want to add items and data source i got

Error: Save Failed: Field Input Error (Check Red Fields).

and below error in log .

2017/06/06 01:48:24 - CMDPHP SQL Backtrace: (/graphs.php: 76 form_actions)(/graphs.php: 793 db_fetch_assoc)(/lib/database.php: 343 db_fetch_assoc_prepared)(/lib/database.php: 384 cacti_debug_backtrace)
2017/06/06 01:48:24 - DBCALL ERROR: SQL Assoc Failed!, Error: 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 ') AND dtd.local_data_id > 0' at line 1
2017/06/06 01:48:24 - DBCALL ERROR: SQL Assoc Failed!, Error:1064, SQL:'SELECT DISTINCT dtd.local_data_id FROM data_template_data AS dtd INNER JOIN data_template_rrd AS dtr ON dtr.local_data_id=dtd.local_data_id INNER JOIN graph_templates_item AS gti ON dtr.id=gti.task_item_id WHERE gti.local_graph_id NOT IN(251) AND dtr.local_data_id IN() AND dtd.local_data_id > 0'

@cciethor cciethor changed the title Validation error for variable host_id, with value of "None" - 1.1.9 DBCALL ERROR: SQL Assoc Failed!, Error: You have an error in your SQL syntax 1.1.9 Jun 5, 2017
@cciethor
Copy link
Author

cciethor commented Jun 6, 2017

It seems the issue from modern theme as i was able to create legacy graph from classic theme.

cigamit added a commit that referenced this issue Jun 6, 2017
SQL Error when creating manual graphs
@cigamit
Copy link
Member

cigamit commented Jun 6, 2017

Resolved. Thanks for reporting.

@cigamit cigamit closed this as completed Jun 6, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants