Date popup fields and CCK field validation

alexpott - November 4, 2008 - 17:25
Project:editablefields
Version:5.x-3.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm trying to use editable fields to edit a list of schedule entries. These nodes have a date field that when I click on the update cause the following error message:

warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /opt/lampp/htdocs/cpd/includes/database.mysql.inc on line 405.

Upon investigation it because the function date_popup_process() is not be called when the form is being submitted. This converts the dates from arrays to a ISO datetime string. Additionally, date_combo_validate() is not being called - which leads me to assume that the CCK series of hooks - process, validate, submit is not being called when update is being pressed - is this true? And is it fixable?

Thanks for any help!

Alex

#1

bibo - May 8, 2009 - 18:21

I'm stuck at the same problem, which happened to appear right before some last deadlines of a huge project of mine.. argh.

Seems like I have to find some solution fast for this, going to look at those hooks...

#2

doc2@drupalfr.org - June 23, 2009 - 07:47

June 1st.: Same problem with version 3.1, except my error gets on line 400 of database.mysql.inc and I don't use popups.

It worked well for me with date version 1.x. I'm now stuck with date 2.x for I needed its necessary features such as null values.

Help welcome... best regards, Arsène

EDIT June 23rd, 2009: anything new?

#3

gmclelland - July 2, 2009 - 19:36

I get the same error as well. Any idea what's going on?

 
 

Drupal is a registered trademark of Dries Buytaert.