-
Notifications
You must be signed in to change notification settings - Fork 174
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
Sourcebans Settings page not working #499
Comments
sourcebans-pp/web/includes/Log.php Lines 30 to 41 in cdce21c
Dumb query build. On some PHP versions, PDO adds a quotes anyway to query. Also i don't understand, why |
But how can I fix? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are the steps to reproduce this issue?
What happens?
It gives me this error and dont let me edit anything..
What were you expecting to happen?
Any logs, error output, etc.?
http://prntscr.com/kgac91
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''30'' at line 4' in /var/www/html/novo/includes/Database.php:77 Stack trace: #0 /var/www/html/novo/includes/Database.php(77): PDOStatement->execute() #1 /var/www/html/novo/includes/Database.php(82): Database->execute() #2 /var/www/html/novo/includes/Log.php(40): Database->resultset() #3 /var/www/html/novo/pages/admin.settings.php(93): Log::getAll(0, '30', '') #4 /var/www/html/novo/includes/page-builder.php(126): require_once('/var/www/html/n...') #5 /var/www/html/novo/index.php(37): build('SourceBans++ Se...', '/admin.settings...') #6 {main} thrown in /var/www/html/novo/includes/Database.php on line 77
Any other comments?
No
What versions of software are you using?
Operating System: Debian 8
SourceBans++ Version: 1.6.3 (But it shows 1.7 on footer)
PHP Version: 5.6
MySQL Version: 5.5.60-0+deb8u1 - (Debian)
Link to your project:
Link to a phpinfo() output:
The text was updated successfully, but these errors were encountered: