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'])) {'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);}'categories'
- CORE/Cake/Model/Datasource/DboSource.php line 1063 → Model->getDataSource()
$linkModel = $model->{$assoc};$external = isset($assocData['external']);$linkModel->getDataSource();if ($model->useDbConfig === $linkModel->useDbConfig) { - CORE/Cake/Model/Model.php line 2902 → DboSource->read(GirlPage, array)
* @return array*/protected function _readDataSource($type, $query) {$results = $this->getDataSource()->read($this, $query);$this->resetAssociations();object(GirlPage) { useDbConfig => 'shared' actsAs => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) filterArgs => array( [maximum depth reached] ) onTransaction => false useTable => 'girl_pages' id => false data => array([maximum depth reached]) schemaName => 'kweather_shared' table => 'girl_pages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'GirlPage' alias => 'GirlPage' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 2 order => null virtualFields => array([maximum depth reached]) __backAssociation => array( [maximum depth reached] ) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) Girl => object(Girl) {} Tag => object(Tag) {} GirlVoteCount => object(GirlDetail) {} tablePrefix => '' GirlPageContent => object(GirlPageContent) {} Category => object(Category) {} Prefecture => object(Prefecture) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } array( 'conditions' => array( 'Girl.published' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => (int) 8, 'offset' => null, 'order' => array( (int) 0 => array( [maximum depth reached] ) ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'maxLimit' => (int) 8, 'paramType' => 'named', 'contain' => array( (int) 0 => 'GirlVoteCount', 'GirlPageContent' => array( [maximum depth reached] ), 'Category' => array( [maximum depth reached] ), 'Prefecture' => array( [maximum depth reached] ), 'Girl' => array( [maximum depth reached] ), 'Tag' => array( [maximum depth reached] ) ), 'recursive' => (int) 2 ) - CORE/Cake/Model/Model.php line 2874 → Model->_readDataSource(string, array)
return null;}return $this->_readDataSource($type, $query);}'all' array( 'conditions' => array( 'Girl.published' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => (int) 8, 'offset' => null, 'order' => array( (int) 0 => array( [maximum depth reached] ) ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'maxLimit' => (int) 8, 'paramType' => 'named', 'contain' => array( (int) 0 => 'GirlVoteCount', 'GirlPageContent' => array( [maximum depth reached] ), 'Category' => array( [maximum depth reached] ), 'Prefecture' => array( [maximum depth reached] ), 'Girl' => array( [maximum depth reached] ), 'Tag' => array( [maximum depth reached] ) ), 'recursive' => (int) 2 )
- CORE/Cake/Controller/Component/PaginatorComponent.php line 196 → Model->find(string, array)
if ($recursive != $object->recursive) {$parameters['recursive'] = $recursive;}$results = $object->find($type, array_merge($parameters, $extra));}'all' array( 'conditions' => array( 'Girl.published' => (int) 1 ), 'fields' => null, 'order' => array( 'GirlVoteCount.value' => 'DESC', 'GirlPage.created' => 'DESC' ), 'limit' => (int) 8, 'page' => (int) 1, 'maxLimit' => (int) 8, 'paramType' => 'named', 'contain' => array( (int) 0 => 'GirlVoteCount', 'GirlPageContent' => array( [maximum depth reached] ), 'Category' => array( [maximum depth reached] ), 'Prefecture' => array( [maximum depth reached] ), 'Girl' => array( [maximum depth reached] ), 'Tag' => array( [maximum depth reached] ) ) )
- CORE/Cake/Controller/Controller.php line 1079 → PaginatorComponent->paginate(GirlPage, array, array)
* @deprecated Will be removed in 3.0. Use PaginatorComponent instead.*/public function paginate($object = null, $scope = array(), $whitelist = array()) {return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);}object(GirlPage) { useDbConfig => 'shared' actsAs => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) filterArgs => array( [maximum depth reached] ) onTransaction => false useTable => 'girl_pages' id => false data => array([maximum depth reached]) schemaName => 'kweather_shared' table => 'girl_pages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'GirlPage' alias => 'GirlPage' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 2 order => null virtualFields => array([maximum depth reached]) __backAssociation => array( [maximum depth reached] ) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) Girl => object(Girl) {} Tag => object(Tag) {} GirlVoteCount => object(GirlDetail) {} tablePrefix => '' GirlPageContent => object(GirlPageContent) {} Category => object(Category) {} Prefecture => object(Prefecture) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } array() array() - /home/kweather_ftp/shared/plugins/Crud/Controller/Crud/Action/IndexCrudAction.php line 107 → Controller->paginate(GirlPage)
$viewVar = $this->viewVar();$subject = $this->_trigger('beforePaginate', array('paginator' => $controller->Paginator, 'success' => $success, 'viewVar' => $viewVar));$items = $controller->paginate($this->_model());$subject = $this->_trigger('afterPaginate', array('success' => $subject->success, 'viewVar' => $subject->viewVar, 'items' => $items));object(GirlPage) { useDbConfig => 'shared' actsAs => array( [maximum depth reached] ) validate => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) filterArgs => array( [maximum depth reached] ) onTransaction => false useTable => 'girl_pages' id => false data => array([maximum depth reached]) schemaName => 'kweather_shared' table => 'girl_pages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'GirlPage' alias => 'GirlPage' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 2 order => null virtualFields => array([maximum depth reached]) __backAssociation => array( [maximum depth reached] ) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) Girl => object(Girl) {} Tag => object(Tag) {} GirlVoteCount => object(GirlDetail) {} tablePrefix => '' GirlPageContent => object(GirlPageContent) {} Category => object(Category) {} Prefecture => object(Prefecture) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } - [internal function] → IndexCrudAction->_get()
- /home/kweather_ftp/shared/plugins/Crud/Controller/Crud/CrudAction.php line 65 → call_user_func_array(array, array)
$method = '_' . strtolower($requestMethod);if (method_exists($this, $method)) {return call_user_func_array(array($this, $method), $subject->args);}array( (int) 0 => object(IndexCrudAction) {}, (int) 1 => '_get' ) array() - /home/kweather_ftp/shared/plugins/Crud/Controller/Component/CrudComponent.php line 218 → CrudAction->handle(CrudSubject)
try {$subject = $this->trigger('beforeHandle', compact('args', 'action'));$response = $this->action($subject->action)->handle($subject);if ($response instanceof CakeResponse) {object(CrudSubject) { crud => object(CrudComponent) {} controller => object(GirlPagesController) {} modelClass => 'GirlPage' model => object(GirlPage) {} request => object(CakeRequest) {} response => object(CakeResponse) {} action => 'index' args => array([maximum depth reached]) stopped => false [protected] _events => array( [maximum depth reached] ) } - /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/GirlPagesController.php line 107 → CrudComponent->execute(string)
$conditions = $this->{$this->modelClass}->parseCriteria($this->Prg->parsedParams());$this->paginate[$this->modelClass] = Hash::merge($this->paginate[$this->modelClass], compact('conditions'));return $this->Crud->execute('index');}'index'
- /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/GirlPagesController.php line 113 → GirlPagesController->index()
public function ranking() {$this->paginate[$this->modelClass] = Hash::merge($this->{$this->modelClass}->defaultQueryForRanking(), $this->paginate[$this->modelClass]);$this->index();$this->render('index'); - [internal function] → GirlPagesController->ranking()
- CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(GirlPagesController, array)
'action' => $request->params['action']));}return $method->invokeArgs($this, $request->params['pass']);object(GirlPagesController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) paginate => array( [maximum depth reached] ) dispatchComponents => array( [maximum depth reached] ) name => 'GirlPages' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'GirlPages' layoutPath => null viewVars => array([maximum depth reached]) view => 'ranking' 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 => 'GirlPage' modelKey => 'girl_page' validationErrors => null Toolbar => object(ToolbarComponent) {} Acl => object(AclComponent) {} Auth => object(GirlAuthComponent) {} RememberMe => object(RememberMeComponent) {} Session => object(SessionComponent) {} Crud => object(CrudComponent) {} Prg => object(PrgComponent) {} GirlPage => object(GirlPage) {} presetVars => array( [maximum depth reached] ) Paginator => object(PaginatorComponent) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array() - /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 => 'girls/ranking' base => '' webroot => '/' here => '/girls/ranking' [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 => 'girls/ranking' base => '' webroot => '/' here => '/girls/ranking' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } - CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(GirlPagesController, CakeRequest, CakeResponse)
));}$response = $this->_invoke($controller, $request, $response);if (isset($request->params['return'])) {object(GirlPagesController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) paginate => array( [maximum depth reached] ) dispatchComponents => array( [maximum depth reached] ) name => 'GirlPages' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'GirlPages' layoutPath => null viewVars => array([maximum depth reached]) view => 'ranking' 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 => 'GirlPage' modelKey => 'girl_page' validationErrors => null Toolbar => object(ToolbarComponent) {} Acl => object(AclComponent) {} Auth => object(GirlAuthComponent) {} RememberMe => object(RememberMeComponent) {} Session => object(SessionComponent) {} Crud => object(CrudComponent) {} Prg => object(PrgComponent) {} GirlPage => object(GirlPage) {} presetVars => array( [maximum depth reached] ) Paginator => object(PaginatorComponent) {} [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 => 'girls/ranking' base => '' webroot => '/' here => '/girls/ranking' [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 => 'girls/ranking' base => '' webroot => '/' here => '/girls/ranking' [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]) }

