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 = 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.revistaecotur1.hospedagemdesites.ws;port=3306;dbname=revistaecotur1' $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]: [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (trying to connect via tcp://mysql01.revistaecotur1.hospedagemdesites.ws:3306) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 158]Code Context$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.revistaecotur1.hospedagemdesites.ws;port=3306;dbname=revistaecotur1' $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
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp.
));}if ($autoConnect) {$this->connect();}
'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' )
if ($dataSource) {$this->useDbConfig = $dataSource;}$db = ConnectionManager::getDataSource($this->useDbConfig);if (!empty($oldConfig) && isset($db->config['prefix'])) {
'default'
* @return void*/public function setSource($tableName) {$this->setDataSource($this->useDbConfig);$db = ConnectionManager::getDataSource($this->useDbConfig);
'default'
public function getDataSource() {if (!$this->_sourceConfigured && $this->useTable !== false) {$this->_sourceConfigured = true;$this->setSource($this->useTable);}
'paginas'
if ($result !== array('unhandled')) {return $result;}$return = $this->getDataSource()->query($method, $params, $this);return $return;
'Subcategoria.nome','Subcategoria.categoria_id'));$data = array();
'findById' array( (int) 0 => '1840', (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' ) )
'Subcategoria.nome','Subcategoria.categoria_id'));$data = array();
'1840' 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' )
'MTg0MA==' 'KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
'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 => 'MTg0MA==',
(int) 1 => 'KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
)$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/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
base => ''
webroot => '/'
here => '/pagina/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}));}$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/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
base => ''
webroot => '/'
here => '/pagina/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
[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])
}$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/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
base => ''
webroot => '/'
here => '/pagina/MTg0MA==/KLM_e_WWF_unem_forcas_para_reduzir_emissoes_de_CO2'
[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])
}