An Internal Error Has Occurred!
Database connection "Mysql" is missing, or could not be created.
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 260 → Mysql->connect()
));
}
if ($autoConnect) {
$this->connect();
}
- CORE/Cake/Model/ConnectionManager.php line 105 → DboSource->__construct(array)
'message' => 'Datasource is not found in Model/Datasource package.'
));
}
self::$_dataSources[$name] = new $class(self::$config->{$name});
self::$_dataSources[$name]->configKeyName = $name;
array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false
)
- CORE/Cake/Model/Model.php line 3471 → ConnectionManager::getDataSource(string)
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
- APP/Model/AppModel.php line 72 → Model->setDataSource(string)
ConnectionManager::create('b3', $config);
$this->useDbConfig = 'b3';
} else {
$this->setDataSource('default');
}
- CORE/Cake/Model/Permission.php line 65 → AppModel->__construct()
if (!empty($config)) {
$this->useDbConfig = $config;
}
parent::__construct();
}
- [internal function] → Permission->__construct(array)
array(
'class' => 'Permission',
'alias' => 'Permission'
)
- CORE/Cake/Utility/ClassRegistry.php line 168 → ReflectionClass->newInstance(array)
}
}
if ($reflection->getConstructor()) {
$instance = $reflection->newInstance($settings);
} else {
array(
'class' => 'Permission',
'alias' => 'Permission'
)
- CORE/Cake/Controller/Component/Acl/DbAcl.php line 48 → ClassRegistry::init(array)
*/
public function __construct() {
parent::__construct();
$this->Permission = ClassRegistry::init(array('class' => 'Permission', 'alias' => 'Permission'));
$this->Aro = $this->Permission->Aro;
array(
'class' => 'Permission',
'alias' => 'Permission'
)
- CORE/Cake/Controller/Component/AclComponent.php line 88 → DbAcl->__construct()
public function adapter($adapter = null) {
if ($adapter) {
if (is_string($adapter)) {
$adapter = new $adapter();
}
- CORE/Cake/Controller/Component/AclComponent.php line 70 → AclComponent->adapter(string)
throw new CakeException(__d('cake_dev', 'Could not find %s.', $name));
}
}
$this->adapter($name);
}
- CORE/Cake/Controller/ComponentCollection.php line 116 → AclComponent->__construct(ComponentCollection, array)
'plugin' => substr($plugin, 0, -1)
));
}
$this->_loaded[$alias] = new $componentClass($this, $settings);
$enable = isset($settings['enabled']) ? $settings['enabled'] : true;
object(ComponentCollection) {
defaultPriority => (int) 10
[protected] _Controller => object(PagesController) {}
[protected] _enabled => array(
[maximum depth reached]
)
[protected] _loaded => array(
[maximum depth reached]
)
}
array()
- CORE/Cake/Controller/ComponentCollection.php line 53 → ComponentCollection->load(string, array)
$this->_Controller = $Controller;
$components = ComponentCollection::normalizeObjectArray($Controller->components);
foreach ($components as $name => $properties) {
$Controller->{$name} = $this->load($properties['class'], $properties['settings']);
}
- CORE/Cake/Controller/Controller.php line 643 → ComponentCollection->init(PagesController)
$this->uses = (array)$this->uses;
list(, $this->modelClass) = pluginSplit(reset($this->uses));
}
$this->Components->init($this);
return true;
object(PagesController) {
name => 'Pages'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => array([maximum depth reached])
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'display'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Option'
modelKey => 'page'
validationErrors => null
XlrFunctions => object(XlrFunctionsComponent) {}
Toolbar => object(ToolbarComponent) {}
RememberMe => object(RememberMeComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
- CORE/Cake/Routing/Dispatcher.php line 181 → Controller->constructClasses()
* @return CakeResponse the resulting response object
*/
protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {
$controller->constructClasses();
$controller->startupProcess();
- CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(PagesController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(PagesController) {
name => 'Pages'
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => array([maximum depth reached])
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'display'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Option'
modelKey => 'page'
validationErrors => null
XlrFunctions => object(XlrFunctionsComponent) {}
Toolbar => object(ToolbarComponent) {}
RememberMe => object(RememberMeComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => false
base => '/xlrstats3'
webroot => '/xlrstats3/'
here => '/xlrstats3/'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
- APP/webroot/index.php line 97 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');