GMDprivateServer
GMDprivateServer copied to clipboard
Something went wrong
When I try to register in PS, it throws this error. connection.php
and DB setuped correctly.
@ChA0S-f4me Did you put it correctly? Make sure it's correctly connected on your mysql database & make sure your Domain name is 11 characters long :)
@ChA0S-f4me Did you put it correctly? Make sure it's correctly connected on your mysql database & make sure your Domain name is 11 characters long :)
Sorry for my bad English
@tzt345 It connected correctly and domain name has 11 characters
What is your native language?)
@tzt345 It connected correctly and domain name has 11 characters
What is your native language?)
Let me see your Domain name
@tzt345 I test it on local machine (open server). http://cha0s-gdps.com
@tzt345 I test it on local machine (open server). http://cha0s-gdps.com
Your site doesn't work
@tzt345 I test it on local machine (open server). http://cha0s-gdps.com
Your site doesn't work
I test it on local machine (open server)
Visit one of your php files in /tools directory and check php throws any errors on the website.
Hi, I'm having the same problem as well and I've checked the registerAccount.php in the tools directory. It's given me this error:
Parse error: syntax error, unexpected ')', expecting ']' in /home/umpahhGDPS/public_html/umpahhhgdps/database/tools/account/registerAccount.php on line 45
Do you also happen to know what I should enter in the port section in the connection.php in /config?
Thanks.
Hi, I'm having the same problem as well and I've checked the registerAccount.php in the tools directory. It's given me this error:
Parse error: syntax error, unexpected ')', expecting ']' in /home/umpahhGDPS/public_html/umpahhhgdps/database/tools/account/registerAccount.php on line 45
Do you also happen to know what I should enter in the port section in the connection.php in /config?
Thanks.
@Arvi65 How did you manage to get this error? Can you send me the 45th line of your registerAccount.php
at the path the error has occurred?
@EMREOYUN I've tried to visit the page for the php in my browser and it has given me that error on the page.
And the 45th line is this:
$query2->execute([':userName' => $username, ':password' => $hashpass, ':email' => $email,':time' => time(), ':isActive' => $preactivateAccounts ? 1 : 0, ':gjp2' => GeneratePass::GJP2hash($password), PASSWORD_DEFAULT)]);
@Arvi65 Can you replace the line with $query2->execute([':userName' => $username, ':password' => $hashpass, ':email' => $email,':time' => time(), ':isActive' => $preactivateAccounts ? 1 : 0, ':gjp2' => GeneratePass::GJP2hash($password), PASSWORD_DEFAULT]);
and try again?
I'm now able to try to register, but when I do, another error pops up:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens' in /home/umpahhGDPS/public_html/umpahhhgdps/database/tools/account/registerAccount.php:45 Stack trace: #0 /home/umpahhGDPS/public_html/umpahhhgdps/database/tools/account/registerAccount.php(45): PDOStatement->execute(Array) #1 {main} thrown in /home/umpahhGDPS/public_html/umpahhhgdps/database/tools/account/registerAccount.php on line 45
And In GD, it still gives "Something went wrong..."
@Arvi65 Try with this line $query2->execute([':userName' => $username, ':password' => $hashpass, ':email' => $email,':time' => time(), ':isActive' => $preactivateAccounts ? 1 : 0, ':gjp2' => GeneratePass::GJP2hash($password)]);
Everything is working now! Thank you so much!
Beautiful
@Cvolton It's kinda forgotten but this issue has been resolved with PR #870. You can proceed to close this issue.