Welcome Guest, Not a member yet? Register   Sign In
Bug in ODBC-driver constructor
#1

[eluser]Unknown[/eluser]
Hi,

when using the ODBC in the latest CI-release I always get: "Fatal error: Call to undefined method CI_DB::CI_DB() in C:\www\system\database\drivers\odbc\odbc_driver.php on line 53".
Line 53 being
Code:
parent::CI_DB($params);
Apparently replacing this with
Code:
parent::CI_DB_driver($params);
solves the issue.

I'm merely a CI newbie so my question for you is: is this the correct fix? If so, you may of course implement it in the next release :-) Thanks!
#2

[eluser]luke holder[/eluser]
I also had this error and this fixed it!!!! thanks heaps!
#3

[eluser]CI_adis[/eluser]
Hi kbon,

I had the same error message and got a step further with your quick fix.
Why is this not fixed in the latest CI???

It is not user friendly for new people that are trying CI!

Thanks anyway.
#4

[eluser]MVUG[/eluser]
Is this fixed in 2.0?
#5

[eluser]CI_adis[/eluser]
Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..
#6

[eluser]MVUG[/eluser]
[quote author="CI_adis" date="1296835365"]Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..[/quote]

Have you tested this already?
#7

[eluser]Nacho[/eluser]
Hi kbon!
How to set up the database.php?
I mean, what values?

[quote author="kbon" date="1261431235"]Hi,

when using the ODBC in the latest CI-release I always get: "Fatal error: Call to undefined method CI_DB::CI_DB() in C:\www\system\database\drivers\odbc\odbc_driver.php on line 53".
Line 53 being
Code:
parent::CI_DB($params);
Apparently replacing this with
Code:
parent::CI_DB_driver($params);
solves the issue.

I'm merely a CI newbie so my question for you is: is this the correct fix? If so, you may of course implement it in the next release :-) Thanks![/quote]
#8

[eluser]CI_adis[/eluser]
[quote author="MVUG" date="1297346745"][quote author="CI_adis" date="1296835365"]Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..[/quote]

Have you tested this already?[/quote]

Finally I have tested this with a clean installation and still getting the error message:
Quote:Fatal error: Call to undefined method CI_DB::CI_DB() in C:\wamp\www\test\system\database\drivers\odbc\odbc_driver.php on line 53

@Nacho:
The code in database.php:

Code:
$db['default']['hostname'] = "Driver={SQL Server Native Client 10.0};Server=localhost;Database=myTestDB;";
$db['default']['username'] = "myTestUser";
$db['default']['password'] = "mySecret";
$db['default']['database'] = "";
$db['default']['dbdriver'] = "odbc";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
#9

[eluser]MVUG[/eluser]
mmm I tested it also, but I don't get an error...
#10

[eluser]CI_adis[/eluser]
[quote author="MVUG" date="1297489550"]mmm I tested it also, but I don't get an error...[/quote]

So it is working for you?? I use MSSQL 2008 R2, and you?




Theme © iAndrew 2016 - Forum software by © MyBB