Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since installing antispam I get this warning at the top of all my posts:
Warning: Missing argument 3 for antispam_node_view() in antispam_node_view() (line 917 of /f2/oolong/public/drupal/sites/all/modules/antispam/antispam.module).
I see that the function in question is function antispam_node_view($node, $view_mode, $langcode) so the missing argument is apparently $langcode - but why?
This may well be related to this issue with antispam_node_validate, which is also language-related, but I'm not sure so I prefer to err on the side of keeping them separate.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1780212-2.patch | 421 bytes | Jody Lynn |
Comments
Comment #1
Oolong CreditAttribution: Oolong commentedI note that I also get the same bug for antispam_node_validate when I've just made a post (but it seems to disappear after that).
Comment #2
Jody LynnPlease test the following patch.
Comment #3
Jody LynnComment #4
tim.plunkettLooking at #1102556: hook_node_view (maybe) has only two arguments, it seems that this is not actually a bug, except in whatever is calling the code.
Try pasting the following into your antispam_node_view():
And see paste it here.