Warning (2) : PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php , line 158 ]Code Context $config [ 'password' ],
$flags
);
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => (int) 0,
(int) 1000 => (int) 1,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=mysql01.animallivre.hospedagemdesites.ws;port=3306;dbname=animallivre'
$this = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => null
numRows => null
took => null
configKeyName => null
virtualFieldSeparator => '__'
connected => false
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
cacheSources => true
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true
)
[protected] _connection => null
[protected] _useAlias => true
[protected] _charsets => array()
[protected] _result => null
[protected] _queriesCnt => (int) 0
[protected] _queriesTime => null
[protected] _queriesLog => array()
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array()
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'or',
(int) 3 => 'not',
(int) 4 => 'in',
(int) 5 => 'between',
(int) 6 => 'regexp',
(int) 7 => 'similar to'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null
)
[protected] _methodCacheChange => false
[protected] _descriptions => array()
[protected] _sources => null
[protected] _transactionStarted => false
} PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 158
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 262
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 107
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3221
Model::setSource() - CORE/Cake/Model/Model.php, line 1108
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3243
Model::__call() - CORE/Cake/Model/Model.php, line 800
Pagina::findById() - APP/Controller/PaginasController.php, line 46
PaginasController::ver() - APP/Controller/PaginasController.php, line 46
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 109 Warning (2) : PDO::__construct() [pdo.construct ]: php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php , line 158 ]Code Context $config [ 'password' ],
$flags
);
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => (int) 0,
(int) 1000 => (int) 1,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=mysql01.animallivre.hospedagemdesites.ws;port=3306;dbname=animallivre'
$this = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => null
numRows => null
took => null
configKeyName => null
virtualFieldSeparator => '__'
connected => false
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'datasource' => 'Database/Mysql',
'encoding' => 'utf8'
)
cacheSources => true
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true
)
[protected] _connection => null
[protected] _useAlias => true
[protected] _charsets => array()
[protected] _result => null
[protected] _queriesCnt => (int) 0
[protected] _queriesTime => null
[protected] _queriesLog => array()
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array()
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'or',
(int) 3 => 'not',
(int) 4 => 'in',
(int) 5 => 'between',
(int) 6 => 'regexp',
(int) 7 => 'similar to'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null
)
[protected] _methodCacheChange => false
[protected] _descriptions => array()
[protected] _sources => null
[protected] _transactionStarted => false
} PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 158
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 262
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 107
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3221
Model::setSource() - CORE/Cake/Model/Model.php, line 1108
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3243
Model::find() - CORE/Cake/Model/Model.php, line 2696
AppController::beforeRender() - APP/Controller/AppController.php, line 66
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::render() - CORE/Cake/Controller/Controller.php, line 921
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
[main] - [internal], line ??
CakePHP: the rapid development php framework:
Adotar um animal é bom demais.
Erro no Servidor
Tente o acesso novamente mais tarde.
Stack Trace
CORE/Cake/Model/Datasource/DboSource.php line 262 → Mysql->connect() ));
}
if ( $autoConnect ) {
$this -> connect ();
}
CORE/Cake/Model/ConnectionManager.php line 107 → 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' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)
CORE/Cake/Model/Model.php line 3221 → ConnectionManager::getDataSource(string) if ( $dataSource ) {
$this -> useDbConfig = $dataSource ;
}
$db = ConnectionManager :: getDataSource ( $this -> useDbConfig );
if (!empty( $oldConfig ) && isset( $db -> config [ 'prefix' ])) {
CORE/Cake/Model/Model.php line 1108 → Model->setDataSource(string) * @return void
*/
public function setSource ( $tableName ) {
$this -> setDataSource ( $this -> useDbConfig );
$db = ConnectionManager :: getDataSource ( $this -> useDbConfig );
CORE/Cake/Model/Model.php line 3243 → 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() if ( $result !== array( 'unhandled' )) {
return $result ;
}
$return = $this -> getDataSource ()-> query ( $method , $params , $this );
return $return ;
APP/Controller/PaginasController.php line 46 → Model->__call(string, array) 'Subcategoria.nome' ,
'Subcategoria.categoria_id'
)
);
$data = array(); 'findById'
array(
(int) 0 => '3396',
(int) 1 => array(
(int) 0 => 'Pagina.id',
(int) 1 => 'Pagina.nome',
(int) 2 => 'Pagina.fonte',
(int) 3 => 'Pagina.fonteemail',
(int) 4 => 'Pagina.fontelink',
(int) 5 => 'Pagina.visualizacoes',
(int) 6 => 'Pagina.postagem',
(int) 7 => 'Pagina.subcategoria_id',
(int) 8 => 'Pagina.conteudo',
(int) 9 => 'Pagina.foto',
(int) 10 => 'Pagina.foto_dir',
(int) 11 => 'Subcategoria.id',
(int) 12 => 'Subcategoria.nome',
(int) 13 => 'Subcategoria.categoria_id'
)
)
APP/Controller/PaginasController.php line 46 → Pagina->findById(string, array) 'Subcategoria.nome' ,
'Subcategoria.categoria_id'
)
);
$data = array(); '3396'
array(
(int) 0 => 'Pagina.id',
(int) 1 => 'Pagina.nome',
(int) 2 => 'Pagina.fonte',
(int) 3 => 'Pagina.fonteemail',
(int) 4 => 'Pagina.fontelink',
(int) 5 => 'Pagina.visualizacoes',
(int) 6 => 'Pagina.postagem',
(int) 7 => 'Pagina.subcategoria_id',
(int) 8 => 'Pagina.conteudo',
(int) 9 => 'Pagina.foto',
(int) 10 => 'Pagina.foto_dir',
(int) 11 => 'Subcategoria.id',
(int) 12 => 'Subcategoria.nome',
(int) 13 => 'Subcategoria.categoria_id'
)
[internal function] → PaginasController->ver(string, string) 'MzM5Ng=='
'Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
CORE/Cake/Controller/Controller.php line 486 → ReflectionMethod->invokeArgs(PaginasController, array) 'action' => $request -> params [ 'action' ]
));
}
return $method -> invokeArgs ( $this , $request -> params [ 'pass' ]);
object(PaginasController) {
helpers => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
layout => 'principal'
page_title => ''
busca_texto => ''
components => array(
[maximum depth reached]
)
name => 'Paginas'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Paginas'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'ver'
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 => 'Categoria'
modelKey => 'pagina'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Gzip => object(GzipComponent) {}
Pagina => object(Pagina) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
array(
(int) 0 => 'MzM5Ng==',
(int) 1 => 'Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
)
CORE/Cake/Routing/Dispatcher.php line 187 → Controller->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 => 'pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
base => ''
webroot => '/'
here => '/pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(PaginasController, CakeRequest, CakeResponse) ));
}
$response = $this -> _invoke ( $controller , $request , $response );
if (isset( $request -> params [ 'return' ])) {
object(PaginasController) {
helpers => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
layout => 'principal'
page_title => ''
busca_texto => ''
components => array(
[maximum depth reached]
)
name => 'Paginas'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Paginas'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'ver'
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 => 'Categoria'
modelKey => 'pagina'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Gzip => object(GzipComponent) {}
Pagina => object(Pagina) {}
[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 => 'pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
base => ''
webroot => '/'
here => '/pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
[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] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
APP/webroot/index.php line 109 → 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 => 'pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
base => ''
webroot => '/'
here => '/pagina/MzM5Ng==/Maus_tratos_contra_animais_a_importancia_da_repressao_juridica'
[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] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}