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

Error: Unknown column #2

Closed
Caaine opened this issue Dec 13, 2018 · 8 comments
Closed

Error: Unknown column #2

Caaine opened this issue Dec 13, 2018 · 8 comments
Labels
bug Something isn't working

Comments

@Caaine
Copy link

Caaine commented Dec 13, 2018

Failed to perform a query:
Errno: 1054
Error: Unknown column 'token' in 'where clause'

@Hexer10 Hexer10 added the bug Something isn't working label Dec 14, 2018
@Hexer10
Copy link
Owner

Hexer10 commented Dec 14, 2018

I'll try to run the server on a clean install this afternoon

@Hexer10
Copy link
Owner

Hexer10 commented Dec 14, 2018

By the way can you show me your database.cfg configuration? (Blanking out the sensitive data)

@Caaine
Copy link
Author

Caaine commented Dec 14, 2018

Sourcemod: 1.10
MySQL: MariaDB 10.3

database.cfg:
"hexredirect"
{
"driver" "default"
"host" "89.163.xxx.xx"
"database" "redirect"
"user" "redirect"
"pass" "xXXxXXxxX"
//"timeout" "0"
"port" "5000"
}

redirect.php:
$method = 'ip';
$host = '89.163.xxx.xx';
$username = 'redirect';
$password = 'xXXxXXxxX';
$dbname = 'redirect';
$port = 5000;

server.cfg:
sm_redirect_method "ip"

@Hexer10
Copy link
Owner

Hexer10 commented Dec 14, 2018

Please drop your table, and make the plugin create it again, if you still have issues regarded to this, please reply here

@Caaine
Copy link
Author

Caaine commented Dec 14, 2018

when i type
"!steam" "https://steamcommunity.com/id/Caaine/"
i come to google not to my steam profil

$homepage = 'https://www.google.com/';

@Hexer10
Copy link
Owner

Hexer10 commented Dec 14, 2018

After we've typed !steam in game do you get any replies? Mostly likely you'd like to change the homepage in the PHP script

@Hexer10
Copy link
Owner

Hexer10 commented Dec 14, 2018

Please check if both the game and the web server are using the same method ad well

@Caaine
Copy link
Author

Caaine commented Dec 14, 2018

i tested the PR from kaganus and is working fine Oo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants