Warning (2) : PDO::__construct() [pdo.--construct ]: [2002] No such file or directory (trying to connect via unix:///var/lib/mysql/mysql.sock) [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=localhost;port=3306;dbname=iio11_iio1'
$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::escapeField() - CORE/Cake/Model/Model.php, line 3132
TreeBehavior::children() - CORE/Cake/Model/Behavior/TreeBehavior.php, line 313
BehaviorCollection::dispatchMethod() - CORE/Cake/Model/BehaviorCollection.php, line 244
Model::__call() - CORE/Cake/Model/Model.php, line 796
Category::children() - APP/Controller/AppController.php, line 97
AppController::beforeFilter() - APP/Controller/AppController.php, line 97
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 184 Warning (2) : PDO::__construct() [pdo.--construct ]: [2002] No such file or directory (trying to connect via unix:///var/lib/mysql/mysql.sock) [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=localhost;port=3306;dbname=iio11_iio1'
$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::getDataSource() - CORE/Cake/Model/Model.php, line 3245
Model::escapeField() - CORE/Cake/Model/Model.php, line 3132
TreeBehavior::children() - CORE/Cake/Model/Behavior/TreeBehavior.php, line 313
BehaviorCollection::dispatchMethod() - CORE/Cake/Model/BehaviorCollection.php, line 244
Model::__call() - CORE/Cake/Model/Model.php, line 796
Category::children() - APP/Controller/AppController.php, line 97
AppController::beforeFilter() - APP/Controller/AppController.php, line 97
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 156
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 95
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122
Errors
Missing Database Connection
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] No such file or directory
Notice:
If you want to customize this error message, create app/View/Errors/missing_connection.ctp.
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 3132 → Model->getDataSource() if (empty( $field )) {
$field = $this -> primaryKey ;
}
$db = $this -> getDataSource ();
if ( strpos ( $field , $db -> name ( $alias ) . '.' ) === 0 ) {
CORE/Cake/Model/Behavior/TreeBehavior.php line 313 → Model->escapeField(string) $recursive = $overrideRecursive ;
}
if (! $order ) {
$order = $Model -> escapeField ( $left ) . " asc" ;
}
[internal function] → TreeBehavior->children(Category, integer, boolean) object(Category) {
actsAs => array(
[maximum depth reached]
)
displayField => 'name'
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => null
data => array([maximum depth reached])
schemaName => null
table => 'categories'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Category'
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
(int) 27
true
CORE/Cake/Model/BehaviorCollection.php line 244 → call_user_func_array(array, array) return call_user_func_array (
array( $this -> _loaded [ $method [ 0 ]], $method [ 1 ]),
array_merge (array(& $model ), $params )
);
} array(
(int) 0 => object(TreeBehavior) {},
(int) 1 => 'children'
)
array(
(int) 0 => object(Category) {},
(int) 1 => (int) 27,
(int) 2 => true
)
CORE/Cake/Model/Model.php line 796 → BehaviorCollection->dispatchMethod(Category, string, array) * @return mixed Whatever is returned by called method
*/
public function __call ( $method , $params ) {
$result = $this -> Behaviors -> dispatchMethod ( $this , $method , $params );
if ( $result !== array( 'unhandled' )) { object(Category) {
actsAs => array(
[maximum depth reached]
)
displayField => 'name'
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => null
data => array([maximum depth reached])
schemaName => null
table => 'categories'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Category'
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
'children'
array(
(int) 0 => (int) 27,
(int) 1 => true
)
APP/Controller/AppController.php line 97 → Model->__call(string, array) $this -> paginate [ 'limit' ] = 10 ;
} else {
$this -> loadModel ( 'Category' );
$libSubmenu = $this -> Category -> children ( 27 , true );
$this -> set ( 'site_menu' , Configure :: read ( 'site_menu_' . $jezikTrenutni )); 'children'
array(
(int) 0 => (int) 27,
(int) 1 => true
)
APP/Controller/AppController.php line 97 → Category->children(integer, boolean) $this -> paginate [ 'limit' ] = 10 ;
} else {
$this -> loadModel ( 'Category' );
$libSubmenu = $this -> Category -> children ( 27 , true );
$this -> set ( 'site_menu' , Configure :: read ( 'site_menu_' . $jezikTrenutni ));
[internal function] → AppController->beforeFilter(CakeEvent) object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(FilesController) {}
[protected] _stopped => false
}
CORE/Cake/Event/CakeEventManager.php line 248 → 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(FilesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(FilesController) {}
[protected] _stopped => false
}
CORE/Cake/Controller/Controller.php line 670 → CakeEventManager->dispatch(CakeEvent) * @return void
*/
public function startupProcess () {
$this -> getEventManager ()-> dispatch (new CakeEvent ( 'Controller.initialize' , $this ));
$this -> getEventManager ()-> dispatch (new CakeEvent ( 'Controller.startup' , $this )); object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(FilesController) {}
[protected] _stopped => false
}
CORE/Cake/Routing/Dispatcher.php line 184 → Controller->startupProcess() */
protected function _invoke ( Controller $controller , CakeRequest $request , CakeResponse $response ) {
$controller -> constructClasses ();
$controller -> startupProcess ();
CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(FilesController, CakeRequest, CakeResponse) ));
}
$response = $this -> _invoke ( $controller , $request , $response );
if (isset( $request -> params [ 'return' ])) { object(FilesController) {
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
paginate => array([maximum depth reached])
name => 'Files'
helpers => array([maximum depth reached])
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Files'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'getfiles'
layout => 'default'
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 => 'File'
modelKey => 'file'
validationErrors => null
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
Upload => object(UploadComponent) {}
Category => object(Category) {}
[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 => 'Files/getfiles/74/59'
base => ''
webroot => '/'
here => '/Files/getfiles/74/59'
[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 => 'Files/getfiles/74/59'
base => ''
webroot => '/'
here => '/Files/getfiles/74/59'
[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])
}
ROOT/index.php line 43 → require(string) define ( 'CAKE_CORE_INCLUDE_PATH' , ROOT . DS . 'lib' );
}
require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php' ;
'/home/iio11/public_html/app/webroot/index.php'