bcit-ci/CodeIgniter · error · RuntimeException
The model name you are loading is the name of a resource tha
Error message
The model name you are loading is the name of a resource that is already being used: $name
What it means
Error "The model name you are loading is the name of a resource that is already being used: $name" thrown in bcit-ci/CodeIgniter.
Source
Thrown at system/core/Loader.php:283
// And the model name behind it
$model = substr($model, $last_slash);
}
if (empty($name))
{
$name = $model;
}
if (in_array($name, $this->_ci_models, TRUE))
{
return $this;
}
$CI =& get_instance();
if (isset($CI->$name))
{
throw new RuntimeException('The model name you are loading is the name of a resource that is already being used: '.$name);
}
if ($db_conn !== FALSE && ! class_exists('CI_DB', FALSE))
{
if ($db_conn === TRUE)
{
$db_conn = '';
}
$this->database($db_conn, FALSE, TRUE);
}
// Note: All of the code under this condition used to be just:
//
// load_class('Model', 'core');
//
// However, load_class() instantiates classes
// to cache them for later use and that preventsView on GitHub (pinned to 3658d731ea)
When it happens
Trigger: Thrown at system/core/Loader.php:283 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/0c0d2c0a0037f32c.
Report an issue: GitHub.