-
Notifications
You must be signed in to change notification settings - Fork 65
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
Craft 4 - Integrity violation after saving entry with link field #219
Comments
The error does not contain a reference to a link field, also the affected table is not the link field table. Why do you assume that error is related to this plugin? |
Because whenever I update this field the error occurs :/ Seems like switching options in the dropdown (where you have: "no link", entry, custom,...) and then saving throws me the error. Does not happen (as far as I can reproduce) when changing other fields) |
I'm also not able to select an entry from a typed link field, just gives a server error. |
I've received another issue from a user who also complains about a similar foreign key issue, I guess the new CMS version exposes issues within the data structure of certain projects. In you example, the database complains about an element with the id |
Okay, I think I've found the bug, it's related to the way Craft now handles newly created elements. I've published a new release that contains the fix. |
Trying to save a link field (on an existing craft install that's been updated to craftcms 4.0.0.1) results in a integrity violation error. This error occurs mostly when switching from/to different link types. In my case the error occurs inside of a matrix field, not sure if it's also the case when the field is just plain added to an entry.
Plugin version: 2.1.1-rc
The text was updated successfully, but these errors were encountered: