Hi,
I am using Drupal 6.10. When saving a new Node with an ImageField-Image I get several warnings:
---
* warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/includes/database.mysqli.inc on line 323.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/sites/all/modules/transliteration/transliteration.inc on line 53.
* warning: mb_eregi_replace() expects parameter 3 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/sites/all/modules/pathauto/pathauto.inc on line 228.
* warning: preg_match() expects parameter 2 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/sites/all/modules/transliteration/transliteration.inc on line 53.
* warning: mb_eregi_replace() expects parameter 3 to be string, array given in /Daten/Office_Pool/WebServer/travel-pictures-d6/sites/all/modules/pathauto/pathauto.inc on line 228.
---
It's only when I have enabled the EXIF module. Without there are no problems.
Comments
Comment #1
ansorg commentedget similar errors and content of the fields of the node are not saved :(
happens after I enable the exif module AND add some exif fields to the CCK content type (an cck imagefield based content type)
Comment #2
ansorg commentedsetting to critical because this bug makes saving nodes impossible with the exif module enabled
Comment #3
nickels commentedsubscribe
Comment #4
pomliane commentedSubscribing.
Comment #5
rapsli commentedhave you tried upgrading Drupal?
Comment #6
pomliane commentedHi rapsli,
Yes, Drupal 6.15 here.
Comment #7
kaareI've seen similar behavior in exif enabled fields during uploads (insert) and found the problem to be caused by field form type = 'hidden'. A temporal fix is to show the exif fields during insert and edit (admin/settings/exif/visibility), and rather hide the form fields using css (display: none).
I haven't dived deep enough into this, but the problem seems to be that the form
nameattribute is renamed when the form type is hidden. Using firebug and manually setting thenameattribute to have the same name as when the field type != hidden is also working. When the field type is not hidden, the name attribute is something like'field_blah_blah[0][value]', but when it's hidden it's just'field_blah_blah'.That's my experience.
Comment #8
rapsli commentedhow can this bug be reproduced? It's working fine here.
Comment #9
pomliane commentedHere, the issue was solved when gps_gpslatitude and gps_gpslongitude finally got filled.
Might this be a duplicate of http://drupal.org/node/395858 ?
Comment #10
kaareI also tried the latest version from cvs (6.x-1.x), but could not reproduce this bug anymore. I tried with integer fields (though the select widget for integer field fails), date fields and strings fields, with and without image fupload (this failed for me in an earlier version), with and withouth the fields visible in the node edit form, but all seems to work now.
Comment #11
rapsli commentedlet's close it then.