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
- APP/Controller/AppController.php line 136 → Controller->loadModel()
*/
protected function constructPage($conditions, $title = null, $description = null) {
$this->loadModel("Page");
// $this->Page->unbindModel(array('hasMany' => array('Content')));
- APP/Controller/PagesController.php line 125 → AppController->constructPage()
'Page.active' => 1,
'Page.home' => 0
);
$constructPage = $this->constructPage($conditions);
- [internal function] → PagesController->display()
- 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(),