You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queue is filled with failed "Purging Old Spam Submissions" jobs. Checking the logs I see it fails when trying to remove the uploaded files:
Error: craft\services\Elements::deleteElementById(): Argument #1 ($elementId) must be of type int, string given
Location: /vendor/solspace/craft-freeform/packages/plugin/src/Bundles/Fields/Implementations/FileUpload/FileRemovalOnSubmissionDelete.php on line 32
When I check the submissions these are simple bot submissions with no uploaded file in the asset field. They probably managed to upload an empty string?
Adding a "check empty" and "is integer" before deleteElementById fixes the issue.
What happened?
Queue is filled with failed "Purging Old Spam Submissions" jobs. Checking the logs I see it fails when trying to remove the uploaded files:
When I check the submissions these are simple bot submissions with no uploaded file in the asset field. They probably managed to upload an empty string?
Adding a "check empty" and "is integer" before deleteElementById fixes the issue.
Example bot submission
Errors and Stack Trace (if available)
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
5.7.4
Craft Version
Craft Pro 4.13.3
When did this issue start?
Unsure
Previous Freeform Version
No response
The text was updated successfully, but these errors were encountered: