CodeIgniter Forums
Fatal error: Call to undefined method CI_DB_pdo_driver - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Fatal error: Call to undefined method CI_DB_pdo_driver (/showthread.php?tid=66068)



Fatal error: Call to undefined method CI_DB_pdo_driver - krip - 09-01-2016

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']);"


RE: Fatal error: Call to undefined method CI_DB_pdo_driver - InsiteFX - 09-01-2016

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

You really should update to the newest CI version.


RE: Fatal error: Call to undefined method CI_DB_pdo_driver - krip - 09-01-2016

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


RE: Fatal error: Call to undefined method CI_DB_pdo_driver - Wouter60 - 09-01-2016

I haven't seen your complete code, so I could be wrong, but shouldn't it be:
PHP Code:
$this->db->where('session_id'$session['session_id']); 

Or, if you have instantiated the super object yourself (in a library for instance):
PHP Code:
$CI->db->where('session_id'$session['session_id']); 



RE: Fatal error: Call to undefined method CI_DB_pdo_driver - Narf - 09-02-2016

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