Missing Database Table
Error: Database table celebrities for model Celebrity was not found.
Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp
Warning (2): mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 11 [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 454]Code | Context$config = array( "persistent" => false, "host" => "127.0.0.1:3310", "login" => "ktovmedicine", "password" => "9H0t3A3s", "database" => "ktovmedicine", "port" => "3306", "connect" => "mysql_pconnect", "driver" => "mysql", "prefix" => "", "encoding" => "UTF8" )mysql_connect - [internal], line ?? DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 454 DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 98 ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 106 Model::setDataSource() - CORE/cake/libs/model/model.php, line 2725 Model::__construct() - CORE/cake/libs/model/model.php, line 431 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 220 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206 [main] - APP/webroot/index.php, line 94
Warning (2): mysql_select_db() expects parameter 2 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 460]Code | Context$config = array( "persistent" => false, "host" => "127.0.0.1:3310", "login" => "ktovmedicine", "password" => "9H0t3A3s", "database" => "ktovmedicine", "port" => "3306", "connect" => "mysql_connect", "driver" => "mysql", "prefix" => "", "encoding" => "UTF8" )mysql_select_db - [internal], line ?? DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 460 DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 98 ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 106 Model::setDataSource() - CORE/cake/libs/model/model.php, line 2725 Model::__construct() - CORE/cake/libs/model/model.php, line 431 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 220 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206 [main] - APP/webroot/index.php, line 94
Warning (2): mysql_query() expects parameter 2 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 500]Code | Context$sql = "SET NAMES UTF8"mysql_query - [internal], line ?? DboMysql::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 500 DboMysqlBase::setEncoding() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 201 DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 465 DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 98 ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 106 Model::setDataSource() - CORE/cake/libs/model/model.php, line 2725 Model::__construct() - CORE/cake/libs/model/model.php, line 431 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 220 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206 [main] - APP/webroot/index.php, line 94
Warning (2): mysql_get_server_info() expects parameter 1 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 468]Code | Context$config = array( "persistent" => false, "host" => "127.0.0.1:3310", "login" => "ktovmedicine", "password" => "9H0t3A3s", "database" => "ktovmedicine", "port" => "3306", "connect" => "mysql_connect", "driver" => "mysql", "prefix" => "", "encoding" => "UTF8" )mysql_get_server_info - [internal], line ?? DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 468 DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 98 ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 106 Model::setDataSource() - CORE/cake/libs/model/model.php, line 2725 Model::__construct() - CORE/cake/libs/model/model.php, line 431 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 220 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206 [main] - APP/webroot/index.php, line 94
Warning (2): mysql_errno() expects parameter 1 to be resource, boolean given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 576]Codemysql_errno - [internal], line ?? DboMysql::lastError() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 576 DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 194 DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338 DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 222 DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 100 Model::schema() - CORE/cake/libs/model/model.php, line 930 DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1683 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 102]Code | Context$cols = $this->query('DESCRIBE ' . $this->fullTableName($model));
foreach ($cols as $column) {
$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = NULL Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $cache = null $fields = false $cols = falseDboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 102 Model::schema() - CORE/cake/libs/model/model.php, line 930 DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1683 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE/cake/libs/model/datasources/dbo_source.php, line 1683]Code | Context$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $alias = "Celebrity" $fields = array() $quote = true $this = DboMysql DboMysql::$description = "MySQL DBO Driver" DboMysql::$_baseConfig = array DboMysql::$startQuote = "`" DboMysql::$endQuote = "`" DboMysql::$_useAlias = false DboMysql::$_commands = array DboMysql::$columns = array DboMysql::$index = array DboMysql::$alias = "AS " DboMysql::$fieldCache = array DboMysql::$__bypass = false DboMysql::$__sqlOps = array 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 = NULL DboMysql::$connection = false DboMysql::$config = array DboMysql::$configKeyName = "default" DboMysql::$_transactionStarted = false DboMysql::$cacheSources = true DboMysql::$_log = NULL DboMysql::$__booleans = arrayarray_keys - [internal], line ?? DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1683 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58
Warning (2): array_filter() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1687]Code | Context$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $alias = "Celebrity" $fields = null $quote = true $this = DboMysql DboMysql::$description = "MySQL DBO Driver" DboMysql::$_baseConfig = array DboMysql::$startQuote = "`" DboMysql::$endQuote = "`" DboMysql::$_useAlias = false DboMysql::$_commands = array DboMysql::$columns = array DboMysql::$index = array DboMysql::$alias = "AS " DboMysql::$fieldCache = array DboMysql::$__bypass = false DboMysql::$__sqlOps = array 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 = NULL DboMysql::$connection = false DboMysql::$config = array DboMysql::$configKeyName = "default" DboMysql::$_transactionStarted = false DboMysql::$cacheSources = true DboMysql::$_log = NULL DboMysql::$__booleans = arrayarray_filter - [internal], line ?? DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1687 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58
Warning (2): array_values() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1687]Code | Context$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $alias = "Celebrity" $fields = null $quote = true $this = DboMysql DboMysql::$description = "MySQL DBO Driver" DboMysql::$_baseConfig = array DboMysql::$startQuote = "`" DboMysql::$endQuote = "`" DboMysql::$_useAlias = false DboMysql::$_commands = array DboMysql::$columns = array DboMysql::$index = array DboMysql::$alias = "AS " DboMysql::$fieldCache = array DboMysql::$__bypass = false DboMysql::$__sqlOps = array 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 = NULL DboMysql::$connection = false DboMysql::$config = array DboMysql::$configKeyName = "default" DboMysql::$_transactionStarted = false DboMysql::$cacheSources = true DboMysql::$_log = NULL DboMysql::$__booleans = arrayarray_values - [internal], line ?? DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1687 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1751]Code | Context$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $alias = "Celebrity" $fields = null $quote = true $this = DboMysql DboMysql::$description = "MySQL DBO Driver" DboMysql::$_baseConfig = array DboMysql::$startQuote = "`" DboMysql::$endQuote = "`" DboMysql::$_useAlias = false DboMysql::$_commands = array DboMysql::$columns = array DboMysql::$index = array DboMysql::$alias = "AS " DboMysql::$fieldCache = array DboMysql::$__bypass = false DboMysql::$__sqlOps = array 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 = NULL DboMysql::$connection = false DboMysql::$config = array DboMysql::$configKeyName = "default" DboMysql::$_transactionStarted = false DboMysql::$cacheSources = true DboMysql::$_log = NULL DboMysql::$__booleans = array $count = 0array_unique - [internal], line ?? DboSource::fields() - CORE/cake/libs/model/datasources/dbo_source.php, line 1751 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 629 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE/cake/libs/model/datasources/dbo_source.php, line 1062]Code | Context$model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULL $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( "`Celebrity`.`date_start` <= CURRENT_DATE()", "`Celebrity`.`date_end` > CURRENT_DATE()", "`Celebrity`.`published` = 1" ), "fields" => null, "joins" => array(), "limit" => 1, "offset" => array(), "order" => array( array() ), "page" => 1, "group" => array(), "callbacks" => true ) $external = false $resultSet = nullarray_unique - [internal], line ?? DboSource::generateAssociationQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 1062 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 653 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58
Warning (2): implode() [function.implode]: Invalid arguments passed [CORE/cake/libs/model/datasources/dbo_source.php, line 1275]Code | Context$query = array( "offset" => array(), "joins" => array(), "fields" => null, "table" => "", "alias" => "Celebrity", "limit" => 1, "conditions" => array( "`Celebrity`.`date_start` <= CURRENT_DATE()", "`Celebrity`.`date_end` > CURRENT_DATE()", "`Celebrity`.`published` = 1" ), "order" => array( array() ), "group" => array() ) $model = Celebrity Celebrity::$name = "Celebrity" Celebrity::$useTable = "celebrities" Celebrity::$validate = array Celebrity::$counter = 5 Celebrity::$actsAs = array Celebrity::$useDbConfig = "default" Celebrity::$displayField = NULL Celebrity::$id = false Celebrity::$data = array Celebrity::$table = false Celebrity::$primaryKey = "id" Celebrity::$_schema = false Celebrity::$validationErrors = array Celebrity::$tablePrefix = "" Celebrity::$alias = "Celebrity" Celebrity::$tableToModel = array Celebrity::$logTransactions = false Celebrity::$transactional = false Celebrity::$cacheQueries = false Celebrity::$belongsTo = array Celebrity::$hasOne = array Celebrity::$hasMany = array Celebrity::$hasAndBelongsToMany = array Celebrity::$Behaviors = BehaviorCollection object Celebrity::$whitelist = array Celebrity::$cacheSources = true Celebrity::$findQueryType = "first" Celebrity::$recursive = 1 Celebrity::$order = NULL Celebrity::$__exists = NULL Celebrity::$__associationKeys = array Celebrity::$__associations = array Celebrity::$__backAssociation = array Celebrity::$__insertID = NULL Celebrity::$__numRows = NULL Celebrity::$__affectedRows = NULL Celebrity::$_findMethods = array Celebrity::$_log = NULLimplode - [internal], line ?? DboSource::buildStatement() - CORE/cake/libs/model/datasources/dbo_source.php, line 1275 DboSource::generateAssociationQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 1073 DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 653 Model::find() - CORE/cake/libs/model/model.php, line 2031 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464
Warning (2): Invalid argument supplied for foreach() [APP/models/celebrity.php, line 96]Code | Contextfunction afterFind($results) {
// Create a dateOnly pseudofield using date field.
foreach ($results as $key => $val) {
$results = falseCelebrity::afterFind() - APP/models/celebrity.php, line 96 Model::__filterResults() - CORE/cake/libs/model/model.php, line 2277 Model::find() - CORE/cake/libs/model/model.php, line 2036 Celebrity::getRandomCelebrity() - APP/models/celebrity.php, line 61 AppController::beforeRender() - APP/app_controller.php, line 178 Controller::render() - CORE/cake/libs/controller/controller.php, line 763 ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 396 ErrorHandler::missingTable() - CORE/cake/libs/error.php, line 237 Object::dispatchMethod() - CORE/cake/libs/object.php, line 125 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125 Object::cakeError() - CORE/cake/libs/object.php, line 212 Model::setSource() - CORE/cake/libs/model/model.php, line 779 Model::__construct() - CORE/cake/libs/model/model.php, line 439 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 147 Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 510 Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 464 CakeErrorController::__construct() - CORE/cake/libs/error.php, line 58 ErrorHandler::__construct() - CORE/cake/libs/error.php, line 96
Error: Database table celebrities for model Celebrity was not found.
Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp
Разработка сайта — | Бюро «Аппарат» |
Error: Database table issues for model Issue was not found.
Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp
Разработка сайта — | Бюро «Аппарат» |
Error: Database table materials for model Material was not found.
Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp
Разработка сайта — | Бюро «Аппарат» |