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

ansorg’s picture

get 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)

ansorg’s picture

Priority: Normal » Critical

setting to critical because this bug makes saving nodes impossible with the exif module enabled

nickels’s picture

subscribe

pomliane’s picture

Subscribing.

rapsli’s picture

have you tried upgrading Drupal?

pomliane’s picture

Hi rapsli,
Yes, Drupal 6.15 here.

kaare’s picture

I'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 name attribute is renamed when the form type is hidden. Using firebug and manually setting the name attribute 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.

rapsli’s picture

Status: Active » Postponed (maintainer needs more info)

how can this bug be reproduced? It's working fine here.

pomliane’s picture

Here, the issue was solved when gps_gpslatitude and gps_gpslongitude finally got filled.

Might this be a duplicate of http://drupal.org/node/395858 ?

kaare’s picture

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

rapsli’s picture

Status: Postponed (maintainer needs more info) » Fixed

let's close it then.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.