Missing argument 3 for drupal_process_form(),
naught101 - July 26, 2009 - 11:57
| Project: | Spam |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Error:
warning: Missing argument 3 for drupal_process_form(), called in /var/www/climateimc.org/httpdocs/sites/all/modules/spam/spam.module on line 1090 and defined in /var/www/climateimc.org/httpdocs/includes/form.inc on line 391.
Happened when approving feedback'd spam. Didn't seem to cause any problems though. Not sure what should be added there.

#1
Are you still able to duplicate this with the latest beta release? I'm unable to duplicate it, and that line in the code is no longer relevant.
#2
Error confirmed. New line number off of HEAD is 1118.
#3
#4
I'm getting this with 6.x-1.0. I've had some Comments that were wrongly marked as Spam and when I went to publish them I got:
warning: Missing argument 3 for drupal_process_form(), called in ............./public_html/sites/all/modules/spam/spam.module on line 1118 and defined in ........./public_html/includes/form.inc on line 391 (Drupal 6.12)
The spam only appeared in content management -> spam -> feedback, nothing in content management -> comments -> approval queue or content management -> comments -> spam.
The comments are now lost and the spam screen didn't tell me which user had posted them.
I was getting this error with a recent 6.x dev as well but I've re-tested after upgrading and still getting it with 6.x-1.0 so currently I have no way of publishing anything that gets marked as spam when it isn't.
You have said that you need more info - what can I tell you that might help?
#5
Further information. This problem has always occurred when going through Admin-> content management -> spam -> feedback -> view feedback item -> 'publish content' button. I have once successfully published it from the Admin-> content management -> spam -> list page but most of the time the spam is no even showing up here. I'm trying to get some consistency and some method of duplicating this problem.
#6
Fix committed.
#7
Thanks for the fast response. The error has gone away but I now get the following:
For a spam comment:
"Validation error, please try again. If this error persists, please contact the site administrator.". The spam item remains in the list, same again if you try again. Nothing in watchdog.
For a spam Forum topic: No error, says it's published, but it doesn't appear, uven in unpublished state.
These are both working from Admin-> content management -> spam -> feedback -> view feedback item -> 'publish content' button. Nothing appears in the Admin-> content management -> spam -> list page or the Admin-> content management -> comments ->approval queue or Admin-> content management -> comments ->spam
Thanks
Tony
#8
Yeah, I ran into similar issues. I thought I had a quick bug fix when I found the error location earlier, but it seems that the proper contents of form_state weren't immediately obvious. Then again, it wouldn't be the first time I've been frustrated by the Forms API, so maybe it is clearer to others. But my fix didn't test right.
On a side note, maybe making some unit tests for basic functionality should be in the long-term goals list? It is a pretty big module, after all.
#9
Reopening the issue, as it does not appear to be completely solved yet.