GMDprivateServer icon indicating copy to clipboard operation
GMDprivateServer copied to clipboard

Something went wrong

Open zxcqirara opened this issue 3 years ago • 16 comments

When I try to register in PS, it throws this error. connection.php and DB setuped correctly.

zxcqirara avatar May 24 '21 12:05 zxcqirara

@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 :)

tzt345 avatar May 28 '21 02:05 tzt345

@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 avatar May 28 '21 02:05 tzt345

@tzt345 It connected correctly and domain name has 11 characters

What is your native language?)

zxcqirara avatar May 28 '21 06:05 zxcqirara

@tzt345 It connected correctly and domain name has 11 characters

What is your native language?)

Let me see your Domain name

tzt345 avatar May 28 '21 10:05 tzt345

@tzt345 I test it on local machine (open server). http://cha0s-gdps.com

zxcqirara avatar May 28 '21 11:05 zxcqirara

@tzt345 I test it on local machine (open server). http://cha0s-gdps.com

Your site doesn't work

tzt345 avatar Jun 01 '21 09:06 tzt345

@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)

zxcqirara avatar Jun 03 '21 09:06 zxcqirara

Visit one of your php files in /tools directory and check php throws any errors on the website.

EMREOYUN avatar Jun 14 '21 21:06 EMREOYUN

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 avatar Jul 14 '22 16:07 Arvi65

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 avatar Jul 14 '22 19:07 EMREOYUN

@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 avatar Jul 14 '22 19:07 Arvi65

@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?

EMREOYUN avatar Jul 14 '22 20:07 EMREOYUN

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 avatar Jul 14 '22 20:07 Arvi65

@Arvi65 Try with this line $query2->execute([':userName' => $username, ':password' => $hashpass, ':email' => $email,':time' => time(), ':isActive' => $preactivateAccounts ? 1 : 0, ':gjp2' => GeneratePass::GJP2hash($password)]);

EMREOYUN avatar Jul 14 '22 20:07 EMREOYUN

Everything is working now! Thank you so much!

Arvi65 avatar Jul 14 '22 20:07 Arvi65

Beautiful

EMREOYUN avatar Jul 14 '22 20:07 EMREOYUN

@Cvolton It's kinda forgotten but this issue has been resolved with PR #870. You can proceed to close this issue.

EMREOYUN avatar Oct 21 '22 10:10 EMREOYUN