Boxan Posted January 23, 2010 Posted January 23, 2010 Does anyone know why I get this error using L2 Account ZS 2.0 shared by GodOfAden. Fatal error: Call to undefined function mssql_connect() in /home/rl2int64/public_html/account/functionspw.php on line 24 There's the error line 24 $dbconnect = mssql_connect ($dbaddress, $dbuser, $dbpass); Config.php settings are ok . /*SQL IP Address $CONFIG['dbaddress'] = "the_ip_of_the_srv_where_is_installed_sql_database"; /*SQL Username $CONFIG['dbuser'] = "my_sql_user"; /*SQL Password $CONFIG['dbpass'] = "my_sql_password"; /*Lineage II Database Database Name [Default: lin2db]*/ $CONFIG['dbdbname'] = "lin2db"; /*Lineage II World Database Name [Default: lin2world] */ $CONFIG['worlddbname'] = "lin2world"; /*Maximum Accounts Per Email [Default: 1 (0 for disabled.)]*/ $CONFIG['maxemail'] = "0"; I searched a lot for that error but didn't find anything to solve it. Quote
0 Commodus Posted January 23, 2010 Posted January 23, 2010 As you can see in the error , your site can't connect to mysql. Are you sure that you have the port 80 opened and the config.php to be set correctly? Quote
0 Boxan Posted January 23, 2010 Author Posted January 23, 2010 Yes mate. Port 80 opened on the server where is the sqldb running but i got the same error. Quote
0 Commodus Posted January 23, 2010 Posted January 23, 2010 Yes mate. Port 80 opened on the server where is the sqldb running but i got the same error. Are you sure that your db name is lin2db ? Cause in your configs this is the default. Quote
0 Boxan Posted January 23, 2010 Author Posted January 23, 2010 Yes, as you know that's the default db (lin2db). Or should i change the lin2db to dbo.user_account (the accounts table from lin2db) ? Thanks. Quote
0 rodox Posted January 23, 2010 Posted January 23, 2010 Probably your php environment doesn't have mssql extension enabled. Check this in php.ini Quote
0 Boxan Posted January 23, 2010 Author Posted January 23, 2010 extension=php_mssql.dll it's enabled in php.ini. That doesn't solve the problem...it's there any options that i can try? Quote
0 mcbigmac Posted January 23, 2010 Posted January 23, 2010 extension=php_mssql.dll it's enabled in l2.ini. That doesn't solve the problem...it's there any options that i can try? L2.ini? wtf? check your webserver's php extensions, like he said. php.ini Clearly you are trying to call an undefined function, ergo mssql is not enabled. Quote
0 Dr.House Posted January 26, 2010 Posted January 26, 2010 LoL Install apache + php and conf mssqlserver. Quote
0 Sighed Posted February 14, 2010 Posted February 14, 2010 The problem is that his php.ini has the";" symbol, so your mssql drivers on your apache are disabled. Find in the php.ini the mssql commented lines and delete the ";" symbol to uncomment, restart apache and you're done. Quote
Question
Boxan
Does anyone know why I get this error using L2 Account ZS 2.0 shared by GodOfAden.
There's the error line 24
Config.php settings are ok .
I searched a lot for that error but didn't find anything to solve it.
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.