I suddenly get this error after enabling geolocation_proximity and adding geolocation: filter to the view:
Warning: implode() [function.implode]: Invalid arguments passed in form_error().
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | geolocation_proximity-1581036-4-check-values-presence-before-use-it.patch | 1.56 KB | vincenzodb |
Comments
Comment #1
Shven commentedThere seems to be a problem with the validation of exposed forms.
I also get this error when I change the views filter identifier (default: field_location_distance)
I guess the wrong id is passed in 'exposed_validate' (geolocation_proximity_views_handler_filter_distance.inc)
Comment #2
rclai commentedHey, has there been any fix on this?
Comment #3
rclai commentedOkay so I found the issue.
It's on the file handlers/geolocation_proximity_views_handler_filter_distance.inc.
Inside the function latlng_validate().
The value checking needs to be done with isset() or !empty(), otherwise it is passing undefined values to the form_error() function.
This is what my latlng_validate() function now looks like:
Comment #4
vincenzodb commentedPatch file for 2.0 version