Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails #327

Open
wbraunber opened this issue Sep 28, 2017 · 5 comments

Comments

@wbraunber
Copy link

Just finished the setup (on Laravel 5.5) and getting:

Illuminate \ Database \ QueryException (23000) SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (crdc.tracker_log, CONSTRAINT tracker_log_session_id_foreign FOREIGN KEY (session_id) REFERENCES tracker_sessions (id) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert into tracker_log (session_id, method, path_id, query_id, referer_id, is_ajax, is_secure, is_json, wants_json, updated_at, created_at) values (1, GET, , , , 0, 0, 0, 0, 2017-09-28 15:00:16, 2017-09-28 15:00:16))

Any idea on this one?

@supgeek-rod
Copy link

+1

@supgeek-rod
Copy link

You can delete the PHPSESSID coodie in the browser, but this is no a solution

@aske-cph
Copy link

aske-cph commented Nov 3, 2017

Fresh install. And i have this problem too. A am on laravel 5.3 though. Any updates?

@epool86
Copy link

epool86 commented Nov 3, 2017

hi, fresh install on Laravel 5.5. Having the same problem. Even after clear the browser cookies.

@mfakhrys
Copy link

#208 has the solution, which is:

php artisan cache:clear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants