Closed (fixed)
Project:
Forms (obsolete)
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Dec 2004 at 21:08 UTC
Updated:
16 Dec 2004 at 21:15 UTC
Jump to comment: Most recent file
I have installed and uninstalled this module (including forms) and can't get it to work. The error is actually being thrown by the Forms module, but since I don't know what is really causing the error I thought I would post here as Survey is the Module I am trying to use.
Every time I try to create a new survey I get this error after submitting:
Fatal error: Call to undefined function: db_escape_string() in /home/scvotes2/public_html/county/modules/forms.module on line 61
Any assistance would be greatly appreciated.
gtoddv
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | forms-check-query.patch | 702 bytes | jhriggs |
Comments
Comment #1
walkah commentedComment #2
jhriggs commentedAccording to your error message, the problem is forms.module. It seems that you are using a CVS version of forms.module with 4.5 version of Drupal. You can/should only use 4.5 versions of modules with Drupal 4.5. If you are using a CVS version of Drupal, you need to get a newer version.
Comment #3
gtoddv commentedI got the version of the forms module from the 4.5 download page. Could there be something wrong with what is posted there?
Thanks
Comment #4
jhriggs commentedThis is indeed a bug in forms.module. A backport from head (rev 1.12.2.1) erroneously contains the check_query() -> db_escape_string() changes that only apply to HEAD. You can simply replace all occurrences of db_escape_string with check_query or use this patch (for 4.5 only).
Comment #5
gtoddv commentedThat did it! Thanks very much for your prompt response.
Comment #6
walkah commentedpatch committed. thanks jhriggs.
Comment #7
(not verified) commented