Sorry
Database connection "Mysql" is missing, or could not be created.
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' => '*****', 'port' => '*****', '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'])) {
'default'
- 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);
'default'
- 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);
}
'settings'
- CORE/Cake/Model/Model.php line 2902 → Model->getDataSource()
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
- CORE/Cake/Model/Model.php line 2874 → Model->_readDataSource(string, array)
return null;
}
return $this->_readDataSource($type, $query);
}
'first' array( 'conditions' => array( 'id' => (int) 1 ), 'fields' => array( (int) 0 => 'sitename', (int) 1 => 'sitephone', (int) 2 => 'sitestatus', (int) 3 => 'sitetagstatus', (int) 4 => 'sitesearchstatus', (int) 5 => 'siteemail', (int) 6 => 'sitehomepage', (int) 7 => 'artiname', (int) 8 => 'artistatus', (int) 9 => 'artidisplayinmenu', (int) 10 => 'artidisplayinmenuname', (int) 11 => 'artirssstatus', (int) 12 => 'artipricestatus', (int) 13 => 'artibasketstatus', (int) 14 => 'artibasketsimplebox', (int) 15 => 'artipaypal', (int) 16 => 'artifacture', (int) 17 => 'artieban', (int) 18 => 'artitva', (int) 19 => 'artitvaincl', (int) 20 => 'artidevise', (int) 21 => 'mailusesmtp', (int) 22 => 'mailsmtpuser', (int) 23 => 'mailsmtppw', (int) 24 => 'mailsmtpport', (int) 25 => 'mailsmtphosts', (int) 26 => 'mailsmtpauth', (int) 27 => 'mailcharset', (int) 28 => 'mailencoding', (int) 29 => 'sociaddthis', (int) 30 => 'sociaddthisusername', (int) 31 => 'socifacebook', (int) 32 => 'socifacebookuser', (int) 33 => 'socitwitter', (int) 34 => 'socitwitteruser', (int) 35 => 'socilinkedin', (int) 36 => 'socilinkedinuser', (int) 37 => 'socigoogle', (int) 38 => 'socigoogleuser' ), 'joins' => array(), 'limit' => (int) 1, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
- APP/Controller/AppController.php line 175 → Model->find(string, array)
'conditions'=> array(
'id'=>1
)
));
$setting = current($setting);
'first' array( 'fields' => array( (int) 0 => 'sitename', (int) 1 => 'sitephone', (int) 2 => 'sitestatus', (int) 3 => 'sitetagstatus', (int) 4 => 'sitesearchstatus', (int) 5 => 'siteemail', (int) 6 => 'sitehomepage', (int) 7 => 'artiname', (int) 8 => 'artistatus', (int) 9 => 'artidisplayinmenu', (int) 10 => 'artidisplayinmenuname', (int) 11 => 'artirssstatus', (int) 12 => 'artipricestatus', (int) 13 => 'artibasketstatus', (int) 14 => 'artibasketsimplebox', (int) 15 => 'artipaypal', (int) 16 => 'artifacture', (int) 17 => 'artieban', (int) 18 => 'artitva', (int) 19 => 'artitvaincl', (int) 20 => 'artidevise', (int) 21 => 'mailusesmtp', (int) 22 => 'mailsmtpuser', (int) 23 => 'mailsmtppw', (int) 24 => 'mailsmtpport', (int) 25 => 'mailsmtphosts', (int) 26 => 'mailsmtpauth', (int) 27 => 'mailcharset', (int) 28 => 'mailencoding', (int) 29 => 'sociaddthis', (int) 30 => 'sociaddthisusername', (int) 31 => 'socifacebook', (int) 32 => 'socifacebookuser', (int) 33 => 'socitwitter', (int) 34 => 'socitwitteruser', (int) 35 => 'socilinkedin', (int) 36 => 'socilinkedinuser', (int) 37 => 'socigoogle', (int) 38 => 'socigoogleuser' ), 'conditions' => array( 'id' => (int) 1 ) )
- [internal function] → AppController->beforeFilter(CakeEvent)
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(UsersController) {} [protected] _stopped => false }
- CORE/Cake/Event/CakeEventManager.php line 247 → call_user_func(array, CakeEvent)
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
array( (int) 0 => object(UsersController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(UsersController) {} [protected] _stopped => false }
- CORE/Cake/Controller/Controller.php line 674 → CakeEventManager->dispatch(CakeEvent)
* @return void
*/
public function startupProcess() {
$this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));
$this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(UsersController) {} [protected] _stopped => false }
- CORE/Cake/Routing/Dispatcher.php line 182 → Controller->startupProcess()
*/
protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {
$controller->constructClasses();
$controller->startupProcess();
- CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(UsersController) { helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Users' uses => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Users' layoutPath => null viewVars => array([maximum depth reached]) view => 'member_index' 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 => 'User' modelKey => 'user' validationErrors => null Acl => object(AclComponent) {} Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Ctrl => object(CtrlComponent) {} Setting => object(Setting) {} [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 => 'member/users' base => '' webroot => '/' here => '/member/users' [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 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'member/users' base => '' webroot => '/' here => '/member/users' [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]) }