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

CommentFileSizeAuthor
#4 forms-check-query.patch702 bytesjhriggs

Comments

walkah’s picture

Assigned: Unassigned » walkah
jhriggs’s picture

According 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.

gtoddv’s picture

I got the version of the forms module from the 4.5 download page. Could there be something wrong with what is posted there?

Thanks

jhriggs’s picture

Project: Survey » Forms (obsolete)
Category: support » bug
StatusFileSize
new702 bytes

This 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).

gtoddv’s picture

That did it! Thanks very much for your prompt response.

walkah’s picture

patch committed. thanks jhriggs.

Anonymous’s picture