-
Notifications
You must be signed in to change notification settings - Fork 539
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
"Cannot add or update a child row: a foreign key constraint fails " for ohrm_user_role_data_group #1780
Comments
Hi @yashiscool123, This is a known issue. Please see #1731 (comment) |
Hi @yashiscool123, This issue is fixed in OrangeHRM 5.6: https://github.com/orangehrm/orangehrm/releases/tag/v5.6 |
The issue is still not fixed. Please find the log attached. |
I can still see this issue persisting. Please find the attached log. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ( |
Hi @yashiscool123 , @yshah-fluree We have identified the cause of this issue. As it turns out, it's due to the timeout defined by XAMPP. Please follow the steps below and let me know if you can install the system.
|
Thank
Thank you.. Increasing the "max_execution_time" value to 240 helped in a successful installation. |
I'm closing this since the issue was resolved. |
OrangeHRM version
5.5
Environment details
Instance details: {"os":{"os":"Windows NT","release_name":"10.0","version_info":"build 22621 (Windows 11)"},"php":{"version":"8.2.12"},"mysql":{"client_version":"mysqlnd 8.2.12","server_version":"10.4.32-MariaDB","conn_type":"127.0.0.1 via TCP/IP"},"server":"Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12","ohrm":{"version":"5.5"}}
Describe the bug
When doing a clean first time installation facing the following issue:
Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
ohrm
.ohrm_user_role_data_group
, CONSTRAINTohrm_user_role_data_group_ibfk_1
FOREIGN KEY (user_role_id
) REFERENCESohrm_user_role
(id
) ON DELETE CASCADE)installer.log
To reproduce
Do a simple first time installation of XAMPP and then deploy the OHRM in the HTDOCS folder and run the installation as usual in a Windows 11 environment.
Expected behavior
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: