Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined method CI_DB_pdo_driver

Hi, I am getting "Fatal error: Call to undefined method CI_DB_pdo_driver::where() in D:\laragon\www\MYWEBSITE\system\libraries\Session.php on line 218" error message after changing mysql driver to pdo driver on my config file (using CI 2.2.3).

On that file, It just said "$this->CI->db->where('session_id', $session['session_id']);"

(This post was last modified: 09-01-2016, 04:09 AM by InsiteFX.)

I think they use different tables see the Users Documentation on Sessions

You really should update to the newest CI version.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Checked the Ci 2.2.3 documentation about session database table. It just the same row and datatype.

I haven't seen your complete code, so I could be wrong, but shouldn't it be:
PHP Code:

Or, if you have instantiated the super object yourself (in a library for instance):
PHP Code:

PDO support in CI2 was experimental, unreliable.
One of a thousand reasons why you shouldn't be running CI2.

Theme © iAndrew 2016 - Forum software by © MyBB