bcit-ci/CodeIgniter · error · Exception
Query Builder not enabled for the configured database. Abort
Error message
Query Builder not enabled for the configured database. Aborting.
What it means
Error "Query Builder not enabled for the configured database. Aborting." thrown in bcit-ci/CodeIgniter.
Source
Thrown at system/libraries/Session/drivers/Session_database_driver.php:91
// ------------------------------------------------------------------------
/**
* Class constructor
*
* @param array $params Configuration parameters
* @return void
*/
public function __construct(&$params)
{
parent::__construct($params);
$CI =& get_instance();
isset($CI->db) OR $CI->load->database();
$this->_db = $CI->db;
if ( ! $this->_db instanceof CI_DB_query_builder)
{
throw new Exception('Query Builder not enabled for the configured database. Aborting.');
}
elseif ($this->_db->pconnect)
{
throw new Exception('Configured database connection is persistent. Aborting.');
}
elseif ($this->_db->cache_on)
{
throw new Exception('Configured database connection has cache enabled. Aborting.');
}
$db_driver = $this->_db->dbdriver.(empty($this->_db->subdriver) ? '' : '_'.$this->_db->subdriver);
if (strpos($db_driver, 'mysql') !== FALSE)
{
$this->_platform = 'mysql';
}
elseif (in_array($db_driver, array('postgre', 'pdo_pgsql'), TRUE))
{
$this->_platform = 'postgre';View on GitHub (pinned to 3658d731ea)
When it happens
Trigger: Thrown at system/libraries/Session/drivers/Session_database_driver.php:91 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of bcit-ci/CodeIgniter@3658d731ea (2026-08-17).
Data as JSON: /api/errors/243149c0df02c2ec.
Report an issue: GitHub.