Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

SQL error syntax #6

Closed
pelicangris opened this issue Nov 18, 2013 · 3 comments
Closed

SQL error syntax #6

pelicangris opened this issue Nov 18, 2013 · 3 comments
Milestone

Comments

@pelicangris
Copy link

Hi,

I have an issue after enabling auth_ldap which leads to the login to fail.
My LDAP server holds email addresses which are the ones that are used to log onto tt-rss.
I am not sure of the issue is in tt-rss or in auth_ldap. Any hint?
Many thanks!

E_USER_WARNING (512)    classes/handler/public.php:564  Failed login attempt from xx.xx.xx.xx       18:24
E_USER_ERROR (256)  classes/db/mysqli.php:33    Query INSERT INTO ttrss_error_log (errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES (Unknown User, 'myaddress@example.org', '', '', '', NULL, NOW()) failed: 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 'User, 'myaddress@example.org', '', '', '', NULL, NOW())' at line 3       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 5 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 4 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 3 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_STRICT (2048) usr/local/etc/tt-rss/plugins/auth_ldap/init.php:241 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context     18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:267  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:267  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:221  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:367  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:367  Non-static method PEAR::isError() should not be called statically       18:24
E_USER_NOTICE (1024)    :0  Schema Cache File: /tmp/ttrss-ldapCache-localhost:389.cache     18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 5 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 4 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 3 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2.php:208 Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2.php:198 Non-static method PEAR::isError() should not be called statically
@hydrian
Copy link
Owner

hydrian commented Nov 21, 2013

Ok. I will take look at it. I have an idea of what the issue is.

@hydrian
Copy link
Owner

hydrian commented Nov 22, 2013

Change default logging values from NULL to a blank string

@pelicangris
Copy link
Author

thanks. sorry for the newbie question but... what's the token that needs to be changed?

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants