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
Exception thrown on garbage collection #5684
Comments
Not able to reproduce this. Please send in a database backup along with your |
I've had a similar problem (not 3.4.6.1 though) before, if you look in the database in the craft_drafts table you'll likely see some rows where sourceId is null, deleting those fixed the issue for me (without messing anything else up as far as I could tell). In my case I'm pretty sure I messed something up with a module that I was working on, so deleted some entries incorrectly |
@SayChi I do use a custom module and yes, I do delete entries - what was the solution in your case? @brandonkelly Must be because my module: I will let you know what was the issue, don't want to waste your time on this until I am sure it's a bug in Craft not in my code. |
@Saboteur777 Don't think I've actually solved the issue in the module I was building, customer request ended up changing so I had to change my implementation. But you can manually fix it by looking in the craft_drafts table and just throwing out any row that doesn't have an id in the sourceId column. |
@SayChi Sure, I will do that - I am just afraid that it will happen in the future and would like to avoid it happening. |
We just released Craft 3.4.7 with a fix for this. |
Description
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: