View Full Version : L2CP Error
Silentz0r
17.06.2009, 03:05
Hey guys,
i recently moved from 64bit OS + CPU to 32bit OS + CPU, and L2CP seems to give me teh crap :/ It won't connect to MSSQL apparently, as the error i receive is the following:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: KM30333\SQLEXPRESS in C:\wamp\www\l2cp\load\functions.php on line 65
Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in C:\wamp\www\l2cp\load\functions.php on line 66
KM30333 is the name of the computer, its full name is KM30333.keymachine.de, and for some reason i gotta add \SQLEXPRESS or else it wouldn't connect to mssql on x64. Now on x86 there's no connection at all, and i've tried every possible aspect (127.0.0.1, all machine names, my external IP address ...). I want it to connect to the local mssql server and i am working with wamp. I tried the same (KM30333\SQLEXPRESS and my mssql login/pass) using L2AC and it worked, so it's definetelly an L2CP error.
Other notes:
*I have removed the comma in front of the mssql extension in php.ini (meaning that i enabled the mssql extension)
*i have assigned a new port to apache as i read somewhere that sometimes enabling IIS would solve this
Any help is appreciated,
thanks
P.S. Forgot to say that i am using Windows Web Server 2008. Maybe some dll is missing for the mssql connection?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-17-2009, 03:05 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
The error is a PHP problem, i had it in the past but i dont remember how to solve it, as soon as i remember how to help you an fix i will tell you.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-18-2009, 10:43 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Check if your php run fine or it has problems on start. I had same problem and when i updated my php revision (with mssql extension) it worked fine.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-18-2009, 10:53 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Silentz0r
19.06.2009, 13:05
Hey and thanks for your replies.
The only errors i can see on my error log are the ones that are displayed on the page, which are the ones i have on code on my first post. I'm not sure if it's the version that's not good, cause i used the exact same version on my old machine and it worked smooth, it's version 5.2.9-2
I tried to degrade to version 5.2.9-1, and i still get the same error after re-editing php.ini (enabling mssql extension). :/
P.S. I tried all versions up to 5.2.8 and they did not fix this error.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-19-2009, 01:05 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
dodgydan2001
19.06.2009, 16:08
I had this problem before to, i had to use my computer name for it to work, ip address wouldnt work.
Check the name is correct, perhaps remove the .'s (dots) in the name and see if that helps?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-19-2009, 04:08 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Silentz0r
22.06.2009, 20:06
KM30333\SQLEXPRESS is the name i'm using and it won't work. I've tried every possible name like KM30333, 127.0.0.1, my external ip address, PC Full name, everything.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-22-2009, 08:06 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Silentz0r
30.06.2009, 13:53
Tool's gonna explain this better
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-30-2009, 01:53 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
toolpunk
01.07.2009, 11:38
Error logging had nothing to do with it. :P
In l2cp/load edit load.php to look like this:
<?php
require 'load/config.php';
require 'load/functions.php';
require 'load/query.php';
?>
The rest is perfectly correct.
You prolly can use other versions of SQL Server too.
And of course any apache/php installation will do. XAMPP is just most likely the most complete and easiest solution. :)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-01-2009, 11:38 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Renobizarro
05.07.2009, 09:24
lol... too much time without internet...
k... now i don't get selectbd error...
but i get another error :S
Warning: Cannot modify header information - headers already sent by (output started at C:\wwwrootl2\test\html\load\load.php:5) in C:\wwwrootl2\test\html\load\functions.php on line 321
load.php lines 1 to 5
1.- <?php
2.- require 'load/config.php';
3.- require 'load/functions.php';
4.- require 'load/query.php';
5.- ?>
functions.php lines from 319 to 322
319.- function resetcookies() {
320.- setcookie ("user", "", time()-2592000);
321.- setcookie ("pass", "", time()-2592000);
322.- }
and this error too:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wwwrootl2\test\html\load\load.php:5) in C:\wwwrootl2\test\html\index.php on line 44
index.php lines 42 to 45
42.- quickrefresh('index.php');
43.- }
44.- session_start();
45.- ?>
what is the prob with sessions?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-05-2009, 09:24 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
toolpunk
06.07.2009, 09:24
These aren't errors, these are warnings.
They basically have no real meaning (for you).
Just disable warning outputs in your Apache/ISS config and you're fine. :)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-06-2009, 09:24 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Renobizarro
06.07.2009, 09:32
it is really a error... now i try to change password and i cant login... every time that i try to login l2cp tell me "you are not loged in"...
>.<
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-06-2009, 09:32 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
toolpunk
06.07.2009, 09:50
You do have cookies enabled, don't you?
Both, in your browser and the server?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-06-2009, 09:50 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Renobizarro
06.07.2009, 13:16
yes sir, are enabled...
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-06-2009, 01:16 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
toolpunk
06.07.2009, 23:30
Strange. I'll look into this deeper then...
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-06-2009, 11:30 PM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Just don't use this it's coded like shit. You'll just have trouble using it.
And if you can't even correct that, you won't be able to fix it when you'll have some trouble.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-07-2009, 12:57 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
This happens when you send html before using session_start();
Check if there are functions like echo, header() or print before session_start();
And save your php files in ANSI, if not you'll get some troubles with sessions.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-07-2009, 05:49 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Renobizarro
07.07.2009, 10:32
what about bake ice register system? it is safe?(u know... the one that is integrated on the loader)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-07-2009, 10:32 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Check spaces after "?>"..... delete it if they are :p and then check again..
:eek::eek::eek:
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-07-2009, 10:48 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Use StormShadow´s regpage, its imo the best one shared atm :)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-07-2009, 11:52 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).
Now i'm getting an error in the change password option, when the user is logged, a session is created in the tmp folder of the php, but the file is in blank.
Then when i write the new password and click on submit, a message appears with "You are not logged in", i check the error.log but nothing.....
PD: Sorry the english.... :p
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-11-2009, 12:28 AM. Открыть источник (https://web.archive.org/web/20100324121300id_/http://www.postpacific.com:80/archive/index.php/t-496.html).