Warning (2): mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading authorization packet', system error: 0 [CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 561]Code |
Context
if (!$config['persistent']) {
$this->connection = mysql_connect($config['host'] . ':' . $config['port'], $config['login'], $config['password'], true);
$config = array(
"persistent" => false,
"host" => "*****",
"login" => "*****",
"password" => "*****",
"database" => "*****",
"port" => "*****",
"driver" => "mysql",
"prefix" => "*****",
"encoding" => "utf8"
)
mysql_connect - [internal], line ??
DboMysql::connect() - CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 561
DboSource::__construct() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 144
ConnectionManager::getDataSource() - CORE/cake-1.3.18/libs/model/connection_manager.php, line 114
Model::setDataSource() - CORE/cake-1.3.18/libs/model/model.php, line 2852
Model::__construct() - CORE/cake-1.3.18/libs/model/model.php, line 469
ClassRegistry::init() - CORE/cake-1.3.18/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake-1.3.18/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake-1.3.18/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake-1.3.18/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake-1.3.18/dispatcher.php, line 172
[main] - APP/webroot/index.php, line 88
Warning (2): mysql_query() expects parameter 2 to be resource, boolean given [CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 613]Code |
Context */
function _execute($sql) {
return mysql_query($sql, $this->connection);
$sql = "SELECT `Notice`.`id`, `Notice`.`notice_group_id`, `Notice`.`event_type`, `Notice`.`title`, `Notice`.`title_img`, `Notice`.`description`, `Notice`.`context`, `Notice`.`prize_context`, `Notice`.`open_datetime`, `Notice`.`type_flag`, `Notice`.`end_datetime`, `Notice`.`start_datetime`, `Notice`.`prize_datetime`, `Notice`.`use_flag`, `Notice`.`target_flag`, `Notice`.`notice_flag`, `Notice`.`link`, `Notice`.`file1`, `Notice`.`file1_realname`, `Notice`.`file2`, `Notice`.`file2_realname`, `Notice`.`comment`, `Notice`.`modified`, `Notice`.`created`, `NoticeGroup`.`id`, `NoticeGroup`.`code`, `NoticeGroup`.`name`, `NoticeGroup`.`open_flag`, `NoticeGroup`.`comment`, `NoticeGroup`.`modified`, `NoticeGroup`.`created` FROM `notices` AS `Notice` LEFT JOIN `notice_groups` AS `NoticeGroup` ON (`Notice`.`notice_group_id` = `NoticeGroup`.`id`) WHERE `Notice`.`id` = 838 LIMIT 1"
mysql_query - [internal], line ??
DboMysql::_execute() - CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 613
DboSource::execute() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 254
DboSource::fetchAll() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 411
DboSource::read() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 822
Model::find() - CORE/cake-1.3.18/libs/model/model.php, line 2142
Model::read() - CORE/cake-1.3.18/libs/model/model.php, line 1129
NoticesController::view() - CORE/lib.times/controllers/notices_controller.php, line 78
Dispatcher::_invoke() - CORE/cake-1.3.18/dispatcher.php, line 205
Dispatcher::dispatch() - CORE/cake-1.3.18/dispatcher.php, line 172
[main] - APP/webroot/index.php, line 88
Warning (2): mysql_errno() expects parameter 1 to be resource, boolean given [CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 695]Code */
function lastError() {
if (mysql_errno($this->connection)) {
mysql_errno - [internal], line ??
DboMysql::lastError() - CORE/cake-1.3.18/libs/model/datasources/dbo/dbo_mysql.php, line 695
DboSource::execute() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 258
DboSource::fetchAll() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 411
DboSource::read() - CORE/cake-1.3.18/libs/model/datasources/dbo_source.php, line 822
Model::find() - CORE/cake-1.3.18/libs/model/model.php, line 2142
Model::read() - CORE/cake-1.3.18/libs/model/model.php, line 1129
NoticesController::view() - CORE/lib.times/controllers/notices_controller.php, line 78
Dispatcher::_invoke() - CORE/cake-1.3.18/dispatcher.php, line 205
Dispatcher::dispatch() - CORE/cake-1.3.18/dispatcher.php, line 172
[main] - APP/webroot/index.php, line 88
Warning (2): Cannot modify header information - headers already sent by (output started at /home/www/cake-1.3.18/libs/debugger.php:686) [CORE/cake-1.3.18/libs/controller/controller.php, line 742]Code |
Context */
function header($status) {
header($status);
$status = "Location: http://www.kidstimes.net/notices"
header - [internal], line ??
Controller::header() - CORE/cake-1.3.18/libs/controller/controller.php, line 742
Controller::redirect() - CORE/cake-1.3.18/libs/controller/controller.php, line 721
NoticesController::view() - CORE/lib.times/controllers/notices_controller.php, line 82
Dispatcher::_invoke() - CORE/cake-1.3.18/dispatcher.php, line 205
Dispatcher::dispatch() - CORE/cake-1.3.18/dispatcher.php, line 172
[main] - APP/webroot/index.php, line 88