when going to admin/settings/filters/1/configure it gives an error:

warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'wordfilter' was given in /home/mysite/public_html/alfa/includes/form.inc on line 217.

CommentFileSizeAuthor
#3 wordfilter.module.patch1.09 KBdwees

Comments

yngens’s picture

same error message here:

warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'wordfilter' was given in /home/mysite/public_html/includes/form.inc on line 217.

yngens’s picture

i did not notice that i was replying to my own post, sorry. nevertheless, the issue is there. could the module maintainer take a look at this, please.

dwees’s picture

Assigned: Unassigned » dwees
StatusFileSize
new1.09 KB

Try the attached patch.

Dave

yngens’s picture

application of the patch against 5.x-1.x-dev gives:


patching file wordfilter.module
Hunk #1 FAILED at 186.
Hunk #2 FAILED at 198.
2 out of 2 hunks FAILED -- saving rejects to file wordfilter.module.rej

dwees’s picture

Try to do the patch manually, it's pretty small. Probably there are some small differences between what I started with, and what the module is expecting. I used cygwin to create the patch (and I had renamed the original file to do this) so could that also be the problem?

Dave

yngens’s picture

i have manually applied the patch and it gives the error:

Fatal error: Call to undefined function: wordfilter_filter_form() in /home/mysite/public_html/sites/all/modules/wordfilter/wordfilter.module on line 196

dwees’s picture

Okay try this instead. Using the original file on line 194 replace:

return drupal_get_form('wordfilter', $form);

with

$form;

It doesn't really matter anyway since the settings for this module are under admin/settings/wordfilter anyway, this form is just a placeholder telling you to go look at the administration settings form.

Dave

budda’s picture

I made the changes in comment #7 and the module now works in D5.

dwees’s picture

It should actually be:

return $form;

I think, but it doesn't really matter, whatever works.

Dave

hunmonk’s picture

Status: Active » Closed (duplicate)