Database connection "Mysql" is missing, or could not be created.
Error:
An Internal Error Has Occurred.
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,
'encoding' => 'utf8'
)
- CORE/Cake/Model/Model.php line 3476 → ConnectionManager::getDataSource(string)
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
- CORE/Cake/Model/Model.php line 1126 → Model->setDataSource(string)
* @return void
*/
public function setSource($tableName) {
$this->setDataSource($this->useDbConfig);
$db = ConnectionManager::getDataSource($this->useDbConfig);
- CORE/Cake/Model/Model.php line 3498 → Model->setSource(string)
public function getDataSource() {
if (!$this->_sourceConfigured && $this->useTable !== false) {
$this->_sourceConfigured = true;
$this->setSource($this->useTable);
}
- CORE/Cake/Model/Model.php line 800 → Model->getDataSource()
return $result;
}
return $this->getDataSource()->query($method, $params, $this);
}
- /home/kweather_ftp/shared/plugins/SimpleContent/Controller/SimplePagesController.php line 81 → Model->__call(string, array)
* Function to display the contents of a page
*/
public function display($id = null) {
$page = $this->SimplePage->findById($id);
if( empty($page) ){
'findById'
array(
(int) 0 => '3'
)
- /home/kweather_ftp/shared/plugins/SimpleContent/Controller/SimplePagesController.php line 81 → SimplePage->findById(string)
* Function to display the contents of a page
*/
public function display($id = null) {
$page = $this->SimplePage->findById($id);
if( empty($page) ){
- [internal function] → SimplePagesController->display(string, string)
- CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(SimplePagesController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(SimplePagesController) {
uses => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
dispatchComponents => array([maximum depth reached])
name => 'SimplePages'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'SimplePages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'display'
layout => 'SimpleContent.sc'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => 'SimpleContent'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'SimplePage'
modelKey => 'simple_page'
validationErrors => null
Toolbar => object(ToolbarComponent) {}
Acl => object(AclComponent) {}
Auth => object(ExtendedAuthComponent) {}
RememberMe => object(RememberMeComponent) {}
Session => object(SessionComponent) {}
SimplePage => object(SimplePage) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
array(
(int) 0 => '3',
(int) 1 => 'news'
)
- /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/AppController.php line 196 → Controller->invokeAction(CakeRequest)
*/
public function invokeAction(CakeRequest $request) {
try {
return parent::invokeAction($request);
} catch (MissingActionException $e) {
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'sp/3/news'
base => ''
webroot => '/'
here => '/sp/3/news'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- CORE/Cake/Routing/Dispatcher.php line 185 → AppController->invokeAction(CakeRequest)
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'sp/3/news'
base => ''
webroot => '/'
here => '/sp/3/news'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(SimplePagesController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(SimplePagesController) {
uses => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
dispatchComponents => array([maximum depth reached])
name => 'SimplePages'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'SimplePages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'display'
layout => 'SimpleContent.sc'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => 'SimpleContent'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'SimplePage'
modelKey => 'simple_page'
validationErrors => null
Toolbar => object(ToolbarComponent) {}
Acl => object(AclComponent) {}
Auth => object(ExtendedAuthComponent) {}
RememberMe => object(RememberMeComponent) {}
Session => object(SessionComponent) {}
SimplePage => object(SimplePage) {}
[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 => 'sp/3/news'
base => ''
webroot => '/'
here => '/sp/3/news'
[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])
}
- ROOT/webroot/index.php line 108 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'sp/3/news'
base => ''
webroot => '/'
here => '/sp/3/news'
[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])
}