Warning (2): mysql_connect() [http://php.net/function.mysql-connect]: Too many connections [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 561]Code |
Context$config = array(
"persistent" => false,
"host" => "*****",
"login" => "*****",
"password" => "*****",
"database" => "*****",
"port" => "*****",
"driver" => "mysql",
"prefix" => "*****"
)
mysql_connect - [internal], line ??
DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 561
DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 143
ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 114
Model::setDataSource() - CORE/cake/libs/model/model.php, line 2836
Model::__construct() - CORE/cake/libs/model/model.php, line 469
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 150
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): mysql_query() expects parameter 2 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613]Code |
Context$sql = "SHOW FULL COLUMNS FROM `cities`"
mysql_query - [internal], line ??
DboMysql::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 253
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 287
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 125
Model::schema() - CORE/cake/libs/model/model.php, line 929
Model::setSource() - CORE/cake/libs/model/model.php, line 780
Model::__construct() - CORE/cake/libs/model/model.php, line 474
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): mysql_errno() expects parameter 1 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 695]Codemysql_errno - [internal], line ??
DboMysql::lastError() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 695
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 257
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 287
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 125
Model::schema() - CORE/cake/libs/model/model.php, line 929
Model::setSource() - CORE/cake/libs/model/model.php, line 780
Model::__construct() - CORE/cake/libs/model/model.php, line 474
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 127]Code |
Context $cols = $this->query('SHOW FULL COLUMNS FROM ' . $this->fullTableName($model));
foreach ($cols as $column) {
$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = NULL
City::$id = NULL
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = NULL
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = NULL
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$cache = null
$fields = false
$cols = false
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 127
Model::schema() - CORE/cake/libs/model/model.php, line 929
Model::setSource() - CORE/cake/libs/model/model.php, line 780
Model::__construct() - CORE/cake/libs/model/model.php, line 474
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE/cake/libs/model/datasources/dbo_source.php, line 1953]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$alias = "City"
$fields = array()
$quote = true
$this = DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$fieldParameters = array
DboMysql::$tableParameters = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$methodCache = array
DboMysql::$cacheMethods = true
DboMysql::$__bypass = false
DboMysql::$__sqlOps = array
DboMysql::$virtualFieldSeparator = "__"
DboMysql::$connected = false
DboMysql::$fullDebug = false
DboMysql::$error = NULL
DboMysql::$affected = NULL
DboMysql::$numRows = NULL
DboMysql::$took = 0
DboMysql::$_result = NULL
DboMysql::$_queriesCnt = 0
DboMysql::$_queriesTime = NULL
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = false
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$__booleans = array
array_keys - [internal], line ??
DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1953
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 797
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE/cake/libs/model/datasources/dbo_source.php, line 1966]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$alias = "City"
$fields = array()
$quote = true
$this = DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$fieldParameters = array
DboMysql::$tableParameters = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$methodCache = array
DboMysql::$cacheMethods = true
DboMysql::$__bypass = false
DboMysql::$__sqlOps = array
DboMysql::$virtualFieldSeparator = "__"
DboMysql::$connected = false
DboMysql::$fullDebug = false
DboMysql::$error = NULL
DboMysql::$affected = NULL
DboMysql::$numRows = NULL
DboMysql::$took = 0
DboMysql::$_result = NULL
DboMysql::$_queriesCnt = 0
DboMysql::$_queriesTime = NULL
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = false
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$__booleans = array
$cacheKey = -1369354149
$return = null
$allFields = true
array_keys - [internal], line ??
DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1966
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 797
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_filter() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1970]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$alias = "City"
$fields = null
$quote = true
$this = DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$fieldParameters = array
DboMysql::$tableParameters = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$methodCache = array
DboMysql::$cacheMethods = true
DboMysql::$__bypass = false
DboMysql::$__sqlOps = array
DboMysql::$virtualFieldSeparator = "__"
DboMysql::$connected = false
DboMysql::$fullDebug = false
DboMysql::$error = NULL
DboMysql::$affected = NULL
DboMysql::$numRows = NULL
DboMysql::$took = 0
DboMysql::$_result = NULL
DboMysql::$_queriesCnt = 0
DboMysql::$_queriesTime = NULL
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = false
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$__booleans = array
$cacheKey = -1369354149
$return = null
$allFields = true
array_filter - [internal], line ??
DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1970
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 797
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_values() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1970]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$alias = "City"
$fields = null
$quote = true
$this = DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$fieldParameters = array
DboMysql::$tableParameters = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$methodCache = array
DboMysql::$cacheMethods = true
DboMysql::$__bypass = false
DboMysql::$__sqlOps = array
DboMysql::$virtualFieldSeparator = "__"
DboMysql::$connected = false
DboMysql::$fullDebug = false
DboMysql::$error = NULL
DboMysql::$affected = NULL
DboMysql::$numRows = NULL
DboMysql::$took = 0
DboMysql::$_result = NULL
DboMysql::$_queriesCnt = 0
DboMysql::$_queriesTime = NULL
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = false
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$__booleans = array
$cacheKey = -1369354149
$return = null
$allFields = true
array_values - [internal], line ??
DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1970
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 797
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 2052]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$alias = "City"
$fields = null
$quote = true
$this = DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$fieldParameters = array
DboMysql::$tableParameters = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$methodCache = array
DboMysql::$cacheMethods = true
DboMysql::$__bypass = false
DboMysql::$__sqlOps = array
DboMysql::$virtualFieldSeparator = "__"
DboMysql::$connected = false
DboMysql::$fullDebug = false
DboMysql::$error = NULL
DboMysql::$affected = NULL
DboMysql::$numRows = NULL
DboMysql::$took = 0
DboMysql::$_result = NULL
DboMysql::$_queriesCnt = 0
DboMysql::$_queriesTime = NULL
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = false
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$__booleans = array
$cacheKey = -1369354149
$return = null
$allFields = true
$virtual = array()
$virtualFields = false
$count = 0
array_unique - [internal], line ??
DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 2052
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 797
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1244]Code |
Context$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
$linkModel = null
$type = null
$association = null
$assocData = array(
"conditions" => array(),
"fields" => array(),
"joins" => array(),
"order" => array(),
"limit" => array(),
"offset" => array(),
"group" => array()
)
$queryData = array(
"conditions" => array(
"City.slug" => "east-bridgewater-ma"
),
"fields" => null,
"joins" => array(),
"limit" => 1,
"offset" => array(),
"order" => array(
null
),
"page" => 1,
"group" => array(),
"callbacks" => true,
"recursive" => null
)
$external = false
$resultSet = null
array_unique - [internal], line ??
DboSource::generateAssociationQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 1244
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 821
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): mysql_real_escape_string() expects parameter 2 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 684]Code |
Context$data = "east-bridgewater-ma"
$column = "string"
$safe = false
$parent = null
mysql_real_escape_string - [internal], line ??
DboMysql::value() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 684
DboSource::__parseKey() - CORE/cake/libs/model/datasources/dbo_source.php, line 2276
DboSource::conditionKeysToString() - CORE/cake/libs/model/datasources/dbo_source.php, line 2218
DboSource::conditions() - CORE/cake/libs/model/datasources/dbo_source.php, line 2098
DboSource::buildStatement() - CORE/cake/libs/model/datasources/dbo_source.php, line 1462
DboSource::generateAssociationQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 1255
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 821
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): implode() [http://php.net/function.implode]: Invalid arguments passed [CORE/cake/libs/model/datasources/dbo_source.php, line 1463]Code |
Context$query = array(
"offset" => array(),
"joins" => array(),
"fields" => null,
"table" => "`cities`",
"alias" => "City",
"limit" => 1,
"conditions" => array(
"City.slug" => "east-bridgewater-ma"
),
"order" => array(
null
),
"group" => array()
)
$model = City
City::$name = "City"
City::$useDbConfig = "default"
City::$useTable = "cities"
City::$displayField = false
City::$id = false
City::$data = array
City::$table = "cities"
City::$primaryKey = "id"
City::$_schema = false
City::$validate = array
City::$validationErrors = array
City::$tablePrefix = ""
City::$alias = "City"
City::$tableToModel = array
City::$logTransactions = false
City::$cacheQueries = false
City::$belongsTo = array
City::$hasOne = array
City::$hasMany = array
City::$hasAndBelongsToMany = array
City::$actsAs = NULL
City::$Behaviors = BehaviorCollection object
City::$whitelist = array
City::$cacheSources = true
City::$findQueryType = "first"
City::$recursive = 1
City::$order = NULL
City::$virtualFields = array
City::$__associationKeys = array
City::$__associations = array
City::$__backAssociation = array
City::$__insertID = NULL
City::$__numRows = NULL
City::$__affectedRows = NULL
City::$_findMethods = array
implode - [internal], line ??
DboSource::buildStatement() - CORE/cake/libs/model/datasources/dbo_source.php, line 1463
DboSource::generateAssociationQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 1255
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 821
Model::find() - CORE/cake/libs/model/model.php, line 2130
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 349
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
City::findBySlug() - [internal], line ??
BusinessesController::viewByCity() - APP/controllers/businesses_controller.php, line 93
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83