• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved How do I create an account on my server?

I get this error when I try to set up Gesior:
Error occured!
Error ID: #C-5
More info: ERROR: #C-5 : Class::ConfigPHP - Key passwordType doesn't exist.

File: C:\xampp\htdocs\classes/configphp.php Line: 96
File: C:\xampp\htdocs/install.php Line: 178


any idea what to do? :)
 
I get this error when I try to set up Gesior:
Error occured!
Error ID: #C-5
More info: ERROR: #C-5 : Class::ConfigPHP - Key passwordType doesn't exist.

File: C:\xampp\htdocs\classes/configphp.php Line: 96
File: C:\xampp\htdocs/install.php Line: 178


any idea what to do? :)

search for "mysqltype" or paste your config.lua
 
Here's my config.lua
I have edited out the password
_________________________________
-- Combat settings
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"

-- Connection Config
ip = "127.0.0.1"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = "1000"
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "Forgotten"
statusTimeout = 60000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
mapName = "forgotten"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "otserv"
mysqlPass = "edit"
mysqlDatabase = "otserv"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "yes"
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
noDamageToSameLookfeet = "no"
emoteSpells = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = ""
ownerEmail = ""
url = "http://otland.net/"
location = "Sweden"

________________________________________

And these are the errors on line 96 and line 178
new Error_Critic('#C-5', 'ERROR: <b>#C-5</b> : Class::ConfigPHP - Key <b>' . $key . '</b> doesn\'t exist.');

Website::setPasswordsEncryption(Website::getServerConfig()->getValue('passwordType'));
 
Last edited:
add this under mysql Sock "" :

Code:
passwordType = "sha1"


In total like this:

Code:
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "1234"
mysqlPass = "xyz1234xyz"
mysqlDatabase = "1234"
mysqlPort = 1234
mysqlSock = ""
passwordType = "sha1"
 
Thanks! That got me one step closer... Now Im having trouble with this one:
"AAC installation is disabled. To enable it make file install.php in main AAC directory and put there your IP."

I'm sorry for being such a noob :) I really appreciate your help!

EDIT:
tried to go to http://localhost/ again, and now it's showing this error:

Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\pages\latestnews.php on line 99
 
Did you already make the file install.php and write 127.0.0.1?

Sorry I'm typing from my phone now so I'll be kinda brief in my messages.
 
Do I need to write 127.0.0.1 somewhere in the install.php file? It's really messy looking when I open it Notepad++, and I can't find where to insert IP ;o
 
I tried that now. Where must the install.txt be located? I've added a file called install.txt with "127.0.0.1" written in it,and placed it in both htdocs folder and my folder called "ot"
I get through all the steps, but on step 5 it says:
STEP 5
Set Admin Account
Admin account login: 1
Admin account password: (password)


It's end of installation. Installation is blocked!



and then I get the same error:
AAC installation is disabled. To enable it make file install.php in main AAC directory and put there your IP.
 
Oh my god, it worked ^^ I thought the site would show up on "localhost".
Thank you!! :)

But now I have another proble.. I'm able to create an account, and I can see it under the accounts tab in localhost/phpmyadmin with account name and password, but when I try to log in it says "account name or password is not correct".

Got any idea what could be wrong? :)

EDIT:
In the top right corner of the website itsays "server offline", but my console says "Forgotten Server Online!"
 
I'm sure you already did tho but make sure your don't have caps lock on.

Also are you trying to log into the admin account or a new account?

Try deleting the new account and making it again,

Basically just mess around a little bit and see if you can solve it haha.
 
I tried deleting it and making a new one, and I don't have caps lock on :D
I also tried logging in with admin account but nothing works:/

In the Forgotten Server console it says
"Establishing database connection... MySQL 6.0.0"
Should it say 126.0.0.1? ;o
 
I didn't think I'd need to encrypt the passwords since I'm not taking the server online, so I didn't follow your instructions and I wrote "plain" instead of "sha1".. :(
I changed it to "sha1" now, and it worked! I'm in game!
I can't thank you enough for your help! :D You rock!
 
Back
Top