Warning (2): PDO::__construct(): php_network_getaddresses: getaddrinfo failed: System error [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184]Code Context $config['password'],
$flags
);
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => false,
'flags' => array(),
'datasource' => 'Database/Mysql',
'prefix' => '',
'encoding' => 'utf8'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=tripoffbeatdb.ccottsh3rtj4.ap-south-1.rds.amazonaws.com;port=3306;dbname=tripoffbeat'
$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]
),
'unsigned' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
),
'comment' => 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]
),
'decimal' => 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 => false
affected => null
numRows => null
took => null
configKeyName => null
virtualFieldSeparator => '__'
connected => false
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql',
'prefix' => '',
'encoding' => 'utf8'
)
cacheSources => true
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array([maximum depth reached])
)
[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 => 'rlike',
(int) 3 => 'or',
(int) 4 => 'not',
(int) 5 => 'in',
(int) 6 => 'between',
(int) 7 => 'regexp',
(int) 8 => 'similar to'
)
[protected] _sqlBoolOps => array(
(int) 0 => 'and',
(int) 1 => 'or',
(int) 2 => 'not',
(int) 3 => 'and not',
(int) 4 => 'or not',
(int) 5 => 'xor',
(int) 6 => '||',
(int) 7 => '&&'
)
[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 184
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 269
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 105
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3640
Model::setSource() - CORE/Cake/Model/Model.php, line 1162
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3667
Model::_readDataSource() - CORE/Cake/Model/Model.php, line 3038
Model::find() - CORE/Cake/Model/Model.php, line 3010
AppController::getCurrentCities() - APP/Controller/AppController.php, line 68
AppController::beforeFilter() - APP/Controller/AppController.php, line 7
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 113
Warning (2): Cannot modify header information - headers already sent by (output started at /home/tripoffbeat/public_html/lib/Cake/Utility/Debugger.php:795) [APP/Config/core.php, line 231]Code Context
Configure::write('Exception.handler', function ($error) {
header('Location: https://www.tripoffbeat.com');
$error = object(MissingConnectionException) {
[protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.'
[protected] _attributes => array(
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: System error',
'enabled' => true
)
[protected] _responseHeaders => null
[protected] message => 'Database connection "Mysql" is missing, or could not be created.'
[protected] code => (int) 500
[protected] file => '/home/tripoffbeat/public_html/lib/Cake/Model/Datasource/Database/Mysql.php'
[protected] line => (int) 192
}
header - [internal], line ??
Configure::{closure}() - APP/Config/core.php, line 231
[main] - [internal], line ??