Warning (2) : PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php , line 183 ]Code Context $config [ 'password' ],
$flags
);
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array(),
'datasource' => 'Database/Mysql'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2
)
$dsn = 'mysql:host=qtrove-mysql-instance.cv5ekuft35lt.ap-south-1.rds.amazonaws.com;port=3306;dbname=qtrove'
$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]
)
)
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 => true
affected => null
numRows => null
took => null
configKeyName => null
virtualFieldSeparator => '__'
connected => false
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql'
)
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 => '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 183
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 105
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3482
Model::setSource() - CORE/Cake/Model/Model.php, line 1128
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3504
Model::_findCount() - CORE/Cake/Model/Model.php, line 3024
Model::buildQuery() - CORE/Cake/Model/Model.php, line 2937
Model::find() - CORE/Cake/Model/Model.php, line 2872
AppController::beforeRender() - APP/Controller/AppController.php, line 140
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Controller::render() - CORE/Cake/Controller/Controller.php, line 927
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 198
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 99 Warning (2) : PDO::__construct() [pdo.construct ]: php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php , line 183 ]Code Context $config [ 'password' ],
$flags
);
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array(),
'datasource' => 'Database/Mysql'
)
$flags = array(
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2
)
$dsn = 'mysql:host=qtrove-mysql-instance.cv5ekuft35lt.ap-south-1.rds.amazonaws.com;port=3306;dbname=qtrove'
$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]
)
)
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 => true
affected => null
numRows => null
took => null
configKeyName => null
virtualFieldSeparator => '__'
connected => false
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'prefix' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql'
)
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 => '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 183
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 260
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 105
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3507
Model::_findCount() - CORE/Cake/Model/Model.php, line 3024
Model::buildQuery() - CORE/Cake/Model/Model.php, line 2937
Model::find() - CORE/Cake/Model/Model.php, line 2872
AppController::beforeRender() - APP/Controller/AppController.php, line 140
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Controller::render() - CORE/Cake/Controller/Controller.php, line 927
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120
[main] - [internal], line ??
CakePHP: the rapid development php framework:
Errors
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
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
)
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 3024 → Model->getDataSource() $query = $this ->{ '_find' . ucfirst ( $query [ 'type' ])}( 'before' , $query );
}
$db = $this -> getDataSource ();
$query [ 'order' ] = false ;
CORE/Cake/Model/Model.php line 2937 → Model->_findCount(string, array) );
if ( $this -> findMethods [ $type ] === true ) {
$query = $this ->{ '_find' . ucfirst ( $type )}( 'before' , $query );
}
'before'
array(
'conditions' => array(
'Order.approvalStatus' => 'NEW',
'Order.status' => array(
[maximum depth reached]
)
),
'fields' => 'DISTINCT Order.id',
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'limit' => null,
'offset' => null,
'order' => null,
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
CORE/Cake/Model/Model.php line 2872 → Model->buildQuery(string, array) $this -> findQueryType = $type ;
$this -> id = $this -> getID ();
$query = $this -> buildQuery ( $type , $query );
if ( $query === null ) {
'count'
array(
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'conditions' => array(
'Order.approvalStatus' => 'NEW',
'Order.status' => array(
[maximum depth reached]
)
),
'fields' => 'DISTINCT Order.id'
)
APP/Controller/AppController.php line 140 → Model->find(string, array) ),
'conditions' => $defaultCondition ,
'fields' => 'DISTINCT Order.id'
));
}
'count'
array(
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'conditions' => array(
'Order.approvalStatus' => 'NEW',
'Order.status' => array(
[maximum depth reached]
)
),
'fields' => 'DISTINCT Order.id'
)
[internal function] → AppController->beforeRender(CakeEvent) object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(LoginController) {}
[protected] _stopped => false
}
CORE/Cake/Event/CakeEventManager.php line 242 → call_user_func(array, CakeEvent) if ( $listener [ 'passParams' ] === true ) {
$result = call_user_func_array ( $listener [ 'callable' ], $event -> data );
} else {
$result = call_user_func ( $listener [ 'callable' ], $event );
}
array(
(int) 0 => object(LoginController) {},
(int) 1 => 'beforeRender'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(LoginController) {}
[protected] _stopped => false
}
CORE/Cake/Controller/Controller.php line 927 → CakeEventManager->dispatch(CakeEvent) */
public function render ( $view = null , $layout = null ) {
$event = new CakeEvent ( 'Controller.beforeRender' , $this );
$this -> getEventManager ()-> dispatch ( $event );
if ( $event -> isStopped ()) {
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.beforeRender'
[protected] _subject => object(LoginController) {}
[protected] _stopped => false
}
CORE/Cake/Routing/Dispatcher.php line 198 → Controller->render() }
if ( $render && $controller -> autoRender ) {
$response = $controller -> render ();
} elseif (!( $result instanceof CakeResponse ) && $response -> body () === null ) {
CORE/Cake/Routing/Dispatcher.php line 165 → Dispatcher->_invoke(LoginController, CakeRequest) ));
}
$response = $this -> _invoke ( $controller , $request );
if (isset( $request -> params [ 'return' ])) {
object(LoginController) {
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
techEmail => array(
[maximum depth reached]
)
invoiceEmailArray => array(
[maximum depth reached]
)
sellerVerficationEmails => array(
[maximum depth reached]
)
adminProdEmail => array(
[maximum depth reached]
)
name => 'Login'
helpers => array([maximum depth reached])
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Login'
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 => 'Website'
cacheAction => false
passedArgs => array([maximum depth reached])
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'WebSession'
modelKey => 'login'
validationErrors => null
Cookie => object(CookieComponent) {}
Order => object(Order) {}
[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 => 'website/login'
base => ''
webroot => '/'
here => '/website/login'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
APP/webroot/index.php line 99 → 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 => 'website/login'
base => ''
webroot => '/'
here => '/website/login'
[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])
}