TeamPass
TeamPass copied to clipboard
DataTables warning: table id=t_users - Invalid JSON response
Steps to reproduce
1.Click Manage Users link 2. 3.
Expected behaviour
Show a list of users
Actual behaviour
DataTables warning: table id=t_users - Invalid JSON response.
Server configuration
Operating system: Linux aimnpt-svrweb02 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64
Web server: Apache/2.4.29 (Ubuntu)
Database: 5.7.22-0ubuntu18.04.1
PHP version: 7.2.5-0ubuntu0.18.04.1
Teampass version: 2.1.27.16
Teampass configuration file:
'max_latest_items' => '10',
'enable_favourites' => '1',
'show_last_items' => '1',
'enable_pf_feature' => '1',
'log_connections' => '1',
'log_accessed' => '1',
'time_format' => 'H:i:s',
'date_format' => 'd/m/Y',
'duplicate_folder' => '0',
'item_duplicate_in_same_folder' => '0',
'duplicate_item' => '0',
'number_of_used_pw' => '3',
'manager_edit' => '1',
'cpassman_dir' => '/var/www/teampass',
'cpassman_url' => 'http://<anonym_url>
'favicon' => 'http://<anonym_url>/favicon.ico',
'path_to_upload_folder' => '/var/www/teampass/upload',
'url_to_upload_folder' => 'http://<anonym_url>/upload',
'path_to_files_folder' => '/var/www/teampass/files',
'url_to_files_folder' => 'http://<anonym_url>/files',
'activate_expiration' => '0',
'pw_life_duration' => '0',
'maintenance_mode' => '0',
'enable_sts' => '0',
'encryptClientServer' => '1',
'cpassman_version' => '2.1.27',
'ldap_mode' => '1',
'ldap_type' => 'windows',
'ldap_suffix' => '',
'ldap_domain_dn' => '<removed>',
'ldap_domain_controler' => '<removed>',
'ldap_user_attribute' => '0',
'ldap_ssl' => '0',
'ldap_tls' => '0',
'ldap_elusers' => '0',
'ldap_search_base' => '0',
'ldap_port' => '389',
'richtext' => '0',
'allow_print' => '0',
'roles_allowed_to_print' => '0',
'show_description' => '1',
'anyone_can_modify' => '0',
'anyone_can_modify_bydefault' => '0',
'nb_bad_authentication' => '0',
'utf8_enabled' => '1',
'restricted_to' => '1',
'restricted_to_roles' => '1',
'enable_send_email_on_user_login' => '0',
'enable_user_can_create_folders' => '0',
'insert_manual_entry_item_history' => '0',
'enable_kb' => '0',
'enable_email_notification_on_item_shown' => '0',
'enable_email_notification_on_user_pw_change' => '1',
'custom_logo' => '',
'custom_login_text' => '',
'default_language' => 'english',
'send_stats' => '0',
'send_statistics_items' => 'stat_country;stat_users;stat_items;stat_items_shared;stat_folders;stat_folders_shared;stat_admins;stat_managers;stat_ro;stat_mysqlversion;stat_phpversion;stat_teampassversion;stat_languages;stat_kb;stat_suggestion;stat_customfields;stat_api;stat_2fa;stat_agses;stat_duo;stat_ldap;stat_syslog;stat_stricthttps;stat_fav;stat_pf;',
'send_stats_time' => '1526742767',
'get_tp_info' => '0',
'send_mail_on_user_login' => '0',
'nb_items_by_query' => 'auto',
'enable_delete_after_consultation' => '0',
'enable_personal_saltkey_cookie' => '0',
'personal_saltkey_cookie_duration' => '31',
'email_smtp_server' => '<removed>',
'email_smtp_auth' => '',
'email_auth_username' => '',
'email_auth_pwd' => '',
'email_port' => '25',
'email_security' => '',
'email_server_url' => '',
'email_from' => '<removed>',
'email_from_name' => 'TeamPass',
'pwd_maximum_length' => '40',
'google_authentication' => '0',
'delay_item_edition' => '0',
'allow_import' => '1',
'proxy_ip' => '',
'proxy_port' => '',
'upload_maxfilesize' => '10mb',
'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx',
'upload_imagesext' => 'jpg,jpeg,gif,png',
'upload_pkgext' => '7z,rar,tar,zip',
'upload_otherext' => 'sql,xml',
'upload_imageresize_options' => '1',
'upload_imageresize_width' => '800',
'upload_imageresize_height' => '600',
'upload_imageresize_quality' => '90',
'use_md5_password_as_salt' => '0',
'ga_website_name' => 'TeamPass for ChangeMe',
'api' => '0',
'subfolder_rights_as_parent' => '0',
'show_only_accessible_folders' => '0',
'enable_suggestion' => '0',
'otv_expiration_period' => '7',
'default_session_expiration_time' => '60',
'duo' => '0',
'enable_server_password_change' => '0',
'ldap_object_class' => '0',
'bck_script_path' => '/var/www/teampass/backups',
'bck_script_filename' => 'bck_teampass',
'syslog_enable' => '0',
'syslog_host' => 'localhost',
'syslog_port' => '514',
'manager_move_item' => '0',
'create_item_without_password' => '0',
'otv_is_enabled' => '0',
'agses_authentication_enabled' => '0',
'item_extra_fields' => '1',
'saltkey_ante_2127' => 'none',
'migration_to_2127' => 'done',
'files_with_defuse' => 'done',
'timezone' => 'Europe/London',
'enable_attachment_encryption' => '1',
'personal_saltkey_security_level' => '50',
'ldap_new_user_is_administrated_by' => '',
'disable_show_forgot_pwd_link' => '0',
'offline_key_level' => '0',
'enable_http_request_login' => '0',
'ldap_and_local_authentication' => '0',
'secure_display_image' => '1',
'upload_zero_byte_file' => '0',
'upload_all_extensions_file' => '0',
'ldap_new_user_role' => '',
'can_create_root_folder' => '0',
'copy_to_clipboard_small_icons' => '1',
Updated from an older Teampass or fresh install: Fresh install
Client configuration
Browser: Chrome - 67.0.3396.87
Operating system: Windows - 64bits
Logs
Web server error log
Undefined index: path - /var/www/teampass/sources/main.queries.php (1343)
Teampass 10 last system errors
* 19/06/2018 08:45:53 - Query: SELECT i.id as id, i.restricted_to as restricted_to, i.perso as perso, i.label as label,
i.description as description, i.pw as pw, i.login as login, i.anyone_can_modify as anyone_can_modify,
l.date as date
FROM teampass_items as i
INNER JOIN teampass_log_items as l ON (i.id = l.id_item)
WHERE i.inactif = 0
AND (l.action = 'at_creation' OR (l.action = 'at_modification' AND l.raison LIKE 'at_pw :%'))
AND i.id_tree IN ()
ORDER BY i.label ASC, l.date DESC<br />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 ')
ORDER BY i.label ASC, l.date DESC' at line 8<br />@ /index.php?page=kb
* 19/06/2018 08:37:41 - Query: SELECT i.id as id, i.restricted_to as restricted_to, i.perso as perso, i.label as label,
i.description as description, i.pw as pw, i.login as login, i.anyone_can_modify as anyone_can_modify,
l.date as date
FROM teampass_items as i
INNER JOIN teampass_log_items as l ON (i.id = l.id_item)
WHERE i.inactif = 0
AND (l.action = 'at_creation' OR (l.action = 'at_modification' AND l.raison LIKE 'at_pw :%'))
AND i.id_tree IN ()
ORDER BY i.label ASC, l.date DESC<br />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 ')
ORDER BY i.label ASC, l.date DESC' at line 8<br />@ /index.php?page=kb
Log from the web-browser developer console (CTRL + SHIFT + i)
Insert the log here and especially the answer of the query that failed.
Can you please provide the server "answer" on file datatable.users.php when opening this page?
Refer to https://teampass.readthedocs.io/en/latest/faq/#how-to-capture-query-error-from-the-browser-console
{"sEcho": 1, "iTotalRecords": 7, "iTotalDisplayRecords": 7, "aaData": [["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('1')" title="Edit [1]"> <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('1')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('1')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('1')" title="Email Google Authentication to user">","<input="hidden" id="user_login_1" value="admin">admin","","","<i class="fa fa-angle-right"> Administrator","","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="1-admin-0">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="1-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="1-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="1-can_manage_all_users-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="1-can_create_root_folder-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="1-personal_folder-0">"],[" <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('9999991')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('9999991')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('9999991')" title="Email Google Authentication to user">","<input="hidden" id="user_login_9999991" value="OTV">OTV","","","<i class="fa fa-angle-right"> Administrator","","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="9999991-admin-0">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999991-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999991-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999991-can_manage_all_users-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999991-can_create_root_folder-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="9999991-personal_folder-0">"],[" <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('9999999')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('9999999')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('9999999')" title="Email Google Authentication to user">","<input="hidden" id="user_login_9999999" value="API">API","","","<i class="fa fa-angle-right"> Administrator","","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="9999999-admin-0">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999999-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999999-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999999-can_manage_all_users-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="9999999-can_create_root_folder-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="9999999-personal_folder-0">"],["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('10000000')" title="Edit [10000000]"> <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('10000000')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('10000000')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('10000000')" title="Email Google Authentication to user"> <span class="fa fa-sitemap tip" style="cursor:pointer;" onclick="user_folders_rights('10000000')" title="Visible folders [10000000]">","<input="hidden" id="user_login_10000000" value="jdoe">jdoe","John","Doe","<i class="fa fa-angle-right"> Administrator","<i class="fa fa-angle-right"> IT - infrastructure
","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000000-admin-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000000-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000000-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000000-can_manage_all_users-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000000-can_create_root_folder-0">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000000-personal_folder-0">"],["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('10000001')" title="Edit [10000001]"> <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('10000001')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('10000001')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('10000001')" title="Email Google Authentication to user"> <span class="fa fa-sitemap tip" style="cursor:pointer;" onclick="user_folders_rights('10000001')" title="Visible folders [10000001]">","<input="hidden" id="user_login_10000001" value="mydomain\jdoe">mydomain\jdoe","","","<i class="fa fa-angle-right"> Administrator","<i class="fa fa-angle-right"> IT - infrastructure
","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000001-admin-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000001-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000001-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000001-can_manage_all_users-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000001-can_create_root_folder-0">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000001-personal_folder-0">"],["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('10000002')" title="Edit [10000002]"> <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('10000002')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('10000002')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('10000002')" title="Email Google Authentication to user"> <span class="fa fa-sitemap tip" style="cursor:pointer;" onclick="user_folders_rights('10000002')" title="Visible folders [10000002]">","<input="hidden" id="user_login_10000002" value="jSmith">jSmith","John","Smith","<i class="fa fa-angle-right"> Administrator","<i class="fa fa-angle-right"> IT - infrastructure
","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000002-admin-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000002-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000002-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000002-can_manage_all_users-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000002-can_create_root_folder-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000002-personal_folder-0">"],["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('10000003')" title="Edit [10000003]"> <span class="fa fa-key tip" style="cursor:pointer;" onclick="mdp_user('10000003')" title="Change password"> <span class="fa fa-newspaper-o tip" onclick="user_action_log_items('10000003')" style="cursor:pointer;" title="See Logs"> <span class="fa fa-qrcode mi-yellow tip" style="cursor:pointer;" onclick="user_action_ga_code('10000003')" title="Email Google Authentication to user"> <span class="fa fa-sitemap tip" style="cursor:pointer;" onclick="user_folders_rights('10000003')" title="Visible folders [10000003]">","<input="hidden" id="user_login_10000003" value="cDoe">cDoe","Jane","Doe","<i class="fa fa-angle-right"> Administrator","<i class="fa fa-angle-right"> IT - administrators
","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000003-admin-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000003-gestionnaire-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000003-read_only-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000003-can_manage_all_users-1">","<i class="fa fa-toggle-off" style="cursor:pointer;" tp="10000003-can_create_root_folder-1">","<i class="fa fa-toggle-on mi-green" style="cursor:pointer;" tp="10000003-personal_folder-0">"]] }
Are you able to help resolve this please?
The main.queries.php shows this:
[ { "error" : "" , "count" : "0" , "show_sug_in_menu" : "0"} ]
Enabling the suggestions feature didn't help
Also worth noting it only produces an error when selecting 'None' or 'A' from the list, I can see users in other letters
Are you sure this output is not modified?
It doesn't contain any double-quotes escaping character.
Example of you provide
{"sEcho": 1, "iTotalRecords": 7, "iTotalDisplayRecords": 7, "aaData": [["<span class="fa fa-external-link tip" style="cursor:pointer;" onclick="user_edit('1')" title="Edit [1]"> ...
Where we should have
{"sEcho": 1, "iTotalRecords": 7, "iTotalDisplayRecords": 7, "aaData": [["<span class=\"fa fa-external-link tip\" style=\"cursor:pointer;\" onclick=\"user_edit('1')\" title=\"Edit [1]\"> ...
Is it a fresh install? Have some users already created?
The only parts I modified are the names of our domain and users. The rest is unmodified.
Yes, it is a fresh install and I have created a handful of local users, however I want all users to log in using LDAP.
Are you able to help please? It is still broken.
Can we arrange à screen sharing session tomorrow ? Please contact [email protected]
Sure, what's your preferred method?
By teamviewer or webex. Contact me by email. Also by skype nils.teampass
Was this resolved?
I don't know ... did not have any feed back.
Sorry for not getting back to you. No, the problem remains - can we do the remote season this week please?
Sent from my iPhone
On 24 Sep 2018, at 17:23, Nils Laumaillé <[email protected]mailto:[email protected]> wrote:
I don't know ... did not have any feed back.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/nilsteampassnet/TeamPass/issues/2310#issuecomment-424036179, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmhOqb6oog_D1rIKbk8XlhCHoUk4Bu6wks5ueQcEgaJpZM4UtUbN.
-- This email was Virus checked by Sophos Security Gateway. http://www.sophos.com
I'm having the same issue. I'd like to know how this will be fixed.
Hello nilsteampassnet,
I'm trying to setup TeamPass and I've hit this same issue.
LDAP test current configuration is sucessfull but neither "Login through LDAP" or "Manage Users" work. "Manage Users" results in the same error message as the subject of this issue report.
I'm interested in pursuing this issue if you would like to setup a webex/skype session.
Thank you in advance!
Best regards, Pedro Silva
@pedrosilvats That is ok from me. Can you contact me at [email protected] or Skype : nils.teampass
@DaveWebb2 @nilsteampassnet Had this same issue. I could access the user list, but my coworker could not despite being set as a manager. This was fixed by assigning him to a role.
attempted to this bug# seems also repeats on IIS Windows Server 2012 R2. @nilsteampassnet can u give some clear ideas how this bug can be fixed^^
When trying to open "Manage Folders" DataTables warning: table id=t_folders - Ajax error. For more information about this error, please see http://datatables.net/tn/7
When trying to open "Manage Users" DataTables warning: table id=t_users - Ajax error. For more information about this error, please see http://datatables.net/tn/7
PHP version installed 7.0.30
so tried to create folders, doesnt work# tried to make some users, doesnt work#
only other main and additional configs and roles do.
Hi,
I'm seeing this issue as well :( It's currently only affecting our search function but it renders the application unusable. We're currently addressing an upgrade from 2.1.20 to 2.1.27.36. This is the only blocker on our upgrade now.
Details below:
Steps to reproduce
1.Click the binoculars (search button) 2. 3.
Expected behaviour
The search function should open without errors and allow us to filter and search our Password database.
Actual behaviour
We get a pop-up issue stating "DataTables warning: table id=t_items - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1" The error is continually repeated when trying to use the search function making it completely unusable.
Server configuration
Operating system: Linux teampass01-upgrade 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017 x86_64
Web server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/7.3.6
Database: 5.5.52-MariaDB
PHP version: 7.3.6
Teampass version: 2.1.27.36
Teampass configuration file:
'max_latest_items' => '10',
'enable_favourites' => '1',
'show_last_items' => '1',
'enable_pf_feature' => '0',
'log_connections' => '0',
'log_accessed' => '1',
'time_format' => 'H:i:s',
'date_format' => 'd/m/Y',
'duplicate_folder' => '1',
'duplicate_item' => '1',
'number_of_used_pw' => '3',
'manager_edit' => '1',
'cpassman_dir' => '/var/www/html/teampass',
'cpassman_url' => 'https://<anonym_url>/teampass
'favicon' => 'https://<anonym_url>/teampass/favicon.ico',
'path_to_upload_folder' => '/var/www/html/teampass/upload',
'url_to_upload_folder' => 'https://<anonym_url>/teampass/upload',
'path_to_files_folder' => '/var/www/html/teampass/files',
'url_to_files_folder' => 'https://<anonym_url>/teampass/files',
'activate_expiration' => '0',
'pw_life_duration' => '0',
'maintenance_mode' => '0',
'enable_sts' => '0',
'encryptClientServer' => '1',
'cpassman_version' => '2.1.27',
'ldap_mode' => '0',
'ldap_type' => 'windows',
'ldap_suffix' => '0',
'ldap_domain_dn' => '0',
'ldap_domain_controler' => '0',
'ldap_user_attribute' => '',
'ldap_ssl' => '0',
'ldap_tls' => '0',
'ldap_elusers' => '0',
'richtext' => '0',
'allow_print' => '0',
'show_description' => '1',
'anyone_can_modify' => '0',
'anyone_can_modify_bydefault' => '0',
'nb_bad_authentication' => '0',
'utf8_enabled' => '1',
'restricted_to' => '0',
'restricted_to_roles' => '0',
'enable_send_email_on_user_login' => '0',
'enable_user_can_create_folders' => '0',
'insert_manual_entry_item_history' => '0',
'enable_kb' => '1',
'enable_email_notification_on_item_shown' => '0',
'custom_logo' => '',
'custom_login_text' => '',
'default_language' => 'english',
'send_stats' => '0',
'get_tp_info' => '1',
'send_mail_on_user_login' => '0',
'nb_items_by_query' => 'auto',
'enable_delete_after_consultation' => '0',
'enable_personal_saltkey_cookie' => '0',
'personal_saltkey_cookie_duration' => '31',
'email_smtp_server' => 'mailgw01.ourdomain',
'email_smtp_auth' => 'false',
'email_auth_username' => '',
'email_auth_pwd' => '<removed>'
'email_port' => '25',
'email_from' => 'teampass',
'email_from_name' => 'teampass',
'pwd_maximum_length' => '40',
'delay_item_edition' => '60',
'allow_import' => '1',
'proxy_ip' => '',
'proxy_port' => '',
'upload_maxfilesize' => '10mb',
'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx',
'upload_imagesext' => 'jpg,jpeg,gif,png',
'upload_pkgext' => '7z,rar,tar,zip',
'upload_otherext' => 'sql,xml',
'upload_imageresize_options' => '1',
'upload_imageresize_width' => '800',
'upload_imageresize_height' => '600',
'upload_imageresize_quality' => '90',
'use_md5_password_as_salt' => '0',
'ga_website_name' => 'TeamPass for ChangeMe',
'api' => '0',
'subfolder_rights_as_parent' => '0',
'show_only_accessible_folders' => '0',
'enable_suggestion' => '0',
'send_stats_time' => '0',
'tree_counters' => '0',
'item_extra_fields' => '0',
'enable_attachment_encryption' => '0',
'settings_offline_mode' => '0',
'offline_key_level' => '0',
'can_create_root_folder' => '0',
'copy_to_clipboard_small_icons' => '0',
'menu_type' => 'context',
'email_post' => '25',
'enable_email_notification_on_user_pw_change' => '0',
'email_server_url' => '',
'otv_expiration_period' => '7',
'bck_script_filename' => 'bck_cpassman',
'bck_script_path' => '/var/www/html/teampass/backups',
'item_duplicate_in_same_folder' => '0',
'roles_allowed_to_print' => '0',
'email_security' => '',
'default_session_expiration_time' => '60',
'duo' => '0',
'encryption_protocol' => 'ctr',
'google_authentication' => '0',
'enable_server_password_change' => '0',
'syslog_enable' => '0',
'syslog_host' => 'localhost',
'syslog_port' => '514',
'saltkey_ante_2127' => 'f05sdfregrg2ecf8',
'teampass_version' => '2.1.27',
'migration_to_2127' => 'done',
'manager_move_item' => '0',
'create_item_without_password' => '0',
'send_statistics_items' => '',
'agses_authentication_enabled' => '0',
'timezone' => 'UTC',
'personal_saltkey_security_level' => '0',
'ldap_new_user_is_administrated_by' => '0',
'ldap_port' => '389',
'enable_http_request_login' => '0',
'admin_2fa_required' => '1',
'otv_is_enabled' => '0',
'ldap_and_local_authentication' => '0',
'secure_display_image' => '1',
'upload_zero_byte_file' => '0',
'upload_all_extensions_file' => '0',
'files_with_defuse' => 'done',
);
Updated from an older Teampass or fresh install: I've been working to upgrade us from TeamPass 2.1.20. All the passwords appear present and I've identified an upgrade route which works, aside from this errors :(
Client configuration
Browser: Firefox - 67.0
Operating system: OS X - bits
Logs
Web server error log
Constant COST already defined - /var/www/html/teampass/includes/config/settings.php (19)
Teampass 10 last system errors
* 20/09/2018 11:26:04 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
* 20/03/2018 12:31:47 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
* 23/05/2017 12:52:23 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
* 01/03/2017 13:16:57 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
* 01/03/2017 13:16:21 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
* 23/09/2015 19:05:59 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title
FROM teampass_items as i
INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id)
WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
Log from the web-browser developer console (CTRL + SHIFT + i)
Insert the log here and especially the answer of the query that failed.
In our case I've been able to look at the Developer tools output and identify the JSON response. Passing this through a Lint tool revealed:
Error: Parse error on line 5: ...m_label-4491">" Jumpbox " aka rms-en ----------------------^ Expecting 'EOF', '}', ':', ',', ']', got 'undefined'
There didn't appear to be anything wrong with the entry when viewing it via the Password button, but I removed the quotations and saved it. Since then search is working without errors! I've even been able to add the quotes back and it's still working just fine. I'm wondering if there was a hidden character, or issue from a copy / paste that messed this up originally. Either way, I'm happy we now have a fully working solution and an upgrade path from 2.1.20. It'll certainly be nice running a more recent version!
I have just upgraded to the latest version (2.1.27.36) and the issue still exists, so one year after reporting it you still haven't fixed it!
Hi everyone! I'm getting the same error in freshly installed setup 2.1.27.36 with LDAP/AD user creation enabled. It happens only on the first page and only in case you have created several users via AD. Some domain symbols interferes with json list like @ or \ ? If I press None on filter or simply letter 'A' then I'm always getting this error. If I pressing any other buttons then I could see other users or empty pages without error. I'm looking forward if someone solved it and could give me a hint. Default language is English, admin language is English (error happens in other languages too, so it's not related and related to complete user list or user-list with name A)... Thanks in advance!
Hi,
I'm seeing this issue as well :( It's currently only affecting our search function but it renders the application unusable. We're currently addressing an upgrade from 2.1.20 to 2.1.27.36. This is the only blocker on our upgrade now.
Details below:
Steps to reproduce
1.Click the binoculars (search button) 2. 3.
Expected behaviour
The search function should open without errors and allow us to filter and search our Password database.
Actual behaviour
We get a pop-up issue stating "DataTables warning: table id=t_items - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1" The error is continually repeated when trying to use the search function making it completely unusable.
Server configuration
Operating system: Linux teampass01-upgrade 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017 x86_64
Web server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/7.3.6
Database: 5.5.52-MariaDB
PHP version: 7.3.6
Teampass version: 2.1.27.36
Teampass configuration file:
'max_latest_items' => '10', 'enable_favourites' => '1', 'show_last_items' => '1', 'enable_pf_feature' => '0', 'log_connections' => '0', 'log_accessed' => '1', 'time_format' => 'H:i:s', 'date_format' => 'd/m/Y', 'duplicate_folder' => '1', 'duplicate_item' => '1', 'number_of_used_pw' => '3', 'manager_edit' => '1', 'cpassman_dir' => '/var/www/html/teampass', 'cpassman_url' => 'https://<anonym_url>/teampass 'favicon' => 'https://<anonym_url>/teampass/favicon.ico', 'path_to_upload_folder' => '/var/www/html/teampass/upload', 'url_to_upload_folder' => 'https://<anonym_url>/teampass/upload', 'path_to_files_folder' => '/var/www/html/teampass/files', 'url_to_files_folder' => 'https://<anonym_url>/teampass/files', 'activate_expiration' => '0', 'pw_life_duration' => '0', 'maintenance_mode' => '0', 'enable_sts' => '0', 'encryptClientServer' => '1', 'cpassman_version' => '2.1.27', 'ldap_mode' => '0', 'ldap_type' => 'windows', 'ldap_suffix' => '0', 'ldap_domain_dn' => '0', 'ldap_domain_controler' => '0', 'ldap_user_attribute' => '', 'ldap_ssl' => '0', 'ldap_tls' => '0', 'ldap_elusers' => '0', 'richtext' => '0', 'allow_print' => '0', 'show_description' => '1', 'anyone_can_modify' => '0', 'anyone_can_modify_bydefault' => '0', 'nb_bad_authentication' => '0', 'utf8_enabled' => '1', 'restricted_to' => '0', 'restricted_to_roles' => '0', 'enable_send_email_on_user_login' => '0', 'enable_user_can_create_folders' => '0', 'insert_manual_entry_item_history' => '0', 'enable_kb' => '1', 'enable_email_notification_on_item_shown' => '0', 'custom_logo' => '', 'custom_login_text' => '', 'default_language' => 'english', 'send_stats' => '0', 'get_tp_info' => '1', 'send_mail_on_user_login' => '0', 'nb_items_by_query' => 'auto', 'enable_delete_after_consultation' => '0', 'enable_personal_saltkey_cookie' => '0', 'personal_saltkey_cookie_duration' => '31', 'email_smtp_server' => 'mailgw01.ourdomain', 'email_smtp_auth' => 'false', 'email_auth_username' => '', 'email_auth_pwd' => '<removed>' 'email_port' => '25', 'email_from' => 'teampass', 'email_from_name' => 'teampass', 'pwd_maximum_length' => '40', 'delay_item_edition' => '60', 'allow_import' => '1', 'proxy_ip' => '', 'proxy_port' => '', 'upload_maxfilesize' => '10mb', 'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx', 'upload_imagesext' => 'jpg,jpeg,gif,png', 'upload_pkgext' => '7z,rar,tar,zip', 'upload_otherext' => 'sql,xml', 'upload_imageresize_options' => '1', 'upload_imageresize_width' => '800', 'upload_imageresize_height' => '600', 'upload_imageresize_quality' => '90', 'use_md5_password_as_salt' => '0', 'ga_website_name' => 'TeamPass for ChangeMe', 'api' => '0', 'subfolder_rights_as_parent' => '0', 'show_only_accessible_folders' => '0', 'enable_suggestion' => '0', 'send_stats_time' => '0', 'tree_counters' => '0', 'item_extra_fields' => '0', 'enable_attachment_encryption' => '0', 'settings_offline_mode' => '0', 'offline_key_level' => '0', 'can_create_root_folder' => '0', 'copy_to_clipboard_small_icons' => '0', 'menu_type' => 'context', 'email_post' => '25', 'enable_email_notification_on_user_pw_change' => '0', 'email_server_url' => '', 'otv_expiration_period' => '7', 'bck_script_filename' => 'bck_cpassman', 'bck_script_path' => '/var/www/html/teampass/backups', 'item_duplicate_in_same_folder' => '0', 'roles_allowed_to_print' => '0', 'email_security' => '', 'default_session_expiration_time' => '60', 'duo' => '0', 'encryption_protocol' => 'ctr', 'google_authentication' => '0', 'enable_server_password_change' => '0', 'syslog_enable' => '0', 'syslog_host' => 'localhost', 'syslog_port' => '514', 'saltkey_ante_2127' => 'f05sdfregrg2ecf8', 'teampass_version' => '2.1.27', 'migration_to_2127' => 'done', 'manager_move_item' => '0', 'create_item_without_password' => '0', 'send_statistics_items' => '', 'agses_authentication_enabled' => '0', 'timezone' => 'UTC', 'personal_saltkey_security_level' => '0', 'ldap_new_user_is_administrated_by' => '0', 'ldap_port' => '389', 'enable_http_request_login' => '0', 'admin_2fa_required' => '1', 'otv_is_enabled' => '0', 'ldap_and_local_authentication' => '0', 'secure_display_image' => '1', 'upload_zero_byte_file' => '0', 'upload_all_extensions_file' => '0', 'files_with_defuse' => 'done', );
Updated from an older Teampass or fresh install: I've been working to upgrade us from TeamPass 2.1.20. All the passwords appear present and I've identified an upgrade route which works, aside from this errors :(
Client configuration
Browser: Firefox - 67.0
Operating system: OS X - bits
Logs
Web server error log
Constant COST already defined - /var/www/html/teampass/includes/config/settings.php (19)
Teampass 10 last system errors
* 20/09/2018 11:26:04 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php * 20/03/2018 12:31:47 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php * 23/05/2017 12:52:23 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php * 01/03/2017 13:16:57 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php * 01/03/2017 13:16:21 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php * 23/09/2015 19:05:59 - <b>MySQL Query fail:</b> SELECT i.pw, f.personal_folder,i.id_tree, f.title FROM teampass_items as i INNER JOIN teampass_nested_tree as f ON (i.id_tree=f.id) WHERE i.id=<br />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 '' at line 4@/teampass/sources/items.queries.php
Log from the web-browser developer console (CTRL + SHIFT + i)
Insert the log here and especially the answer of the query that failed.
Hello,
We had the same problem and we solved it. The problem was items with tabs in the name.
Here's how we looked for the problems:
-
open search page (teampass)
-
open the console / network (F12)
-
refresh page (F5)
-
search for find.queries.php
-
copy the link and edit with max items exemple with DisplayLength=5000 : https://teampass/sources/find.queries.php?sEcho=1&iColumns=7&sColumns=%2C%2C%2C%2C%2C%2C&iDisplayStart=0&iDisplayLength=5000&mDataProp_0=0&sSearch_0=&bRegex_0=false&bSearchable_0=true&bSortable_0=true&mDataProp_1=1&sSearch_1=&bRegex_1=false&bSearchable_1=true&bSortable_1=true&mDataProp_2=2&sSearch_2=&bRegex_2=false&bSearchable_2=true&bSortable_2=true&mDataProp_3=3&sSearch_3=&bRegex_3=false&bSearchable_3=true&bSortable_3=true&mDataProp_4=4&sSearch_4=&bRegex_4=false&bSearchable_4=true&bSortable_4=true&mDataProp_5=5&sSearch_5=&bRegex_5=false&bSearchable_5=true&bSortable_5=true&mDataProp_6=6&sSearch_6=&bRegex_6=false&bSearchable_6=true&bSortable_6=true&sSearch=&bRegex=false&iSortCol_0=1&sSortDir_0=asc&iSortingCols=1&_=1590166777576
-
run the link on new tab on browser and coupy the json data
-
replace chractars spécial like "" by space
-
past result into test json (https://jsonlint.com/)
-
search items with problem
Bonjour à tous,
J'ai rencontré ce problème aujourd'hui après la migration v2 => v3.
1/ Lorsque je me connecte en admin et que je veux afficher les utilisateurs j'ai exactement ce message d'erreur :
DataTables warning: table id=table-users - Invalid JSON response
2/ J'ai modifié la langue pour basculer l'utilisateur de francais à anglais. 3/ Plus de problème pour afficher la liste des utilisateurs.
Bonne soirée
Bonjour à tous,
J'ai rencontré ce problème aujourd'hui après la migration v2 => v3.
1/ Lorsque je me connecte en admin et que je veux afficher les utilisateurs j'ai exactement ce message d'erreur :
DataTables warning: table id=table-users - Invalid JSON response
2/ J'ai modifié la langue pour basculer l'utilisateur de francais à anglais. 3/ Plus de problème pour afficher la liste des utilisateurs.
Bonne soirée
Merci pour ce workaround qui fonctionne en 3.0.0.21
i have the same problem on user page? The browser console response said me: Hacking Attempt..." Could you helping me, i can't add new user nor modify existants users