Warning (2): pg_query() [http://php.net/function.pg-query]: Query failed: ERROR: insert or update on table "quicks_votes" violates foreign key constraint "quicks_votes_user_id_fkey"
DETAIL: Key (user_id)=(0) is not present in table "users". [CORE/cake/libs/model/datasources/dbo/dbo_postgres.php, line 167]Code |
Context$sql = "INSERT INTO "quicks_votes" ("user_id", "quick_id", "vote") VALUES ('0', '541', '1')"pg_query - [internal], line ??
DboPostgres::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_postgres.php, line 167
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 250
DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 741
Model::save() - CORE/cake/libs/model/model.php, line 1338
QuicksController::vote() - APP/controllers/quicks_controller.php, line 102
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (512): SQL Error: ERROR: insert or update on table "quicks_votes" violates foreign key constraint "quicks_votes_user_id_fkey"
DETAIL: Key (user_id)=(0) is not present in table "users". [CORE/cake/libs/model/datasources/dbo_source.php, line 673]Code |
Context $out = null;
if ($error) {
trigger_error('<span style="color:Red;text-align:left"><b>' . __('SQL Error:', true) . "</b> {$this->error}</span>", E_USER_WARNING);
$sql = "INSERT INTO "quicks_votes" ("user_id", "quick_id", "vote") VALUES ('0', '541', '1')"
$error = "ERROR: insert or update on table "quicks_votes" violates foreign key constraint "quicks_votes_user_id_fkey"
DETAIL: Key (user_id)=(0) is not present in table "users"."
$out = nullDboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 673
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 263
DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 741
Model::save() - CORE/cake/libs/model/model.php, line 1338
QuicksController::vote() - APP/controllers/quicks_controller.php, line 102
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Query: INSERT INTO "quicks_votes" ("user_id", "quick_id", "vote") VALUES ('0', '541', '1')

0
