Closed (fixed)
Project:
Extra Fields Checkout Pane
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 May 2012 at 08:01 UTC
Updated:
13 Jun 2012 at 09:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
megachrizI didn't encounter this issue yet. Does the attached patch fixes the issue for you?
Else, I will look into this issue more closely later this week.
Comment #2
marcus178 commentedOk that's seem to have got rid of some of the error, but I'm still getting this one.
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/database.mysql.inc on line 329.
Comment #3
megachrizThanks for reporting back the patch solves a part of your issue. I don't receive the second warning in my local installation. This message doesn't give me enough clues to know what's going wrong. What kind of fields did you added with Extra Fields Pane?
Could you replace the code of the function db_escape_string() at /includes/database.mysql.inc with the following code and post the output of the debug code here?
debug_backtrace() will give information about which functions were called that finally result into the warning.
Comment #4
megachrizThe patch in #1 has been committed.
@marcus178
Can you provide more information for the second error you got? See #3 for instructions.
Comment #5
marcus178 commentedOk it's pretty long and not sure what I'm looking for but I have attached it.
Comment #6
megachrizIt looks like the error message is caused by the UberCart MailChimp module. The Ubercart order object contains (among more) the following:
When Ubercart saves the order, it tries to save this value directly into the uc_orders table:
which results into the mysql_real_escape_string() warning.
You should look for a solution for this problem in the UberCart MailChimp issue queue.
For example, in these issues:
#1218872: UC Mailchimp appears to be cause of error found here, mysql_real_escape_string() expects parameter 1 to be string
#1242030: An update of uc_mailchimp (add interest groups, merge vars, tidy up review order and fix mysql_real_escape_string() error)
I mark this issue as fixed, since the array_merge() bug in Extra Fields Pane has been fixed.
Comment #7
marcus178 commentedOK thanks for that, I did try disabling a few modules to narrow it down just not that one.
Comment #8
megachrizNever mind. Thanks for reporting the bug! :)