Database connection "Mysql" is missing, or could not be created.
Error:
Une erreur interne s'est produite.
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 278 → Mysql->connect()
));
}
if ($autoConnect) {
$this->connect();
}
- CORE/Cake/Model/ConnectionManager.php line 107 → DboSource->__construct()
'message' => 'Datasource is not found in Model/Datasource package.'
));
}
self::$_dataSources[$name] = new $class(self::$config->{$name});
self::$_dataSources[$name]->configKeyName = $name;
- APP/Model/Behavior/TranslateBehavior.php line 66 → ConnectionManager::getDataSource()
* @return mixed
*/
public function setup(Model $model, $config = array()) {
$db = ConnectionManager::getDataSource($model->useDbConfig);
if (!$db->connected) {
- CORE/Cake/Model/BehaviorCollection.php line 150 → TranslateBehavior->setup()
$config = array();
}
$this->_loaded[$alias]->settings['priority'] = $priority;
$this->_loaded[$alias]->setup(ClassRegistry::getObject($this->modelName), $config);
- CORE/Cake/Model/BehaviorCollection.php line 68 → BehaviorCollection->load()
if (!empty($behaviors)) {
foreach (BehaviorCollection::normalizeObjectArray($behaviors) as $config) {
$this->load($config['class'], $config['settings']);
}
- CORE/Cake/Model/Model.php line 748 → BehaviorCollection->init()
}
$this->_createLinks();
$this->Behaviors->init($this->alias, $this->actsAs);
}
- [internal function] → Model->__construct()
- CORE/Cake/Utility/ClassRegistry.php line 168 → ReflectionClass->newInstance()
}
}
if ($reflection->getConstructor()) {
$instance = $reflection->newInstance($settings);
} else {
- CORE/Cake/Controller/Controller.php line 738 → ClassRegistry::init()
list($plugin, $modelClass) = pluginSplit($modelClass, true);
$this->{$modelClass} = ClassRegistry::init(array(
'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id
- CORE/Cake/Controller/Controller.php line 369 → Controller->loadModel()
foreach ($this->uses as $modelClass) {
list($plugin, $class) = pluginSplit($modelClass, true);
if ($name === $class) {
return $this->loadModel($modelClass);
}
- CORE/Cake/Controller/Controller.php line 407 → Controller->__isset()
return $this->Components->load('Paginator')->settings;
}
if (isset($this->{$name})) {
return $this->{$name};
- APP/Controller/EventsController.php line 48 → Controller->__get()
}
// Récupération des événements correspondant
$events = $this->Event->find('all', array(
'conditions' => $conditions,
- [internal function] → EventsController->index()
- CORE/Cake/Controller/Controller.php line 492 → ReflectionMethod->invokeArgs()
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
- CORE/Cake/Routing/Dispatcher.php line 190 → Controller->invokeAction()
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
- CORE/Cake/Routing/Dispatcher.php line 163 → Dispatcher->_invoke()
));
}
$response = $this->_invoke($controller, $request, $response);
- APP/webroot/index.php line 107 → Dispatcher->dispatch()
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(
new CakeRequest(),