Formfiltering search box causes flood of PHP errors - no module un-install, reset option?!
| Project: | Formfilter |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I've been using formfilter without problems for the past year. Today, out of curiosity I tried filtered the search box appearing at the top of my theme. I basically hid and unhid the search box. Now I have in huge text the words 'Filter this form, Preview a filtered version of this form' appearing around the search box (this wasn't there before - or at least was in very small text).
Worse - I have floods of the following php errors in watchdog:
invalid argument supplied for foreach() in /var/www/vhosts/site/httpdocs/sites/all/modules/formfilter/formfilter.module on line 88.
array_keys() [function.array-keys]: The first argument should be an array in /var/www/vhosts/site/httpdocs/sites/all/modules/formfilter/formfilter.module on line 88.
I thought the easiest solution would be to re-install the module and re-do my required filtering, but this does nothing. Where is the data being stored? I don't see any mysql tables.
Thanks for any clues
G

#1
I managed to locate an entry for 'formfilter' in the variables table of the db. I did a copy and paste from a backup copy and it fixed the issue.
It would be really useful to be able to have some kind of admin pane which listed all form which are currently being filtered and have a checkbox beside each to remove all filtering / reset forms to default values - because the 'in situ' editing doesn't seem to always work correctly.
At present there's not even a module un-install option to reset forms.
Thanks
G