I am getting this error in my log: One time when I view the form, and one time when I submit it, with Openlayers Geocoder fields.

I suspect Openlayers Geocoder is causing it, since it doesn't happen when entering and submitting other content types without Openlayers Geocoder fields, but it could be something else.

Using Drupal 6.22 and OpenLayers Geocoder version = 6.x-2.x-dev, datestamp = "1303992756"

CommentFileSizeAuthor
#4 openlayers_geocoder.zip19.3 KBendrus

Comments

brunorios1’s picture

same here

xamanu’s picture

I can confirm this error.

endrus’s picture

I can also confirm.

endrus’s picture

StatusFileSize
new19.3 KB

This error is only present in the -dev version of Geocoder. To fix this, I rolled back to alpha5 and then applied the patches which resolved other bugs (for instance, this one - http://drupal.org/node/1074436#comment-4540882). Now I have a working version of Geocoder without errors on node submit. Attached is the final result. Please, use with care and for testing only!

steinmb’s picture

Priority: Normal » Major

It is geocoder cause this and I also get:
warning: preg_match() expects parameter 2 to be string, array given in /var/www/includes/bootstrap.inc on line 895

With backtrace on:

notice: Undefined index: description in content_field_form() (line 101 of /var/www/sites/all/modules/cck/includes/content.node_form.inc). =>
Called from /var/www/sites/all/modules/cck/includes/content.node_form.inc, line 101  

notice: Array to string conversion in strlen() (line 891 of /var/www/includes/bootstrap.inc). =>

warning: preg_match() expects parameter 2 to be string, array given in preg_match() (line 895 of /var/www/includes/bootstrap.inc). =>

Any of you that sees this got location/i18n or just changed the default language to non English?

open social’s picture

found the reason why the bug shows.

in the function "openlayers_geocoder_widget" in openlayers_geocoder.module

comment out: unset($field['widget']['description']);

The error is than gone!

steinmb’s picture

steinmb’s picture

Status: Active » Closed (duplicate)
steinmb’s picture

Issue summary: View changes

Clarified that the other content type is without Openlayers Geocoder fields.