Welcome Guest, Not a member yet? Register   Sign In
undefined method Main::_remove_invisible_characters() with OCI8
#1

[eluser]FabD[/eluser]
Hi,

I'm trying to make my first app with CodeIgniter and using ActiveRecord class with an Oracle database. I received this error message :

Call to undefined method Main::_remove_invisible_characters() in \system\database\drivers\oci8\oci8_driver.php on line 378

This the call stack :

Call Stack
# Time Memory Function Location
1 0.0021 65416 {main}( ) ..\index.php:0
2 0.0071 115920 require_once( 'C:\WebLocal\Gerico\system\codeigniter\CodeIgniter.php' ) ..\index.php:115
3 0.2484 2520872 call_user_func_array ( ) ..\CodeIgniter.php:232
4 0.2484 2520872 Main->login( ) ..\CodeIgniter.php:0
5 0.4022 3374280 MUsers->AccesGet( ) ..\main.php:42
6 0.4022 3374280 MUsers->SignalPKGet( ) ..\musers.php:30
7 0.4025 3375360 CI_DB_active_record->where( ) ..\musers.php:45
8 0.4025 3375360 CI_DB_active_record->_where( ) ..\DB_active_rec.php:378
9 0.4027 3376912 CI_DB_driver->escape( ) ..\DB_active_rec.php:453
10 0.4027 3377232 CI_DB_oci8_driver->escape_str( ) ..\DB_driver.php:679

The code is :
Code:
$this->db->select('soc_code,sp_code,matricule') ;
$this->db->from('groupe.sg_mp_signa');
$this->db->where('mps_initiales',$user);

Is there a bug ? If Yes is there a workaround ?

Thanks,
#2

[eluser]t'mo[/eluser]
I just ran across that the other day. It appears to be the same bug that's documented here:

http://codeigniter.com/bug_tracker/bug/6752/

So, if you change
Code:
$this->_find_invisible...
to read
Code:
$this->input->_find_invisible...
you should be good.

Hopefully they'll merge this into the codebase.

BTW - how did you get that stacktrace printed out? Debugger? Or is there some PHP function that prints the stack trace when an error occurs? Thanks.
#3

[eluser]pistolPete[/eluser]
[quote author="t’mo" date="1236053809"]BTW - how did you get that stacktrace printed out? Debugger? Or is there some PHP function that prints the stack trace when an error occurs? Thanks.[/quote]

There are some native PHP functions: debug_backtrace(), debug_print_backtrace()
You can also use some PHP debuggers: Xdebug, DBG
#4

[eluser]Derek Jones[/eluser]
If you update your drivers from the current subversion, this has been fixed, per the bug report linked above.
#5

[eluser]FabD[/eluser]
Thanks for your answers.
I use Xdebug as debugger. That's the easiest way using Eclipse/PDT.




Theme © iAndrew 2016 - Forum software by © MyBB