SQLSTATE[HY000] [2002] No route to host 3rd1d
Erro:
Ocorreu um Erro Interno 494649
Stack Trace 186bn
- 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(
'' => '*****',
'' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)
- CORE/Cake/Model/Model.php line 3482 → ConnectionManager::getDataSource(string)
$this->useDbConfig = $dataSource;
}
$db = ConnectionManager::getDataSource($this->useDbConfig);
if (!empty($oldConfig) && isset($db->config['prefix'])) {
- CORE/Cake/Model/Model.php line 1128 → Model->setDataSource(string)
* @return void
*/
public function setSource($tableName) {
$this->setDataSource($this->useDbConfig);
$db = ConnectionManager::getDataSource($this->useDbConfig);
- CORE/Cake/Model/Model.php line 3504 → 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 2905 → Model->getDataSource()
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
- CORE/Cake/Model/Model.php line 2877 → Model->_readDataSource(string, array)
return null;
}
return $this->_readDataSource($type, $query);
}
'first'
array(
'conditions' => array(
'Categoria.slug' => 'entretenimento'
),
'fields' => array(
(int) 0 => 'Categoria.categoria_id',
(int) 1 => 'Categoria.categoria'
),
's' => array(),
'limit' => (int) 1,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
- APP/Controller/NoticiasController.php line 12 → Model->find(string, array)
public function index($slug_categoria = null) {
$limite = 8;
$categoria = $this->Categoria->find('first', array('conditions' => array('Categoria.slug' => $slug_categoria), 'fields' => array('Categoria.categoria_id', 'Categoria.categoria')));
'first'
array(
'conditions' => array(
'Categoria.slug' => 'entretenimento'
),
'fields' => array(
(int) 0 => 'Categoria.categoria_id',
(int) 1 => 'Categoria.categoria'
)
)
- [internal function] → NoticiasController->index(string)
- CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(NoticiasController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['']);
object(NoticiasController) {
components => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
name => 'Noticias'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Noticias'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
edArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Noticia'
modelKey => 'noticia'
validationErrors => null
Session => object(SessionComponent) {}
Paginator => object(PaginatorComponent) {}
Categoria => object(Categoria) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
array(
(int) 0 => 'entretenimento'
)
- CORE/Cake/Routing/Dispatcher.php line 191 → Controller->invokeAction(CakeRequest)
$response = $controller->response;
$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 => 'noticias/index/entretenimento/page:18'
base => ''
webroot => '/'
here => '/noticias/index/entretenimento/page:18'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- CORE/Cake/Routing/Dispatcher.php line 165 → Dispatcher->_invoke(NoticiasController, CakeRequest)
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
object(NoticiasController) {
components => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
name => 'Noticias'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Noticias'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
edArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Noticia'
modelKey => 'noticia'
validationErrors => null
Session => object(SessionComponent) {}
Paginator => object(PaginatorComponent) {}
Categoria => object(Categoria) {}
[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 => 'noticias/index/entretenimento/page:18'
base => ''
webroot => '/'
here => '/noticias/index/entretenimento/page:18'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- ROOT/index.php line 111 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(
new CakeRequest(), new CakeResponse()
);
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'noticias/index/entretenimento/page:18'
base => ''
webroot => '/'
here => '/noticias/index/entretenimento/page:18'
[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])
}