Warning (2): mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 100]
Context |
Code$config = array("persistent" => true, "host" => "localhost", "login" => "bakery_demo", "password" => "jnwtchk5", "database" => "bakery_demo", "port" => "3306", "connect" => "mysql_connect", "driver" => "mysql", "prefix" => "")
$connect = "mysql_connect"
$this->connected = false;
if (!$config['persistent'] || $config['connect'] === 'mysql_connect') {
$this->connection = mysql_connect($config['host'] . ':' . $config['port'], $config['login'], $config['password'], true);
} else {
mysql_connect - [internal], line ??
DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 100
DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 90
ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 107
Model::setDataSource() - CORE/cake/libs/model/model.php, line 1974
Model::__construct() - CORE/cake/libs/model/model.php, line 378
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): mysql_select_db(): supplied argument is not a valid MySQL-Link resource [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 105]
Context |
Code$config = array("persistent" => true, "host" => "localhost", "login" => "bakery_demo", "password" => "jnwtchk5", "database" => "bakery_demo", "port" => "3306", "connect" => "mysql_connect", "driver" => "mysql", "prefix" => "")
$connect = "mysql_connect"
$this->connection = $connect($config['host'], $config['login'], $config['password']);
}
if (mysql_select_db($config['database'], $this->connection)) {
$this->connected = true;
mysql_select_db - [internal], line ??
DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 105
DboSource::__construct() - CORE/cake/libs/model/datasources/dbo_source.php, line 90
ConnectionManager::getDataSource() - CORE/cake/libs/model/connection_manager.php, line 107
Model::setDataSource() - CORE/cake/libs/model/model.php, line 1974
Model::__construct() - CORE/cake/libs/model/model.php, line 378
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): mysql_query(): supplied argument is not a valid MySQL-Link resource [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 133]
Context |
Code$sql = "SHOW TABLES FROM `bakery_demo`;"
* @access protected
*/
function _execute($sql) {
return mysql_query($sql, $this->connection);
}
mysql_query - [internal], line ??
DboMysql::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 133
DboMysql::listSources() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 145
Model::setSource() - CORE/cake/libs/model/model.php, line 744
Model::__construct() - CORE/cake/libs/model/model.php, line 388
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/bakery/public_html/demo/pagebakery/cake/basics.php:641) [CORE/cake/libs/session.php, line 154]
Context |
Code$base = "/"
$start = true
$this->__initSession();
session_cache_limiter ("must-revalidate");
session_start();
header ('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
session_start - [internal], line ??
CakeSession::__construct() - CORE/cake/libs/session.php, line 154
SessionComponent::__construct() - CORE/cake/libs/controller/components/session.php, line 54
Component::_loadComponents() - CORE/cake/libs/controller/component.php, line 127
Component::init() - CORE/cake/libs/controller/component.php, line 62
Controller::_initComponents() - CORE/cake/libs/controller/controller.php, line 327
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 79
Object::cakeError() - CORE/cake/libs/object.php, line 176
Model::setSource() - CORE/cake/libs/model/model.php, line 749
Model::__construct() - CORE/cake/libs/model/model.php, line 388
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bakery/public_html/demo/pagebakery/cake/basics.php:641) [CORE/cake/libs/session.php, line 154]
Context |
Code$base = "/"
$start = true
$this->__initSession();
session_cache_limiter ("must-revalidate");
session_start();
header ('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
session_start - [internal], line ??
CakeSession::__construct() - CORE/cake/libs/session.php, line 154
SessionComponent::__construct() - CORE/cake/libs/controller/components/session.php, line 54
Component::_loadComponents() - CORE/cake/libs/controller/component.php, line 127
Component::init() - CORE/cake/libs/controller/component.php, line 62
Controller::_initComponents() - CORE/cake/libs/controller/controller.php, line 327
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 79
Object::cakeError() - CORE/cake/libs/object.php, line 176
Model::setSource() - CORE/cake/libs/model/model.php, line 749
Model::__construct() - CORE/cake/libs/model/model.php, line 388
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): Cannot modify header information - headers already sent by (output started at /home/bakery/public_html/demo/pagebakery/cake/basics.php:641) [CORE/cake/libs/session.php, line 155]
Context |
Code$base = "/"
$start = true
$this->__initSession();
session_cache_limiter ("must-revalidate");
session_start();
header ('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
$this->__checkValid();
header - [internal], line ??
CakeSession::__construct() - CORE/cake/libs/session.php, line 155
SessionComponent::__construct() - CORE/cake/libs/controller/components/session.php, line 54
Component::_loadComponents() - CORE/cake/libs/controller/component.php, line 127
Component::init() - CORE/cake/libs/controller/component.php, line 62
Controller::_initComponents() - CORE/cake/libs/controller/controller.php, line 327
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 79
Object::cakeError() - CORE/cake/libs/object.php, line 176
Model::setSource() - CORE/cake/libs/model/model.php, line 749
Model::__construct() - CORE/cake/libs/model/model.php, line 388
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80
Warning (2): Cannot modify header information - headers already sent by (output started at /home/bakery/public_html/demo/pagebakery/cake/basics.php:641) [CORE/cake/libs/controller/controller.php, line 499]
Context |
Code$url = "/users/login"
$status = null
$exit = true
header($status);
}
if ($url !== null) {
header('Location: ' . Router::url($url, true));
}
header - [internal], line ??
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 499
AppController::check_login() - CORE/apps/cms/app_controller.php, line 58
Dispatcher::start() - CORE/cake/dispatcher.php, line 371
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 81
Object::cakeError() - CORE/cake/libs/object.php, line 176
Model::setSource() - CORE/cake/libs/model/model.php, line 749
Model::__construct() - CORE/cake/libs/model/model.php, line 388
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 400
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 295
[main] - /home/bakery/public_html/demo/cms/index.php, line 80